Default.aspx的与IIS 6.0和.Net 4? [英] Default.aspx with IIS 6.0 and .Net 4?

查看:125
本文介绍了Default.aspx的与IIS 6.0和.Net 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 我们已经部署在IIS 6.0上的.NET 4 asp.net网站。

  2. Default.aspx的配置为默认文档之一。

  3. 当我们使用以下URL访问该网站

的http://测试网站

我们希望它渲染

HTTP://testsite/Default.aspx

但是,相反我们得到 404未找​​到错误。当它被部署在NET 2.0我们并没有这个问题。只有已在服务器上更改的事情是,我们使用.NET 4,而不是NET 2.0。

But instead we get 404 Not found error. We did not had this issue when it was deployed on .Net 2.0. Only thing that has changed on the server is that we use .NET 4 instead of .NET 2.0.

更新:我尝试以下链接,但它没有工作。

UPDATE: I tried the following link but it did not work.

<一个href=\"http://johan.driessen.se/archive/2010/04/13/getting-an-asp.net-4-application-to-work-on-iis6.aspx\"相对=nofollow>获得一个ASP.NET 4应用程序在IIS6 工作

在服务器上的框架版本.NET 4 RC。如果我们在服务器上安装最新的.NET版本4有帮助吗?

The framework version on the server is .NET 4 RC. Will it help if we install the latest .NET 4 version on the server?

更新:这个问题现在已经解决了。问题是,我们使用它增加了自己的HttpHandler Web.Config中第三方上传控件。这HttpHandler的开始未能在.NET 4。

Update: The issue is resolved now. The problem was a Third party upload control that we were using which added its own HttpHandler in Web.Config. This HttpHandler started failing in the .NET 4.

推荐答案

检查服务器日志,它们可能会给你到底是怎么回事的一个更好的主意。

Check the server logs, they will probably give you a better idea of what is going on.

您可以通过右键单击在IIS的网站找到路径到日志文件,并转到属性。然后转到这个网站选项卡,在启用日志记录点击属性和日志记录属性窗口将会显示并显示路径日志文件。

You can find the path to the log file by right clicking the website in IIS and go to properties. Then goto the Web Site tab, under 'Enable logging' click properties and the logging properties window will show up which displays the path to the log file.

这篇关于Default.aspx的与IIS 6.0和.Net 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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