I have a C#.NET project and am having a problem with a single web forms, ASPX page when debugging my application. Most of my application works fine, but when I hit a particular page, I get an Error 404, resource not found. I don't understand this because the file does exist, and it exists in the path that is being referenced. And, I hit several other ASPX pages on the way to this one, without error.
我有一个C#.NET项目,在调试我的应用程序时遇到单个Web表单,ASPX页面的问题。我的大多数应用程序工作正常,但当我点击特定页面时,我得到错误404,找不到资源。我不明白这个,因为文件确实存在,并且它存在于被引用的路径中。而且,我在去往这个的路上遇到了其他几个ASPX页面,没有错误。
Now, I should mention that this particular page was only recently added to the project. My coworker, who added the page, says he was able to get the page to work, but we have different environments. So, I'm sure that has something to do with it, but I don't know what. Below are the known details regarding the differences between our environments.
现在,我应该提一下,这个特定页面最近才被添加到项目中。我添加页面的同事说,他能够让页面工作,但我们有不同的环境。所以,我确信这与它有关,但我不知道是什么。以下是有关我们环境之间差异的已知详细信息。
My environment
我的环境
- Windows 8.1
- Windows 8.1
- IIS Express
- IIS Express
- Visual Studio 2013
- Visual Studio 2013
Co-workers environment
同事环境
- Windows 7
- Windows 7的
- IIS 7
- IIS 7
- Visual Studio 2012
- Visual Studio 2012
We are both running with the same source code, as well as the same site and application pool settings in IIS, which are pointed to run time 4.0 and in classic mode.
我们都运行相同的源代码,以及IIS中相同的站点和应用程序池设置,它们指向运行时4.0和经典模式。
Does anyone here have any idea why this would happen, or what I might try to get past this?
这里有没有人知道为什么会这样,或者我可能试图通过这个?
1 个解决方案
#1
1
I ended up fixing this by switching to local iis and enabling the Static Content option in Windows Features.
我最终通过切换到本地iis并启用Windows功能中的静态内容选项来解决此问题。
#1
1
I ended up fixing this by switching to local iis and enabling the Static Content option in Windows Features.
我最终通过切换到本地iis并启用Windows功能中的静态内容选项来解决此问题。