在 Vista 中运行 Wpf 应用程序的权限问题
我创建了一个 WPF 桌面应用程序并尝试将其部署到 vista,但没有成功。该应用程序执行扫描并将数据上传到互联网上的网络服务。它还应该使用 NLog 将任何异常记录到硬盘上。当我运行应用程序时,尝试将数据发送到 Web 服务时出错。如果我以管理员身份运行它,它工作正常。我尝试了很多方法,但似乎没有任何效果。 Nlog 不记录异常,因此很难判断发生了什么。任何方向将不胜感激。
I created a WPF Desktop application and have tried deploying it to vista without success. The application performs a scan and uploads the data to a web service on the internet. It should also log any exceptions using NLog to the hard drive. When I run the application it errors out when trying to send the data to the web service. If I run it as administrator it works fine. I have tried a number of things but nothing seems to work. Nlog doesn't log the exception so it's difficult to tell what is happening. Any direction would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向我的应用程序添加强名称可以使其在计算机上获得完全信任。这解决了访问外部 Web 服务的任何问题。请前往此处了解如何签署您的申请。
Adding a strong name to my application allowed it to be given full trust on the machine. This solved any issues getting to the external web service. Go here to learn how to sign your application.