ASP.NET runtime error: is not a valid IIS application [Answered]RSS

4 replies

Last post Jan 29, 2013 10:36 PM by andmray

  • ASP.NET runtime error: is not a valid IIS application

    Apr 17, 2011 01:39 PM|elkdanger|LINK

    Hi,

    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!

    vs2010 sp1 iis express

    Steve's Coding Blog: http://stevescodingblog.co.uk
  • Re: ASP.NET runtime error: is not a valid IIS application

    Apr 18, 2011 06:04 AM|lextm|LINK

    ASP.NET MVC questions belong to ASP.NET forum,

    http://forums.asp.net/1146.aspx/1?MVC

    Besides, when you try to reinstall IIS Express, you should delete all its configuration files so as to have a clean installation later.

    Regards,

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: ASP.NET runtime error: is not a valid IIS application

    Apr 18, 2011 06: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.

    Steve's Coding Blog: http://stevescodingblog.co.uk
  • Re: ASP.NET runtime error: is not a valid IIS application

    Jul 25, 2012 06: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.

     

    any tips?

     

    Compiler Error Message: CS0234: The type or namespace name 'Helpers' does not exist in the namespace blah... (are you missing an assembly reference?)
     

  • Re: ASP.NET runtime error: is not a valid IIS application

    Jan 29, 2013 10:36 PM|andmray|LINK

    You need to manually move the helper folder to your application folder on the server.