In prod my site (mvc5) is hosted on https://company.no/myApp/ where myApp is an Application on IIS.
In dev my site is hosted on IIS Express on http://localhost:54307/
As this causes some truble with server relative paths I would like to also do my debugging on http://localhost:54307/myApp.
This is what I've tried:
- Setting project url in property pages to
http://localhost:54307/myAppand clicking Create Virtual directory - Tried the override application root with or without the myApp url.
Tried modify the applicationhost.config. Currently my setting looks like this:
<site name="MyApp.Web-Site" id="38"> <application path="/" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\Projects\OP\MyApp\Main\src\MyApp.Web" /> </application> <application path="/MyApp" applicationPool="Clr4IntegratedAppPool"> <virtualDirectory path="/" physicalPath="C:\Projects\OP\MyApp\Main\src\MyApp.Web" /> </application> <bindings> <binding protocol="http" bindingInformation="*:54307:localhost" /> <binding protocol="https" bindingInformation="*:44307:localhost" /> </bindings> </site>
When I try to open page from the myApp folder I get the follownig error:
Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x800700b7 Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'WSFederationAuthenticationModule' Config File \\?\C:\Projects\OP\MyApp\Main\src\MyApp.Web\web.config Requested URL http://localhost:54307/MyApp Physical Path C:\Projects\OP\MyApp\Main\src\MyApp.Web That indicates web.config loaded twice. Any idea what I'm doing wrong?
Thanks for any help
Larsi
