Outlook互操作问题&特定于Windows 10的权限 [英] Outlook interop issues & permissions specific to Windows 10

查看:85
本文介绍了Outlook互操作问题&特定于Windows 10的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们有一个内部开发的应用程序,我称之为OurClient,它是用.NET编写的(特别是它是一个C#WinForms应用程序)。 OurClient的一个功能是,如果用户遇到问题,他们可以选择单击帮助按钮
,它收集有关设置,陷阱异常详细信息等的相关信息,并使用COM互操作到Outlook将自动打开发送给开发人员团队的电子邮件,其中包含这些详细信然后,用户可以添加他们想要的任何额外信息并将其发送出去,我们可以及时回复他们,并提出解决问题的建议。

We've got an internally developed application, which I'll call OurClient, which is authored in .NET (specifically it is a C# WinForms application). A feature of OurClient is that if a user encounters an issue, they have the option to click a Help button which gathers up relevant information on settings, trapped exception details, etc., and using COM interop to Outlook will automatically open an email addressed to the developer team which includes those details. The user can then add any additional information they want and send it off, and we can get back to them promptly with ideas for resolving their problems.

在Windows 7上,这可行完美无缺。迁移到Windows 10一直很困难,温和地说。

On Windows 7 this works flawlessly. Migrating to Windows 10 has been a struggle, to put it mildly.

让我们假设在Win10中,必须以管理员身份安装和运行OurClient才能正常工作(简而言之,具有其产生的其他批处理文件和应用程序的适当功能 - 涉及高水平的自动化)。在
这样做时,半自动电子邮件操作会抛出COMException(MK_E_UNAVAILABLE),因为Outlook不是以管理员身份运行的。尝试将用户的Outlook实例设置为以管理员身份运行解决了
问题,但似乎还会产生其他问题 - 例如,搜索无法正常工作。因此,我有点陷入僵局。

Let's assume that in Win10, OurClient has to be installed and run as administrator to do its job properly (in a nutshell, having proper functionality of other batch files and applications that it spawns - there's a high level of automation involved). In doing so, the semi-automated email operation throws a COMException (MK_E_UNAVAILABLE) since Outlook is not being run as administrator. Having tried to set our users' Outlook instances to run as administrator solves this issue, but seems to create other problems - search not working, for example. As such, I'm at a bit of an impasse.

对于朝这里工作的方向有任何想法吗?我是否需要回顾并更详细地重新访问OurClient及其核心功能,以确定它是否可以"无管理员"运行?从概念上讲,我想要完成的只是提出一个
部分填充的电子邮件,用户可以通过他们的帐户发送给我们。 

Any thoughts as to a direction to work toward here? Do I need to circle back and revisit OurClient and its core functionality in more detail to see if it can be run sans "As Administrator"? Conceptually all I want to accomplish is bringing up a partially populated email that the user can send to us from their account. 

谢谢!

推荐答案

您好,

感谢您发布此处。

因为您的问题与Outlook开发问题有关,我将案例移到

展望发展论坛

Since your issue is related to outlook development issue, I will move the case to outlook development forum.

最佳 此致,

Best  Regards,

Hart


这篇关于Outlook互操作问题&特定于Windows 10的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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