获取FileLoadException [英] Getting FileLoadException

查看:73
本文介绍了获取FileLoadException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



偶尔,在Visual Studio 2015中,我在以下行中收到以下异常:

< br $>




这与一次运行两个项目有关。我正在运行的两个项目是MVC Web应用程序和Web API应用程序。我曾经运行MVC Web应用程序(它将被设置为启动项目)和
然后右键单击Web API项目,转到Debug并说"启动新实例"。

$
最近,我发现您可以设置解决方案,通过右键单击解决方案,立即自动启动两个项目,转到"设置启动项目,然后选择要启动的项目。



但我偶尔也会遇到此异常。一旦发生这种情况,我必须重新启动计算机才能让它消失。



是什么原因引起的?如何在不重新启动计算机的情况下阻止它发生?我很确定我必须在任务管理器中杀死一个进程(很可能是Web API应用程序),但我不知道如何识别它。

解决方案

嗨Andy,


欢迎来到MSDN论坛。


请参阅您的说明,您的问题是关于ASP .NET开发。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
https://forums.asp.net/并开始一个新的主题以寻求更专业的支持,感谢您的理解。


如果您对此有任何疑问VS IDE将来,请随时告诉我,祝你有个美好的一天。



祝你好运,


Sara


Hello,

Once in a while, in Visual Studio 2015, I get the following exception on the following line:



This has to do with running two projects at once. The two projects I'm running are an MVC web application and a web API application. I used to get this error all the time when I would run the MVC web application (it would be set as the startup project) and then right-clicking on the web API project, going to Debug, and saying "Start new instance".

Recently, I discovered that you can set the solution to automatically start both projects at once by right-clicking on the solution, going to "Set Startup Projects", and selecting the projects you want to start.

But I still get this exception once in a while. Once it happens, I have to reboot my computer in order to get it to go away.

What causes it? How can I stop it from happening without rebooting my computer? I'm pretty sure I have to kill a process in the task manager (most likely the web API application) but I don't know how to recognize it.

解决方案

Hi Andy,

Welcome to the MSDN forum.

Refer to your description, your issue is about ASP.NET development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.asp.net/ and start a new thread to seek for a more professional support, thank you for your understanding.

If you have any issues about the VS IDE in the future, please feel free to let me know, have a nice day.

Best regards,

Sara


这篇关于获取FileLoadException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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