如何使解决方案在本地Web服务器上工作? [英] How to make solution work on Local webserver?

查看:74
本文介绍了如何使解决方案在本地Web服务器上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个配置为在IIS上运行的ASP.net应用程序.现在
我试图复制该项目并打开进行调试.但它告诉我
该项目配置为在IIS中运行,似乎我的系统中没有IIS" .
我只想打开项目并在VS2008本地Web服务器中进行调试.
但是我无法查看解决方案.只有当我能够查看它时,我才能更改该解决方案的属性.所以我该怎么做?如果我没有IIS?如何调试,保留断点并运行应用程序?

在此先感谢
Naveen ...

Hi all,

I have an ASP.net application which is configured to work on IIS. Now
im trying to copy that project and open to debug. But it shows me
"this project is configured to run in IIS,Seems there is no IIS in my system".
I just want to open the project and debug in VS2008 Local Webserver.
But I am not able to view the solution. Only when I am able to view it, i will be able to change the property of that solution. So what should i do? if i dont have IIS? How can i debug, keep breakpoints and run the application?

Thanks in advance
Naveen...

推荐答案

右键单击解决方案->转到属性"页面->转到设置",然后选择表示Visual Studio Webserver的单选按钮.当前,它必须是IIS.保存并重新打开.

其他方法可能是在记事本中打开项目/解决方案文件并删除IIS配置的属性.保存文件并在VS中打开.
Right click the solution -> Go to Properties page -> Go to Settings and select the radio button that says for Visual Studio Webserver. Currently it must be IIS. Save it and re-open.

Other way around could be to open the project/solution file in notepad and remove the IIS configured property. Save the file and open in VS.


感谢Sandeep.

但是仍然有问题:confused:

首先,我安装了所有VS2008组件,然后复制了Web应用程序
已配置为其他计算机IIS.但是我的系统中没有IIS.因此
后来我在系统中安装了IIS 5.1,然后打开该Web App并
尝试手动配置虚拟目录并在我的系统中调试该解决方案.但是
它显示服务器不支持ASP.NET或ATL服务器应用程序的调试".因此我尝试了从Microsoft网站到
的解决方案. 注册(C:\ Windows Directory \ Microsoft.Net \ Framework \< Version> \ aspnet_isapi.dll),但是仍然无法解决我的问题,并且无法调试该网站.

我现在该怎么办?

在此先感谢

Naveen ....:confused:
Thanks Sandeep .

But still have problem :confused:

First i installed all VS2008 components ,then i copied web application
which was configured to other machine IIS .But NO IIS in my system.So
later i installed IIS 5.1 in my system,then Opened that Web App and
try to configure virtual directory manually and debugged that solution in my system .But
it shows "Server does not support debugging of ASP.NET or ATL server applications" .So i tried solutions from microsoft web site to
register (C:\Windows Directory\Microsoft.Net\Framework\<Version>\aspnet_isapi.dll ) ,but still my problem dint get solved and could not debug that website.

What should i do now ?

Thanks in advance

Naveen....:confused:


这篇关于如何使解决方案在本地Web服务器上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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