Peacemaker
Peacemaker
CC#
Created by Peacemaker on 4/16/2023 in #help
❔ VS Debug Bad Request - Invalid Hostname
I am new to dot net and I am supposed to implement some frontend. I have cloned the project, I am supposed to run it on IIS Express. I've fixed ssl certificate and now I'm facing Bad Request Invalid Hostname when I run debug on IIS Express in Visual Studio.. I've tried changing both ...\Site\Site.vs\Site\config\applicationhost.config and ~documents\IIS Express\config\applicationhost.config like so:
<site name="Site" id="1">
<application path="/" applicationPool="Site AppPool">
<virtualDirectory path="/" physicalPath="My\Path\.." />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:4300:localhost" />
<binding protocol="https" bindingInformation="*:44395:localhost" />
</bindings>
</site>
<site name="Site" id="1">
<application path="/" applicationPool="Site AppPool">
<virtualDirectory path="/" physicalPath="My\Path\.." />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:4300:localhost" />
<binding protocol="https" bindingInformation="*:44395:localhost" />
</bindings>
</site>
I've tried changing browsers, deleting ...\Site.vs folder and then running it again None of those worked
27 replies