Add site in IIS on localhost

I tried to add my ASP.NET website in IIS 7.5 on my local computer. I have completed the following steps in IIS Manager.

  • Right Click Sites> Add Website and Specify Physical Path. (I selected the application pool as the default application pool)
  • Right-click the newly added Web site> Management> Browse.

When I try to browse a website, I get this error

The requested page is not available because the associated configuration data for the page is invalid

Here is a screenshot: http://i.stack.imgur.com/r7BPj.jpg

+3
source share
3 answers

It looks like the process in which your IIS application pool is running does not have read access to the directory you specified.

IIS, , Network Service ASP.NET 4.0 .NET.

, Network Service ASP.NET 4.0 ( ). .

+3

- "" "", , IIS Server. IIS " ", "" "HTTP" " ".

  • "" ""
  • Click Local IIS, and then select IIS Virtual Directory (ITI vitual Directory, which is the user-created directory when configuring the IIS server).
  • Open
+2
source

Source: https://habr.com/ru/post/1786389/


All Articles