Search code examples
visual-studioiis-expressaccess-rights

How to solve “Microsoft Visual Studio (VS)” error “Unable to connect to the configured development Web server”


PROBLEM

If you start using "Microsoft Internet Information Services Express (IIS)" from "Microsoft Visual Studio (VS)" you may get when you run Build this error message

Unable to connect to the configured development Web server.

Failed to register URL "http://{ip_addr}:{port}/" for site "{project_name}" application "/". Error description: Access is denied. (0x80070005)

What kind of rights is it?


Solution

  • SOLUTION

    This means that you are missing the right for using it. Create it with Netsh Commands for Hypertext Transfer Protocol > add urlacl.

    1. Open "Command Line Interface (CLI)" called "Command shell" with Win+R write "cmd"

    2. Open CLI windows like administrator with mouse context menu on opened windows or icon "Run as administrator"

    3. Insert command to register url

    netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone
    

    Note