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

在Visual Studio 2008中,用户遇到一个问题,即在调试非ASP.NET项目时,ASP.NET项目仍然会启动,即使已设置启动项目为其他。解决方案在于关闭ASP.NET项目的“Always Start when Debugging”选项,这可以在项目属性的常规页面中找到。此设置导致项目在不需要时占用资源。问题解决后,调试体验得到改善。
摘要由CSDN通过智能技术生成

我有一个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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值