运行项目时出错 [英] Error running the project
问题描述
我正在使用VS2013。当我尝试运行我的项目时,我收到一条错误消息,因为
无法在Web服务器上开始调试.IIS没有列出一个网站,匹配VS2013中的启动URL。
后来我甚至尝试以'管理员'的身份运行VS.当我尝试这样做并运行我的项目时我收到错误
HTTP错误500.19 - 内部服务器错误
无法访问请求的页面,因为页面的相关配置数据无效。
详细错误信息:
模块
IIS Web核心
通知
BeginRequest
Handler
尚未确定
错误代码
0x8007000d
配置错误
配置文件
\\ ?\ C:\ Users \vasur \Desktop \NRE \ CDS.NationalRail.Web.UI \web.config
请求的URL
http:// localhost:80 / Cds.NationalRail.Web.UI /
物理路径
C:\ Users \vasur \Desktop \NRE \ CDS.NationalRail.Web.UI \
登录方法
尚未确定
登录用户
尚未确定
在浏览器中。
任何人都可以帮助解决问题,以便我可以运行我的项目。
I am using VS2013. When I try run my project I am getting an error message as
"unable to start debugging on the web server. IIS does not list a web site that matches the launch URL in VS2013".
Later I even tried running the VS as 'Administrator'. When I try to do so and run my project I am getting an error as
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module
IIS Web Core
Notification
BeginRequest
Handler
Not yet determined
Error Code
0x8007000d
Config Error
Config File
\\?\C:\Users\vasur\Desktop\NRE\CDS.NationalRail.Web.UI\web.config
Requested URL
http://localhost:80/Cds.NationalRail.Web.UI/
Physical Path
C:\Users\vasur\Desktop\NRE\CDS.NationalRail.Web.UI\
Logon Method
Not yet determined
Logon User
Not yet determined
in the browser.
Can anyone please help to fix the problem so that I can run my project.
推荐答案
查看您的Web项目的项目属性,在Web选项卡中有项目URL的设置,下拉菜单可让您从不同的项目中进行选择服务器。这必须是正确的。我们不知道正确是什么,因为我们无法访问您的系统,也不知道您是如何配置IIS \ Visual Studio等的。
对于错误RE web.config,您似乎尝试从不是IIS配置站点的根目录的文件夹运行网站。要从文件夹运行站点,您需要在IIS中创建一个指向该文件夹作为其根目录的网站。
阅读一些有关设置和部署的文章IIS中的网站,应该解释您需要做的各种事情。
Look at the project properties for your web project and in the "Web" tab there is a setting for the project url, and a drop down that will let you choose from different servers. This has to be correct. We don't know what "correct" is as we don't have access to your system and don't know how you have configured IIS\Visual Studio etc.
For the error RE the web.config it looks like you're trying to run a website from a folder that is not the root of an IIS configured site. To run a site from a folder you need a web site to be created in IIS that point to that folder as its root.
Read some articles on setting up and deploying websites in IIS and that should explain the various things you need to do.
这篇关于运行项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!