加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

为什么我的ASP.NET项目不会在启动项目中运行在开发服务器上?

发布时间:2020-12-16 04:07:02 所属栏目:asp.Net 来源:网络整理
导读:我有一个visual studio 2008解决方案,其中包含一个用于c#的asp.net托管的远程处理项目.该解决方案还包含其他c#项目和c项目. 调试我的c#客户端和asp.net服务器之间的交互时,调试很棒.我可以直接进入服务器调用并退出.但是,有时我需要将调试集中在没有asp.net
我有一个visual studio 2008解决方案,其中包含一个用于c#的asp.net托管的远程处理项目.该解决方案还包含其他c#项目和c项目.

调试我的c#客户端和asp.net服务器之间的交互时,调试很棒.我可以直接进入服务器调用并退出.但是,有时我需要将调试集中在没有asp.net项目的独立可执行文件上.

我的麻烦在于,在将启动项目设置为除asp.net项目之外的其他项目之后,不会阻止asp.net项目在开发服务器(和系统托盘)中启动.它本身似乎不是“调试”,但是当我不想要它时它正在运行并耗尽资源.

我检查并重新检查了启动项目设置.他们坚定地处于“关闭”状态.有关为什么会发生这种情况和/或如何预防这种情况的任何想法?还有其他人经历过这个吗?

Solution Notes: Chalk this one up to the “oh that’s where that is!” phenomenon in Visual Studio. This setting isn’t on the ASP.NET project properties page (right-click on project in solution explorer and choose “properties”),and isn’t on the startup projects UI. Instead it is on the “regular” properties page when the project is selected in the solution explorer. i.e. ensure the properties page is visible (View->Properties Window) and then click on the ASP.NET project in solution explorer. The top option is “Always Start when Debugging” which,when set to false,solved the problem.

解决方法

停止开发服务器启动.

>单击Solution explorer中的ASP.net项目.>在属性窗口中将“调试时始终启动”设置为false

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读