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.
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.