IIS相关的System.ExecutionEngineException

发布于 2025-01-04 00:52:49 字数 634 浏览 1 评论 0原文

经过太多时间的研究,我没有想出任何办法来解决这个问题。 我正在 Internet Explorer 上托管的 .xbap 页面文件中运行 WPF 程序。在 Visual Studio 2010 中运行该项目运行良好并且不会产生任何错误。

我希望能够在 IIS 7.0 上托管网页并使用 Windows 窗体应用程序浏览该网页。为了测试这一点,我在 IIS 管理器的端口 80 上创建了一个新网站。然后,我将项目发布到本地网站文件夹,并将自动生成的项目证书文件 (projectName_TemporaryKey.pfx) 添加到我的受信任的发布者和受信任的根证书颁发机构。

我的问题是这样的:每当我尝试使用 Internet Explorer 或 Windows 窗体程序浏览该文件时,wpf 程序就会停止工作。当拉出即时调试器时,我被告知存在 System.ExecutionEngineException,但没有给出源代码,没有堆栈跟踪,也没有空 Dictionary 枚举之外的数据。我的猜测是,这可能与程序中对另一台机器进行的数据库调用有关,但我无法证明这一点。

我尝试了多种方法来解决此问题,包括修复我的 .NET 4.0 框架和更改权限,但似乎没有什么会影响该错误。

有谁知道如何获取有关此错误的更多信息,或者也许我在发布此项目时可能错过了一个步骤?

非常感谢。

After too many hours of research I have come up with nothing to solve this problem.
I am running a WPF program in an .xbap page file being hosted on internet explorer. Running the project in Visual Studio 2010 works just fine and generates no errors.

I want to be able to host the webpage on IIS 7.0 and to browse to it with a windows forms application. To test this I created a new website on port 80 in IIS manager. I then published the project to the local website folder and added the autogenerated project certificate file (projectName_TemporaryKey.pfx) to my Trusted Publishers and Trusted Root Certification Authorities.

My problem is this: whenever I try to browse to the file with internet explorer or with my windows forms program, the wpf program stops working. When pulling up the just-in-time debugger, I am informed that there is a System.ExecutionEngineException but am given no source code, no stack trace, and no data outside of an empty Dictionary enumerable. My guess is that this might have something to do with the database call made in the program to another machine, but I can't prove that.

I've tried several things to solve this including repairing my .NET 4.0 framework and altering permissions but nothing seems to be affect the error.

Does anyone know of a way to get more information on this error, or perhaps a step I may have missed when publishing this project?

Thanks very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉薄对峙 2025-01-11 00:52:49

需要检查的一些事项:

  • Windows 事件日志通常包含其他异常信息(尽管通常格式很糟糕)
  • 输出一些 跟踪应用程序中的信息,以便您可以跟踪正在发生的情况
  • 尝试将调试器附加到 WPFHost,然后单步执行代码

Some things to check:

  • Windows event log often includes additional exception information (although usually in an awful format)
  • Output some trace information from your application so you can follow what's happening
  • Try attaching a debugger to the WPFHost and then stepping through the code
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文