IIS 7 and Above
ASP.NET runtime error: is not a valid IIS application
Last post Jan 30, 2013 02:36 AM by andmray
Apr 17, 2011 05:39 PM|elkdanger|LINK
I hope someone can help me. I've installed (and reinstalled) IIS Express and VS2010 SP1, and when working with an ASP.Net MVC 3 project all of my Razor views are producing this error at design time (code view):
ASP.NET runtime error: '/IISExpress/7.5/LM/W3SVC/3/ROOT' is not a valid IIS application
It's throwing up lots of other errors as well with I think stem from this one. I don't have full-fat IIS 7 installed any more (I removed it to see if that solved the issue - it didn't) and everything is ok when working with the VS Development Server. This
is also the only application I have registered with IIS Express. I have gone into the web settings and configured the url as http://localhost:605, and created the Virtual Directory (several times, actually) which was reported as being created successfully.
Running and debugging the code works as normal, but obviously authoring code is just unpleasant as I get no intellisense and lots of errors. This happens with all my views in the project.
Can anyone help?
Many thanks in advance!
Apr 18, 2011 10:04 AM|lextm|LINK
ASP.NET MVC questions belong to ASP.NET forum,
Besides, when you try to reinstall IIS Express, you should delete all its configuration files so as to have a clean installation later.
Apr 18, 2011 10:30 AM|elkdanger|LINK
Thanks for the reply. I posted here as the signs at the time pointed towards it being an IIS Express issue. When I reinstalled IIS Express I was careful to remove all the configuration files too, but it didn't help.
Anyway, as it turns out it was neither. For future reference, I found that after comparing version numbers I didn't have the latest release of VS2010 SP1 installed, despite them both being marked 'SP1Rel'. I just installed SP1 and reinstalled it from the
Web Platform Installer and the issue it now fixed.
Jul 25, 2012 10:31 PM|quantuminformation|LINK
This is really scaring me. It was just a blue warning at the top of Index.cshtml in local IIS express but on live it fails.
Compiler Error Message:
CS0234: The type or namespace name 'Helpers' does not exist in the namespace blah... (are you missing an assembly reference?)
Jan 30, 2013 02:36 AM|andmray|LINK
You need to manually move the helper folder to your application folder on the server.