如何与Outlook连接asp.net web应用程序? [英] how to connect asp.net web application with outlook?

查看:167
本文介绍了如何与Outlook连接asp.net web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,我们为管理联系人。我想保存选定的联系人当前用户的Outlook联系人列表。如何做到这一点?我使用asp.net + C#.NET。请指导我。

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.

编辑

我已经通过以下链接做到了这一点。

I have done this by following this link.

<一个href=\"http://www.c-sharpcorner.com/uploadfile/rambab/outlookintegration10282006032802am/outlookintegration.aspx?login=true&user=lalitcdhake\" rel=\"nofollow\">http://www.c-sharpcorner.com/uploadfile/rambab/outlookintegration10282006032802am/outlookintegration.aspx?login=true&user=lalitcdhake

它同样很大,容易理解Windows应用程序。我用的类库。这是在本地运行的罚款。但的I部署我的IIS应用程序,并从外网访问它,它显示与信息对话框:

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 :

一个未处理的win32异常发生在OUTLOOK.EXE [876]

" an unhandled win32 exception occurred in outlook.exe [876] "

应该是那是什么?可有人指导我这个好吗?

What should be that ? can somebody guide me for this please?

编辑2:

问题仍然存在。虽然我调试应用程序我得到异常:

Problem is still there. While i debugging the application I am getting the exception:

检索COM类工厂具有CLSID组件{0006F03A-0000-0000-C000-000000000046}失败,原因是以下错误:80080005. + OUTLOOK

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?

推荐答案

您应该提供联系人作为电子名片。当用户点击下载链接,就会被提示的电子名片添加为Outlook中的联系人。

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

除了避免办公室COM自动化,这是与ASP.NET完全不相容,电子名片是不错的,因为每个人都支持它。

Besides avoiding Office COM Automation, which is totally incompatible with ASP.NET, vCards are nice because everyone supports it.

这篇关于如何与Outlook连接asp.net web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆