C# w3wp.exe 中未处理的 microsoft .net 框架异常

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15252455/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 14:42:12  来源:igfitidea点击:

unhandled microsoft .net framework exception in w3wp.exe

c#.networkflowservice

提问by mani mano

I am writing a console application which uses a workflow service. I tried to attach the visual studio to IIS process to debug my application in two visual studio console but it didn't work and after that when I try to do something with my service ( update the service, build the service, open the service in browser and etc) just in-time debugger pops up: An unhandled Microsoft .net framework exception occurred in w3wp.exe[every time diffident number here]

我正在编写一个使用工作流服务的控制台应用程序。我尝试将 Visual Studio 附加到 IIS 进程以在两个 Visual Studio 控制台中调试我的应用程序,但它不起作用,之后当我尝试对我的服务做一些事情(更新服务,构建服务,在浏览器等)只是及时调试器弹出:在 w3wp.exe 中发生了未处理的 Microsoft .net 框架异常[这里的每个时间都有不同的数字]

P.S. I have a running service in IIS and before changing setup I didn't have any problem but now even after restarting I still have this problem.

PS 我在 IIS 中有一个正在运行的服务,在更改设置之前我没有任何问题,但现在即使重新启动后我仍然有这个问题。

回答by Aruna

Follow below article for more information. I solved this issue by running visual studio as Administrator.

按照下面的文章了解更多信息。我通过以管理员身份运行 Visual Studio 解决了这个问题。

http://anishantha87.blogspot.com/2014/09/an-unhandled-microsoft-net-framework.html

http://anishantha87.blogspot.com/2014/09/an-unhandled-microsoft-net-framework.html

Hope this will help!

希望这会有所帮助!

回答by Devesh

Restart site in IIS and also restart app pool worked for me.

在 IIS 中重新启动站点并重新启动应用程序池对我有用。