如何在Windows 7上使用IIS7.5为网站创建URL [英] How to create a url for a web site using IIS7.5 on Windows 7

查看:96
本文介绍了如何在Windows 7上使用IIS7.5为网站创建URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以告诉我如何在Windows 7中的IIS7.5上托管Web应用程序。



当我'我试图这样做。我收到了以下错误。







错误摘要

HTTP错误500.19 - 内部服务器错误

无法访问请求的页面,因为页面的相关配置数据无效。



请帮助。



谢谢。

Hi ,
Can anybody tell me how to host a web application on IIS7.5 in windows 7.

When I''m trying to do so. I''m getting following error.



Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Please help.

Thank you.

推荐答案

啊,



消息说您的配置文件在某种程度上已损坏。但是它也说它实际上无法访问配置文件。所以我会忽略关于腐败/缺乏有效性的原始信息,因为这很可能只是由于缺乏授权而无法读取文件的效果。



无法读取配置文件的原因是因为运行Web应用程序的进程无权访问文件/目录。因此,您需要为运行Web应用程序的进程提供这些权限。



访问权限应该相当简单,即至少读取,并且,取决于您的应用程序,也许写。



文件web.config只能通过你的应用程序访问。





选项:

也许 asp.net 帐户没有出现在IIS管理器中,如果是这样,在Windows 7中按照以下步骤操作:



- 打开控制面板

- 点击程序链接(不卸载程序)

- 点击转动窗口功能打开/关闭链接

- 在弹出窗口中找到Internet信息服务IIS并展开其节点

- 展开万维网服务节点

- 展开应用程序开发功能节点

- 选中ASP.NET复选框

- 然后单击确定按钮





[由Intermension]



干杯,

Edo
Ahmm,

The message is saying that your configuration file is corrupt in some way. However it also says that it can''t actually access the config file. So I''d ignore the original message about corruption/lack of validity as this is most likely just the effect of not being able to read the file due to a lack of authorization.

The reason it cannot read the config file is because the process running your web app does not have permission to access the file/directory. So you need to give the process running your web app those permissions.

The access rights should be fairly straightforward, i.e. at least Read, and, depending on your app, maybe Write.

The file web.config should only be accessible through your application.


Option:
Perhaps the asp.net account does not appear in the IIS manager, if so, in windows 7 follow the steps:

- Open control panel
- Click on" program" link (not uninstall programs)
- Click" turn windows features on/off" link
- locate" Internet Information services IIS" in the pop up window and expand its node
- Expand the" World Wide Web Service" node
- Expand "Application Development Features" node
- check the check box of"ASP.NET"
- Then click ok button


[by Intermension]

Cheers,
Edo


这篇关于如何在Windows 7上使用IIS7.5为网站创建URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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