title: Trying to host static site through visual code, but getting error after build
body: <p>So I am learning C# and I am trying to deploy a simple static website and I am getting the following error message:</p>
  
  <blockquote>
    <p>HTTP Error 404.0 - Not Found The resource you are looking for has been
    removed, had its name changed, or is temporarily unavailable. Most
    likely causes: The directory or file specified does not exist on the
    Web server. The URL contains a typographical error. A custom filter or
    module, such as URLScan, restricts access to the file.</p>
  </blockquote>
  
  <p>Does anyone know what it could potentially be?</p>
  
  <p>I went back and looked at the possible causes and everything is fine, atleast I think.  </p>
  
  <p>This is how I added the website. </p>
  
  <p><a href="https://i.stack.imgur.com/tNeIF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tNeIF.png" alt="enter image description here"></a></p>
  
  <p>I mapped the domain name,  webapi.localhost.net, with the local server like this. I then put the modified file back as an administrator in C:\Windows\system32\drivers\etc 
  <a href="https://i.stack.imgur.com/AXiiX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AXiiX.png" alt="enter image description here"></a></p>
  
  <p>This is how i have my IISsetup. 
    <a href="https://i.stack.imgur.com/8zxJa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8zxJa.png" alt="enter image description here"></a></p>
  
  <p><strong>> > Detailed Error Information:</strong><br>
  Module    IIS Web Core<br>
  Notification   MapRequestHandler<br>
  Handler    StaticFile  Error Code    0x80070002
  Requested URL    <a href="http://webapi.localhost.net:80/api/user" rel="nofollow noreferrer">http://webapi.localhost.net:80/api/user</a><br>
  Physical Path   C:\Users\User Name\source\repos\webapi\api\user<br>
  Logon Method   Anonymous 
  Logon User    Anonymous</p>
  
  <blockquote>
    <p>More Information: This error means that the file or directory does
    not  exist on the server. Create the file or directory and try the
    request  again.</p>
  </blockquote>