Click here to Skip to main content
15,886,845 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Team,

I have deployed my dotnet application in 64bit windows server.

When i try to run my application i am getting below error. Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))



Please help me to resolve this issue.

Thanks in advance.

Thanks,
Ramana

What I have tried:

i have build my dll's with AnyCPU mode.
Posted
Updated 19-Nov-19 7:40am

It's probably a COM object error, see answers here: "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"[^]

When using 64-bit COM components on IIS, make sure the application pool is set to not allow 32 bit applications (Enable 32-Bit Applications: false in advanced settings).
 
Share this answer
 
v2
You haven't given us much to go on, but gazing into my crystal ball, I suspect you're trying to use Office Interop to manipulate Microsoft Office documents on the server, and Microsoft Office is not installed.

Read the following Microsoft knowledgebase article:
Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900