Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Microsoft.Office.Interop.Outlook 2007 Reference in VS 2012

in locally we create calendar event it works fine but server side we create calendar event it show this error


Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).


we use Microsoft.Office.Interop.Outlook version 12.0

have any idea to solve this problem
Posted
Updated 28-May-15 21:09pm
v2

You need to install MSOffice on your server for the interop to work.
 
Share this answer
 
This only worked on your local machine as it was client and server, and the website was running under your local account. To get this working on a remote server you'll need Outlook installed, which isn't supported by Microsoft, it's not going to work on an asp.net page. Even if you do install Outlook (ignoring the legal and licensing issues) and don't mind restarting IIS every 5 minutes as it keeps hanging, you still can't access the client's calendar as your code is not running under the client's context.

Basically, what you're doing isn't going to work. Outlook is a client application, not a server component. If your calendars are held in Exchange then use the Exchange Web Services (EWS) to interact with them, likewise if you are reading\sending email then use pop3\IMAP\SMTP\EWS components that will work under asp.net. You will not get your site working the way it is currently written, you need to redesign it.
 
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