vs 2003无法创建项目 http1.1 500 server error 如何解决

VS.net 2003中创建一项ASP.NET Web 应用程序,此时发生错误: 尝试创建Web项目或打开位于URL"http://localhost/WebApplication1"Web项目时,Web服务器报告了以下错误。"HTTP/1.1 500 Internal Server Error"。被这个问题折磨2天了,无奈之下.net2天没用,之所以不想装系统是因为我想找到为题的解决方法,可惜啊,很多网上搜索到的方法都试过了,比如1(重新安装ASP.NET 组件);2 重新启动一下IIS 或者在"运行"中输入:iisreset;3 VS里的命令框中输入regsvr32 scrrun.dll我还忍痛割爱花了100多分在zhidao.baidu.com上悬赏,得到了三个人的答复,http://zhidao.baidu.com/question/25143055.html ,最终都不能够解决!
最后用了google搜索,包括英文的,有种想见恨晚的感觉,第一条搜到了一条消息,
I have .NET working swimmingly on my Win 2K laptop. I'm inthe process of trying to get it working on my home PC,running Win XP Pro.IIS installed fine, .NET framework and the softwareinstalled fine, but here's the situation. Whenever I tryto create a new web application in Vis Studio .NET 2003, Iget the following error:The web server reported the following error whenattempting to create or open the Web project located atthe following URL: 'http://localhost/test'. HTTP 1.1/500Server Error'.I did some further testing, and found the following:-IIS is up, and successfully serves an HTML page I placedin wwwroot.-IIS will not serve up the iisstart.asp file that's inwwwroot - it gets the same HTTP 1.1/500 Server Error-I'm logged in as a member of the local administratorgroup-The default web site properties match the working IIS onmy laptop exactly on every screenFinally, I tried uninstalling VS 2003, .NET Framework 1.1,AND IIS. Then, I reinstalled IIS, and even withoutany .NET stuff at all, I can't get the iistart.asp to comeup at all.Clearly, it looks like something just is missingsomewhere. Any ideas what it might be?Thanks,Steve
看明白了,当时很激动,这小伙遇到了跟我一样的问题,慢慢找答案吧,最终在 http://www.aspfaq.com/2109 下找到了办法,做到第三步(for c)IIS--默认网站---属性---主目录--创建(应用程序),回头试验.net-------大功告成!!!爽!




心得:1google有的时候确实比baidu好用!
尤其它的英文网站搜索功能,对于找一些技术性的问题能得到更多外国朋友的方法,同时也说明中国的论坛不用心,当然,很多还是好的,也有大部分人看了问题想也不想直接就说重装IIS,重装系统,我不知道这些人说这些的时候心里怎么想,不会很洋洋得意吧!
2
、别有问题就装系统!
刚才也提到了一点,装系统!你会的东西人家都会还值钱吗?
3
、一天哪怕解决一个问题也是好的,起码学到东西了!

 

 

Why do I get a 500 Internal Server error for all ASP errors?

You might be finding it difficult to debug ASP errors in a browser. This is because IE, versions 5.0 and up, defaults to a ridiculous option that suppresses errors to a more "friendly" error (which, IMHO, is a lot more cryptic than what they'd get otherwise). This comes back to the user as a 500.100 Internal Server Error (ASP 0147), and in certain scenarios a 404 Page cannot be found error, and doesn't leave the user much information to pass on to the webmaster, except to tell them that "The page cannot be displayed." 
 
To circumvent this silliness and get real ASP errors, go to IE's Tools/Internet Options menu, and on the advanced tab, uncheck "Show friendly HTTP error messages." 
 

 
 
Hit Apply, OK, and refresh the page in question. There are five possible outcomes; the page will either:

  1. still yield cryptic and unhelpful error messages (e.g. Page Not Found); 
     
  2. stop processing where the error occurs, and leave the rest of the page blank; 
     
  3. return "Server Application Error";  
     
  4. give you a more detailed error; or, 
     
  5. magically work again.

For (a), open Internet Services Manager, go to the home directory tab of your default web site or application, click on Configuration, go to the Debugging tab, and make sure "Send detailed error messages to the client" is selected. 
 

 
 
Page not found errors can also be caused by the IIS Lockdown wizard; or, in Windows Server 2003 / IIS 6.0, a misconfigured Application Server. See
Article #2147 for information on configuring your application server to allow the server to process ASP files. 
 


For (b), if you aren't heavily dependant on automated debugging, open Internet Services Manager, go to the home directory tab of your default web site or application, click on Configuration, go to the Debugging tab, and uncheck "Enable ASP server-side script debugging" and "Enable ASP client-side script debugging." 
 


For (c), open Internet Services Manager, right-click the application, select Properties, and on the Home Directory tab, click the Remove button to unload the application, and OK out of the dialog. Go back in and hit Create to reload the application. 
 

 
 
If this error is happening under the default web site, try restarting IIS, using the following command line or batch file: 
 

IISReset /y

 
If that doesn't help, then try the suggestions in
Article #2226, Article #2267, Article #2355, and Article #2356


 
Finally, check the event log, as occasionally there is more information there than you will see in the browser. Of course this is even more likely if you can't change the IIS or browser configurations. 

 

 

 

我的总结:

看下iis是不是500错误啊

解决办法

[1]

检查你的DTC服务(全名:Distributed Transaction Coordinator)是否可以正常启动,

 

如果正常的话请你跳过此步骤;如果出错,无法正常启动,请在开始菜单的运行中 运行:msdtc -resetlog 以创建日志文件。重起机器,检查IIS是否可以正常使用,若不行继续。

 

[2]

CMD下执行以下命令:

cd %windir%/system32/inetsrv

 

rundll32 wamreg.dll, CreateIISPackage

 

regsvr32 asptxn.dll

其次要注意iis.netframework的安装次序

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值