Click here to Skip to main content
14,668,644 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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).
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

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.
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100