how to connect asp.net web application with outlook?
I have created a we application for managing the contacts. I want to save the selected contact to current user's outlook contact list. how to do this? I am using asp.net + c#.net. please guide me.
Edited :
I have done this by following this link.
http://www.c-sharpcorner.com/开发者_如何学Pythonuploadfile/rambab/outlookintegration10282006032802am/outlookintegration.aspx?login=true&user=lalitcdhake
its a great and easy to understand windows application for the same. I used Class library. It is running fine locally. but s I deploy my application in IIS and access it from outside network it showing dialog box with message :
" an unhandled win32 exception occurred in outlook.exe [876] "
What should be that ? can somebody guide me for this please?
Edit 2:
Problem is still there. While i debugging the application I am getting the exception:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005. + OUTLOOK
I found this is the User Account Control problem on some blog. Is it true? Or What should be the solution over this. Is any another way rather than Interop services?
You should offer the contact as a vCard. When the user clicks on the "download" link, they will be prompted to add the vCard as a contact in Outlook.
http://en.wikipedia.org/wiki/VCard
Besides avoiding Office COM Automation, which is totally incompatible with ASP.NET, vCards are nice because everyone supports it.
You cannot use the Automation API of any Office product from a web application. It doesn't work; it may violate the terms of your license. The automation APIs and the applications themselves are not tested in a multithreaded environment.
- Save the contacts as CVS file format
- Import the CVS to outlook.
How to Import a Comma Separated Value (CSV) File Into Outlook
精彩评论