I have a web application that runs fine under IIS5 or IIS6. I just installed Vista, which has IIS7. I just copied the entire web app over as-is, no changes to any files. I went into the IIS7 manager and created a web appliction under the Default Web Site and pointed it to the app I copied over.
我有一个在IIS5或IIS6下运行良好的Web应用程序。我刚刚安装了Vista,它有IIS7。我只是按原样复制了整个网络应用程序,没有对任何文件进行任何更改。我进入IIS7管理器并在默认网站下创建了一个Web应用程序,并将其指向我复制的应用程序。
When I try to browse to the app in IE, it tells me there's nothing there to handle it and that directory browsing is not turned on. This is a .NET app, so it uses Default.aspx. I looked in the manager, and there was no handling of Default.aspx setup. Is that not on by default for IIS7?
当我尝试浏览IE中的应用程序时,它告诉我没有什么可以处理它并且目录浏览没有打开。这是一个.NET应用程序,因此它使用Default.aspx。我查看了管理器,并没有处理Default.aspx设置。 IIS7默认情况下不启用?
So, I added Default.aspx, and now the error is "HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map."
所以,我添加了Default.aspx,现在错误是“HTTP错误404.3 - 未找到由于扩展配置,无法提供您请求的页面。如果页面是脚本,请添加处理程序。如果文件应该是下载后,添加一个MIME地图。“
I thought maybe it was because the default for IIS7 is Integrated Mode, so I created a new AppPool for Classic Mode and changed my app to use that. I still get the same error.
我想也许是因为IIS7的默认设置是集成模式,所以我为经典模式创建了一个新的AppPool并更改了我的应用程序以使用它。我仍然得到同样的错误。
I was under the impression that I could move .NET apps to IIS7 without any changes. Is this not true?
我的印象是我可以将.NET应用程序移动到IIS7而不做任何更改。这不是真的吗?
1 个解决方案
#1
0) Check if you have asp.net extensions installed under Programs and Features - Windows Features - WWW services - Application Development Features - .Net Extensibility / ASP.Net
0)检查是否在程序和功能下安装了asp.net扩展 - Windows功能 - WWW服务 - 应用程序开发功能 - .Net可扩展性/ ASP.Net
1) The Microsoft .net framework
1)Microsoft .net框架
2) Try copying the whole directory to your IIS's root folder (usually wwwroot), common error that iuser/iwam does not have rights to read the other folder.
2)尝试将整个目录复制到IIS的根文件夹(通常是wwwroot),这是iuser / iwam无权读取其他文件夹的常见错误。
3) Check under "Handler Settings" if you have .aspx associated with any Isapimodules.
3)如果您的.aspx与任何Isapimodules相关联,请在“处理程序设置”下检查。
#1
0) Check if you have asp.net extensions installed under Programs and Features - Windows Features - WWW services - Application Development Features - .Net Extensibility / ASP.Net
0)检查是否在程序和功能下安装了asp.net扩展 - Windows功能 - WWW服务 - 应用程序开发功能 - .Net可扩展性/ ASP.Net
1) The Microsoft .net framework
1)Microsoft .net框架
2) Try copying the whole directory to your IIS's root folder (usually wwwroot), common error that iuser/iwam does not have rights to read the other folder.
2)尝试将整个目录复制到IIS的根文件夹(通常是wwwroot),这是iuser / iwam无权读取其他文件夹的常见错误。
3) Check under "Handler Settings" if you have .aspx associated with any Isapimodules.
3)如果您的.aspx与任何Isapimodules相关联,请在“处理程序设置”下检查。