开发者

Add a website to IIS on localhost

开发者 https://www.devze.com 2023-02-05 17:43 出处:网络
I was trying to add my ASP.NET website in IIS 7.5 on my local computer. I followed these steps in IIS Manager.

I was trying to add my ASP.NET website in IIS 7.5 on my local computer. I followed these steps in IIS Manager.

  • Right-click sites>Add website and specify the physical path. (I chose the app pool as Default app pool)
  • Right-click on the WebSite just added>Manage>Browse.

On trying to browse the website, I am getting this error

The requested page cannot be accessed because the related configuration data for the page is invalid

Here's th开发者_高级运维e screenshot:

Add a website to IIS on localhost


It sounds like the process your IIS App Pool is running under does not have read access to the directory you specified.

The IIS App Pool is probably running under Network Service or ASP .NET 4.0 account depending on the version of .NET you're using.

Try navigating to the physical directory and changing the security properties to give Network Service and ASP .NET 4.0 (if it exists on your computer) Read access.


Have a run through this page

http://blogs.iis.net/webtopics/archive/2010/03/08/troubleshooting-http-500-19-errors-in-iis-7.aspx


In the new website window under "Location" click on "Browse" to see the different Server options including IIS Server. User can select the server as IIS server instead of "File System", then the "Location" option will be "HTTP" instead of "File System".

  • New Website
  • Under Locations Click on "Browse"
  • Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server)
  • Open
0

精彩评论

暂无评论...
验证码 换一张
取 消