In my ASP.Net application I’m generating a Excel file using MsExcel Object Libby (Com-InterOp) . The application worked fine in the VS dev. environment.
But when I host it in the server I’m getting following error, if I’m no user is logged in to the server through Remote desktop Connection.
“Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a The server process could not be started because the configured identity is incorrect. Check the username and password. (Exception from HRESULT: 0x8000401A).”
I’ve set DCOM configurations as well. The strange thing is that at least one user should be connected to the server through RDC. If so everyone can generate excels. If not above error throws. Rest of the functionality of the application works fine.
The server is Windows Server 2008, IIS7. And the users connecting the application through a VPN.
Has any one experienced a issue like this?
Thanks in advance.
Thanks for @Rofans.Net, based on the points provided by him we identified that the server, which the app was hosted was in a 3rd party data center and there is no user logged on to the server all the time. Only logged on users are the RDC users.
So we managed to have a user all ways logged in and and put the computer in the locked stated so that all ways it has a logged in user.
This is the only way we found and if anyone found a better way please add.
Thanks.