如何在服务器上启动网站进行调试 [英] How to start website on the server for debugging

查看:277
本文介绍了如何在服务器上启动网站进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在另一台服务器上调试Web应用程序.
我已将所有Web应用程序源代码从本地计算机复制到其他服务器.
但是,当我尝试在Visual Studio中打开它时,它无法打开.它给出以下错误:

hi all,

I want to debug my web application on the other server.
I have copied all web application source code from my local machine to other server.
but when i am trying to open it in the visual studio it could not open. It gives following error:

The default web access mode for this project is set to file share, but the project folder at 'http://localhost/MyApplicationname'cannot be opened with the path '\\servername\wwwroot$\MyApplicationname'. The error returned was:
Unable to open Web project 'MyApplicationname'. The web 'MyApplicationname' located on server 'http://localhost' does not exist.



并提供选项重试使用其他文件共享路径"

请做需要的事...
您的帮助是适用的



and gives option to "Retry using a different file share path"

please do needful...
your help is appriciable

推荐答案

\ MyApplicationname'.返回的错误是: 无法 打开 Web项目' MyApplicationname'. Web ' MyApplicationname'位于服务器上的 ' http://localhost'不会存在.
\MyApplicationname'. The error returned was: Unable to open Web project 'MyApplicationname'. The web 'MyApplicationname' located on server 'http://localhost' does not exist.



并提供选项重试使用其他文件共享路径"

请做需要的事...
您的帮助是适用的



and gives option to "Retry using a different file share path"

please do needful...
your help is appriciable


首先打开您的解决方案文件,并查看项目的路径是否正确.然后,为您的Web应用程序创建一个虚拟目录.如果仍然不能解决问题,请逐步分享有关setp的详细信息.
1st of all open your solution file and see if the project''s path is correct. Then, create a virtual directory for your web application. If it does not solve your problem please share more information on what you did setp by step.


您将不得不在运行IIS的服务器上使用msvsmon.exe.并且您将必须从本地计算机连接到该计算机并连接到Web服务器进程以进行调试.

确保:

1.代码库与正在运行的站点相同
2.运行中的站点处于调试模式.
You will have to use msvsmon.exe on the server where the IIS is running. and you will have to connect from the local machine to that machine and connect to the webserver process to do the debugging.

make sure:

1. code base is same as for the running site
2. Running site is in debug mode.


这篇关于如何在服务器上启动网站进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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