简体   繁体   English

应用程序“默认网站”中的服务器错误

[英]Server Error in Application “DEFAULT WEB SITE”

I wrote a short code in the notepad and save it as .asp in the inetpub\\wwwroot\\MyWeb after that when I acccess the address of this page "http://localhost/MyWeb/test1.asp" in my chrome this error occurs "Server Error in Application "DEFAULT WEB SITE" ".I read some pages in this topic but I can't find the solution. 我在记事本中写了一个简短的代码,并将其另存为inetpub \\ wwwroot \\ MyWeb中的.asp,之后,当我在Chrome中访问此页面"http://localhost/MyWeb/test1.asp"的地址时,就会发生此错误“应用程序“默认网站”中的服务器错误”。我阅读了本主题中的某些页面,但找不到解决方案。

I installed visual studio 2010 before IIS. 我在IIS之前安装了Visual Studio 2010。 should I uninstall visual studio and re install it. 我应该卸载Visual Studio并重新安装它。

Assuming that you are using II 6.0 and above, so you will need to set IIS to allow activer serverpages for you in the Web Extensions setting 假设您使用的是II 6.0及更高版本,则需要在Web Extensions设置中将IIS设置为允许Activer服务器页面。

  1. Start IIS then go to Web Service Extensions 启动IIS,然后转到Web服务扩展
  2. A list will appear 将出现一个列表
  3. on the right. 在右边。 Select 'active server pages' 3) Press the 'Allow' button 选择“活动服务器页面” 3)按下“允许”按钮

Update on comment from OP: OP的评论更新:

By default ASP is not enable on IIS 7 so please use link on how to enable it http://learn.iis.net/page.aspx/562/classic-asp-not-installed-by-default-on-iis/ 默认情况下,IIS 7上未启用ASP,因此请使用有关如何启用它的链接http://learn.iis.net/page.aspx/562/classic-asp-not-installed-by-default-on-iis/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将IIS7.5网站作为应用程序时-应用程序“默认网站”中的服务器错误? - when Make IIS7.5 Web Site an Application - Server Error in Application “DEFAULT WEB SITE”? 如何在iis 7服务器中创建默认网站? - How to create default web site in iis 7 server? Web应用程序:站点在IDE上运行,而不在公共服务器上运行 - Web application: site works on IDE and not on a public server “/”应用程序中的服务器错误。 访问托管在共享网络路径(文件管理器)上的网站时 - Server Error in '/' Application. While accessing web site which is hosted on a shared network path (filer) 如何将应用程序添加到IIS 7中的默认网站? - How do I add an application to Default Web Site in IIS 7? 在开发人员机器上将ASP.NET应用程序作为默认网站运行 - Run ASP.NET application as Default Web Site on dev machine 如何在IIS默认网站根目录(虚拟路径:“ /”)中创建应用程序? - How to create Application in the IIS Default Web Site root (virtual path : '/')? 如何避免网站中的自定义/服务器错误? - How to avoid custom/Server error in web site? 如何知道我的网站在asp.net中的默认服务器? - How to know the default server of my web site in asp.net? ASP.NET网站到Web应用程序的转换错误 - ASP.NET Web Site to Web Application conversion error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM