Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Cannot connect localhost to IIS Express

$
0
0

I'm not sure if this is the right thread but this is connected to my last question ("ApplicationHost not showing new Website"- since solved) so I think it best to raise this here.

Programmatically I can create web sites in the IIS Express ApplicationHost.config file.  However, if I point the code to the IIS ApplicationHost.config file (via serverManager("configpath") ) I get an IOFileException: Access Denied error.  I have not been able to reset the security on this config to gain access.

If I run LocalHost using Internet Explorer and the port number I have assigned when creating the site using the program on the IIS Express ApplicationHost.config, Internet Explorer cannot find the site.  However, if I create the site using Control Panel Etc, (i.e.manually) then Internet Explorer using LocalHost will open the site.  ALSO if I have a copy of Web Matrix running to edit the Application code Internet Explorer using LocalHost will now open the site using the IIS Express port number.

I want to accomplish a Desktop Shortcut activating Internet Explorer and targeting "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://localhost:portnumber/".  As this stands, it defaults to the IIS ApplicationHost.config.  It does not bother me if I redirect Internet Explorer to the IIS Express config OR gain access to the IIS config to create the required site there.  But at the moment I have the problem that I cannot do either.  How to either would be appreciated.


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>