Hi All
I have an ASP.NET subroutine which converts an htm report into a word document for mailing out. I hit F5 in Visual Web Developer and it creates a test server on, say, port 1157, and works perfectly.
Run it on the operational server, port 801, and it fails to create the Word program object giving:
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
Literally, I change the '1157' to '801' in the web address and it fails.
And just to complicate things a bit more, I have another service on the 801 server that creates Word documents no problem!
I'm thinking security issues but cannot work out why it works with one but not the other. I've set the IIS security settings to be the same for both applications in case that made a difference and that failed.
I've transferred the class from the working application to the non-working application and referenced it and it fails.
Transferred the web.config from the working app to the non-working app, same error.
For the moment I'm hoping to bodge it by calling a routine in the working app from the non working app and do it that way.
But I would like to know what this is for future problems.
I have an ASP.NET subroutine which converts an htm report into a word document for mailing out. I hit F5 in Visual Web Developer and it creates a test server on, say, port 1157, and works perfectly.
Run it on the operational server, port 801, and it fails to create the Word program object giving:
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
Literally, I change the '1157' to '801' in the web address and it fails.
And just to complicate things a bit more, I have another service on the 801 server that creates Word documents no problem!
I'm thinking security issues but cannot work out why it works with one but not the other. I've set the IIS security settings to be the same for both applications in case that made a difference and that failed.
I've transferred the class from the working application to the non-working application and referenced it and it fails.
Transferred the web.config from the working app to the non-working app, same error.
For the moment I'm hoping to bodge it by calling a routine in the working app from the non working app and do it that way.
But I would like to know what this is for future problems.