Last post Nov 12, 2008 08:51 AM by jessjane
May 25, 2007 02:56 PM|PhilChalk_Marshalls|LINK
Hi, I have a asp.net 2.0 web app which is behaving oddly in development mode. I am being shown "'/LM/W3SVC/1/ROOT/MyProj/Default.aspx' is not a valid IIS application" errors in Visual Studio despite the fact that the project compiles/builds/runs entirely
OK. This error prevents me from viewing the page designs in 'Design' mode, although I can still view the page in 'Source' mode (albeit with lots of wavy error lines!). Does anyone know what the cause/solution of this is please? Regards, Phil
Visual studio 2005
May 27, 2007 12:30 AM|Girijesh|LINK
Post the source code.
May 28, 2007 05:01 AM|Nitinkcv|LINK
The problem that u are getting"'/LM/W3SVC/1/ROOT/MyProj/Default.aspx' is not a valid IIS application error is that most probably you have not added your application as a virtual directory in your IIS. If you indeed have added it, then please check if u have
spely i properly.
Jun 28, 2007 09:10 AM|BenVinci|LINK
In case anyone else gets this error....
The problem is when the project is a website that sits under another virtual directory.
When the project is setup, VS automatically creates a pointer to the IIS site that it thinks this site SHOULD be called, so it assigns, for example,
http://localhost/MyProj instead of
To change this, right-click on the project and go to properties, select the Web tab and change the Project URL to the correct location. Close and re-open any aspx pages and all should be fine.
configuration of ASP.net
Oct 18, 2007 12:41 PM|vishalsharma.net|LINK
If nothing works then remove the website from the solution and add again (using add existing)
close the solution and open again.
for me it works hope it works for you as well....
Jun 03, 2008 02:18 PM|buduznat|LINK
Thanks for posting this solution. I was having the same problem and the solution worked
Jun 30, 2008 12:02 PM|moose56|LINK
Thanks BenVinci, That was spot on for me.
I was converting a VS2003 project to 2005 and this was one of the issues that cropped up.
Jul 01, 2008 01:54 PM|kstennett|LINK
Phew! It works! Thanks for this solution
Nov 12, 2008 05:10 AM|ganesansankar|LINK
you are correct,
There is one more solution to this problem.
Go to the Project, Right click and select the properties of that project. It'll take it into the project properties.
Select the last tab called "Web" in that, you can see the two options under the server section.
Select the second option called Use IIS Web Server. There u could see the wrong URL which is pointed out currently.
That is the cause for this issue.
Now you change the Project URL path which correct. Then click the "Create Virtual Directory" button to fix this issue.
That's all about, how to fix this issue. Now you go and compile your application. it'll compile with out any error.
Thanks and Regards
Nov 12, 2008 08:51 AM|jessjane|LINK
Hello to all,
There is some problem with your source code buddy, Mostly the script strings are make errors, check your code carefully with references. Send to your any friend for checking because some times we can't figure out.