I've been doing
some .Net 2.0 development with a Web Service to communicate with the DM server
via the COM API. I have written a Class Library which both a Windows Forms app
uses and a Web Service uses. I've deployed these to a standard Windows 2003 SP1
machine and the Windows Form app works, but the Web Service call fails with the
I've also tried writing this directly into a web page rather than a web service call and get the same error. There appear to be no errors in the Windows Event Viewer.
System.ApplicationException: Error -2147220997 occured: Cannot load the DM Server interface. The DM server may not be started.
at Alphawest.ThirdParty.Hummingbird.HMDMConnector.checkErrorPCDLogin(PCDLogin login) in D:\Projects\HummingbirdDMWindowsApplication\HMDMConnector\HMDMConnector.cs:line 275
at Alphawest.ThirdParty.Hummingbird.HMDMConnector.Login(Int16 networkType, String library, String domain, String username, String password) in D:\Projects\HummingbirdDMWindowsApplication\HMDMConnector\HMDMConnector.cs:line 26
at Alphawest.Web.Services.ThirdParty.Hummingbird.HMDMConnectorWS.Login(Int16 networkType, String library, String domain, String username, String password) in D:\Projects\HummingbirdDMWindowsApplication\HMDMConnectorWS\HMDMConnectorWS.asmx.cs:line 38
I've been digging a bit in the last half hour. I guessed
it was permissions between IIS and COM. You can set the Application Identity
User in ASP.NET 2.0 in the IIS web site Property page under the ASP.NET tab
Configuration Button. Basically the Configuration is a UI for editing the
web.config of the ASP.NET web application. It adds this line under
<identity impersonate="true" userName="user" password="password" />
This seems to crack it if you have the correct domain
user name and password in there.
Hope this helps someone
else later down the track!