IIS Express configuration error

When I try to open an existing website, Visual Studio opens this error:

Error initializing applicationhost.config file. Copying applicationhost.config to \ servername \ folder \ folder2 \ folder3 ... failed. Cannot find the network name.

The problem is that \ servername could not be found. How to change this server name to something that exists?

\\servername disabled, since visual studio even uses this server?

Any help is appreciated.

+6
source share
2 answers

My discovery is if you install IIS after installing visual studio. VS may not have access to IIS-related files, such as the Applicationhost.config file. This is why uninstalling and reinstalling VS solved this problem.

0
source

After uninstalling and reinstalling VS, this problem was resolved.

0
source

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


All Articles