如何配置IIS [英] How to configure IIS

查看:73
本文介绍了如何配置IIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序.我在iis上发布. iis在我的本地计算机上.我对其进行了很好的配置,但是当我浏览页面时,它给出了以下错误....

用于运行ASP.NET的进程帐户必须具有对IIS元数据库的读取访问权限(例如IIS://servername/W3SVC).有关修改元数据库权限的信息,请访问http://support.microsoft.com/?kbid=267904.</pre>

请尽快回复....
谢谢您!

I have an web aplication.Which i publish on iis. iis is on my local computer. I configure it well but when i brows the page it gives an following error ....

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.</pre>

Please reply as soon as possible....
Thank u !

推荐答案

根据您的发帖帖子,您会收到此错误消息,因为对配置数据库的权限不足,或者因为权限设置不正确.您需要更改权限.

1)打开命令提示符,然后转到根路径.
2)(这里我使用的操作系统是Windows XP)转到dotnet框架路径. cd {您的根路径} \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727
3)将其写入命令提示符aspnet_regiis –ga ASPNET
运行此命令将使用户"aspnet"不存在.
此带有参数(-ga)的命令检查授予指定用户(ASPNET)或组对IIS元数据库和ASP.NET使用的其他目录的访问权限. 4)将其写入命令提示符aspnet_regiis –iru
运行此命令将安装iis.
此命令是安装与Aspnet_regiis.exe关联的ASP.NET版本,并且仅在IIS中注册ASP.NET.
5)将其写入命令提示符aspnet_regiis -s W3SVC/1/Root/.

这将安装脚本映射,指向与Aspnet_regiis.exe关联的ASP.NET ISAPI版本.指定的应用程序根路径及其子目录中的ASP.NET应用程序.
As per your post itslef, you receive this error message because the permissions to the metabase are insufficient, or because the permissions are set incorrectly. You need to change the permissions.

1) Open the command prompt and go to the root path.
2) (here I m used Operating System is Windows XP) go to the dotnet framework Path. cd {Your Root Path}\WINDOWS\Microsoft.NET\Framework\v2.0.50727
3) write this in to command prompt aspnet_regiis –ga ASPNET
run this it gives The User ‘aspnet’ not exist.
This command with parameter (-ga) check the Grants the specified user (ASPNET) or group access to the IIS metabase and other directories that are used by ASP.NET.
4) write this in to command prompt aspnet_regiis –iru
run this it install the iis.
This command is Installs the version of ASP.NET that is associated with Aspnet_regiis.exe and only registers ASP.NET in IIS.
5) write this in to command prompt aspnet_regiis -s W3SVC/1/Root/.

This installs the script map, points to the ASP.NET ISAPI version associated with Aspnet_regiis.exe. ASP.NET applications at the specified application root path and its subdirectories.


这篇关于如何配置IIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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