Asp.net 为什么VisualStudio会说我的解决方案/网站有0个错误,而且它确实有错误(然后浏览器会抛出一个“错误404.17”)?

Asp.net 为什么VisualStudio会说我的解决方案/网站有0个错误,而且它确实有错误(然后浏览器会抛出一个“错误404.17”)?,asp.net,visual-studio-2010,iis-6,compile-time,build-time,Asp.net,Visual Studio 2010,Iis 6,Compile Time,Build Time,当我在ASP.NET项目中执行生成>重建解决方案和生成>重建网站时,它生成时没有错误。但是,当我通过F5运行它时,我会得到,“出现了生成错误。是否要继续并运行上次成功的生成?” 我选择“否”,错误列表仍然显示0个错误(11个警告) 因此,VisualStudio似乎表示解决方案/网站有0个错误,然后再次指出它确实有错误。它是否有0个编译时错误,但确实有构建时错误?如果是这样,我如何确定这些构建时错误是什么,以便修复问题 这是一个Visual Studio 2010 VB网站,使用IIS6 更新

当我在ASP.NET项目中执行生成>重建解决方案和生成>重建网站时,它生成时没有错误。但是,当我通过F5运行它时,我会得到,“出现了生成错误。是否要继续并运行上次成功的生成?”

我选择“否”,错误列表仍然显示0个错误(11个警告)

因此,VisualStudio似乎表示解决方案/网站有0个错误,然后再次指出它确实有错误。它是否有0个编译时错误,但确实有构建时错误?如果是这样,我如何确定这些构建时错误是什么,以便修复问题

这是一个Visual Studio 2010 VB网站,使用IIS6

更新 当我右键单击解决方案并选择“在浏览器中查看”时,我得到:“错误404.17-未找到 请求的内容似乎是脚本,静态文件处理程序不会为其提供服务。”

更详细的异常转储是:

Server Error in Application "DEFAULT WEB SITE/CPSPORTAL"
Internet Information Services 7.5
Error Summary
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Detailed Error Information
Module  StaticFileModule
Notification    ExecuteRequestHandler
Handler StaticFile
Error Code  0x80070032
Requested URL   http://localhost:80/CPSPortal/default.aspx
Physical Path   C:\CSPortalCode\csportal\default.aspx
Logon Method    Anonymous
Logon User  Anonymous
Most likely causes:
The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.
Things you can try:
If you want to serve this content as a static file, add an explicit MIME map.
Links and More Information
Sometimes preconditions and a wildcard MIME map can unintentionally cause serving script source.
View more information »
那么,这一切究竟意味着什么呢?如何更恰当地将代码引入浏览器

更新2 我觉得这很奇怪/可怕,而且有点令人反感。以下是我尝试各种方式运行网站时发生的情况:

Build > Rebuild Solution == 0 Errors

Build > Rebuild Website == 0 Errors

F5 or Shift+F5 == "There were build errors..."

Right-click the project in Solution Explorer and select "View in Browser" == the site runs in the browser showing me the Login page, active and responsive

ReSharper > Inspect > Code Issues in Solution == get 12,000 "issues" reported by R#
这正是我需要的照明

按照它的建议,我转到控制面板>管理工具>IIS管理器>Connections.ApplicationPools>默认应用程序池>高级设置…>并更改了“常规”部分中的以下项目:

现在该网站终于运行了……然而,据Resharper称,它有12000个“代码问题”(甚至还没有那么庞大的项目)

更新 Curiouser和Curiouser-R#说有VB编译错误,它们看起来确实有效,但重建解决方案说有0个错误,并且网站确实在浏览器中运行

.NET Framework Version == v4.0 (was "No Managed Code")
Enabled 32-Bit Applications == True (was False)