当前位置: 首页 > news >正文

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的安装次序

相关文章:

  • textarea限制字数
  • asp 生成静态
  • 图片做提交按钮和重置按钮
  • 80后的80条幽默有哲理的语录(转)
  • 蜗居台词,蜗居经典台词
  • 2009年最新搞笑语录
  • 系统找不到指定文件 No installed service name 'Apache2'
  • Js双击鼠标自动滚动屏幕的代码
  • 一个过滤特殊字符的JS
  • 一个精美强大的JS日历
  • 从客户端中检测到有潜在危险的 Request.Form 值
  • 风声无组件上传出现无效的过程调用或参数instr的解决办法
  • 风声无组件上传(2.0)修改版参数详解
  • js获取url参数
  • js显示日期和时间
  • CentOS从零开始部署Nodejs项目
  • Java多线程(4):使用线程池执行定时任务
  • js写一个简单的选项卡
  • LeetCode29.两数相除 JavaScript
  • mysql 5.6 原生Online DDL解析
  • rc-form之最单纯情况
  • React的组件模式
  • Yii源码解读-服务定位器(Service Locator)
  • - 概述 - 《设计模式(极简c++版)》
  • 回顾 Swift 多平台移植进度 #2
  • 检测对象或数组
  • 排序算法学习笔记
  • 容器化应用: 在阿里云搭建多节点 Openshift 集群
  • 如何设计一个微型分布式架构?
  • 深入浅出Node.js
  • 使用common-codec进行md5加密
  • 为物联网而生:高性能时间序列数据库HiTSDB商业化首发!
  • 问:在指定的JSON数据中(最外层是数组)根据指定条件拿到匹配到的结果
  • 用 vue 组件自定义 v-model, 实现一个 Tab 组件。
  • 怎样选择前端框架
  • 最近的计划
  • k8s使用glusterfs实现动态持久化存储
  • ​学习一下,什么是预包装食品?​
  • ​一帧图像的Android之旅 :应用的首个绘制请求
  • ###C语言程序设计-----C语言学习(6)#
  • #{}和${}的区别是什么 -- java面试
  • #【QT 5 调试软件后,发布相关:软件生成exe文件 + 文件打包】
  • (c语言)strcpy函数用法
  • (Git) gitignore基础使用
  • (二)构建dubbo分布式平台-平台功能导图
  • (机器学习的矩阵)(向量、矩阵与多元线性回归)
  • (转)利用ant在Mac 下自动化打包签名Android程序
  • ./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: ./incl
  • .axf 转化 .bin文件 的方法
  • .NET / MSBuild 扩展编译时什么时候用 BeforeTargets / AfterTargets 什么时候用 DependsOnTargets?
  • .net mvc部分视图
  • .NET Standard、.NET Framework 、.NET Core三者的关系与区别?
  • .NET 回调、接口回调、 委托
  • .net获取当前url各种属性(文件名、参数、域名 等)的方法
  • .NET运行机制