为什么当我尝试在IIS 7上部署ASP.NET 4时出现错误 [英] Why when I try to deploy ASP.NET 4 on iis 7 appear error

查看:64
本文介绍了为什么当我尝试在IIS 7上部署ASP.NET 4时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误是http 500,我安装了.net framework 4和sql 2008
从控制面板

the error is http 500 and I installed .net framework 4 and sql 2008
and configured iis from control panel

推荐答案

并配置了iis.此站点说明了500错误的含义.阅读完这些内容之后,您也许可以确定出什么问题了,因为您当然还没有给我们任何继续的意见:

http://www.checkupdown.com/status/E500.html [
This site explains what a 500 error means. After reading that, you may be able to determine what''s wrong, because you certainly haven''t bgiven us anything to go on:

http://www.checkupdown.com/status/E500.html[^]


如果这是一个崭新的系统,而您正面临如此,请不要惊慌.只需注册.NET Framework4.未注册,因此错误! (上周我也遇到了同样的事情.)

步骤:
1.打开命令提示符,然后转到"C:\ WINDOWS \ Microsoft.NET \ Framework \ v4.0.30319 \
(将文件夹更改为与您的.NET 2.0的确切版本相对应)
2.运行:aspnet_regiis.exe -i
3.运行上面的命令d后:iisreset
If it''s a fresh system and you are facing so, don''t panic. Simply register .NET framework 4. It''s not registered and hence the error! (I faced exact same thing last to last week.)

Steps:
1. Open a command prompt and go to "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\
(change folder to corresponds to your exact version of .NET 2.0)
2. Run: aspnet_regiis.exe -i
3. After running the above command d: iisreset


要在非默认网站上使用500-100.asp文件进行错误处理,请执行以下步骤:
启动Internet服务管理器(ISM),该服务器为Microsoft管理控制台(MMC)加载Internet信息服务管理单元.
右键单击适当的网站,单击新建",然后单击虚拟目录".

在虚拟目录创建向导"中,单击下一步".在别名"文本框中,键入IISHelp,然后单击下一步".

当提示您输入内容目录的路径时,请单击浏览",选择"WINNT \ Help \ IisHelp"文件夹,然后单击下一步".

在访问权限"页面上,接受所有默认设置,单击下一步",然后单击完成".

再次右键单击该网站,然后单击属性".

在自定义错误"选项卡上,选择"500; 100"错误行,然后单击编辑属性".

在邮件类型"列表框中,选择URL,然后在"URL"文本框中键入/iisHelp/common/500-100.asp.

单击确定"两次以返回ISM.

希望这可以解决您的问题.
To use the 500-100.asp file for error handling on the nondefault Web site, perform the following steps:

Start the Internet Service Manager (ISM), which loads the Internet Information Services snap-in for the Microsoft Management Console (MMC).
Right-click the appropriate Web site, click New, and then click Virtual Directory.

In the Virtual Directory Creation Wizard, click Next. In the Alias text box, type IISHelp, and then click Next.

When you are prompted for the path to the content directory, click Browse, select the WINNT\Help\IisHelp folder, and then click Next.

On the Access Permissions page, accept all the defaults, click Next, and then click Finish.

Right-click the Web site again, and then click Properties.

On the Custom Errors tab, select the 500;100 error line, and then click Edit Properties.

In the Message Type list box, select URL, and then type /iisHelp/common/500-100.asp in the URL text box.

Click OK twice to return to the ISM.

Hope this could solve your problem.


这篇关于为什么当我尝试在IIS 7上部署ASP.NET 4时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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