Skip to main content

HTTP/1.1 500 Internal Server Error

运气不好,开机以后就碰到“HTTP/1.1 500 Internal Server Error”这个错误。

使用Google搜索的话,第一个是http://support.microsoft.com/kb/822319官方的东西,但是依然没有解决我的问题。尝试使用中文搜索找到:HTTP/1.1 500 Internal Server Error,寒一下,在一个英文论坛,xiaosan-33这个老兄,发表了长篇的中文,而且页面是utf-8的,必须改用gb2312才能看到,要不然是乱码。

aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account.
这个才是关键,本机的aspnet_wp.exe没有启动。

解决步凑:

  1. 删除本机的ASPNET和IUSR_{machine}用户。(IUSR_{machine}每台机器各有不同)
  2. 运行aspnet_regiis -i重新注册。
  3. 运行iisreset,重启iis
  4. 打开Internet Information Services,确保在IIS的安全设置(匿名访问)里面找到"IUSR_machine"用户,并且是由IIS控制密码的;
  5. 注销。
  6. 这步也许不是必要的。两个用户添加以后,在User Account中查看,发现一个为Users,一个为Guests,把他们全部变成了Adminstrator。
问题解决。

补充一下本机环境。xp sp2,vs2003,vs2005,iis 5.1,framework 1.1, 2.0, 3.0。

Comments

Popular posts from this blog

Google Notebook整合了Google 书签

FF上一直装有Google笔记本的插件,一直没有到一面上去看,今天无意点到。发现多了个叫“Unfiled”的记事本,记得自己并未建过这么个东西,进去一看才发现,其实就是我的Google书签: 并且右下角也多了“Labels”,且与我Google书签中的相同。 其实人家的右上角的“ New features! ”里说得很清楚: Integration with Google Bookmarks Notebook is now integrated with Google Bookmarks. Your bookmarks will show up as a special Unfiled notebook, making Google Notebook a single place to collect and organize interesting web pages. To publish and collaborate, just drag and drop bookmarks into notebooks.

调用Response.Redirect时出现ThreadAbortException

调用Response.Redirect("test.aspx")时出现ThreadAbortException异常,是因为在内部调用Response.End(),而Response.End() 方法终止页的执行,并将此执行切换到应用程序的事件管线中的Application_EndRequest 事件。不执行 Response.End 后面的代码。可以使用 Response.Redirect ("test.aspx", false); 来代替。 更多情况请参考 PRB:在使用 Response.End、Response.Redirect或Server.Transfer时出现ThreadAbortException 适用于.net framework 1.0 1.1