I have used Microsoft office automisation word compoents in my asp.net MVC application and when I have run my code on my server (iis7) it gives me below error
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
So How can I resolve this error. Microsoft office is not intalled on server so do I need to install it? is there any other way to manipulate word files without installing word in server.
Also I have implemented lot of things in my application so right it is very difficult to move with another step.
Thanks,
Amit
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
Yes you need to install a licensed copy of Microsoft Office on the server for this to work, however Microsoft specifically recommends against performing office automation on the server:
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.
There are alternatives. The best ones are paid for and make it easy for you to convert documents and keep formatting.
Contributor
4524 Points
1764 Posts
Office Automization components gives error in server (
Jan 25, 2012 04:27 AM|amitpatel.it|LINK
I have used Microsoft office automisation word compoents in my asp.net MVC application and when I have run my code on my server (iis7) it gives me below error
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
So How can I resolve this error. Microsoft office is not intalled on server so do I need to install it? is there any other way to manipulate word files without installing word in server.
Also I have implemented lot of things in my application so right it is very difficult to move with another step.
Thanks,
Amit
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
All-Star
39486 Points
8916 Posts
Re: Office Automization components gives error in server (
Jan 25, 2012 06:11 AM|rtpHarry|LINK
Yes you need to install a licensed copy of Microsoft Office on the server for this to work, however Microsoft specifically recommends against performing office automation on the server:
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.
There are alternatives. The best ones are paid for and make it easy for you to convert documents and keep formatting.
There are some good free ones available as well: