Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do i get Error http 500.0 when running IIs-express from a folder?

I am trying to run the iis-express command tool from a folder :

iis-express /path:. /trace.

i have the admin rights , and my folder only contains a index.html file. when i try to do it that way , all i get is an http Error 500.0 error. If i try to open the folder with webmatrix , then run the website , it works though , any suggestions ? where can i read the logs on my Windows 7 pc too ?

like image 553
mpm Avatar asked Jan 20 '26 23:01

mpm


1 Answers

IIS Express (iisexpress.exe) does not expand current directory when you pass '.' as value for /path switch. Instead of '.', provide full path to the content directory.

iisexpress.exe /path:<full-path-to-content-directory>

You can find logs in %userprofile%\documents\iisexpress\ directory (in 'logs' and 'TraceLogFiles' folders) Note: When iisexpress.exe is started from command line, it will be named as 'Development Web Site'.

like image 69
vikomall Avatar answered Jan 23 '26 15:01

vikomall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!