Hosam Kamel's Blog

Sponsors

News


Follow HosamKamel on Twitter

Blogroll

Resolving 'Error Creating Control -xxx' in Web Application Project.

If you face this error while trying to open a web application project

Error Creating Control - control_Name

'/LM/W3SVC/1/Root/Project_Name' is not a valid IIS application.

error

You can resolve this error by following the below steps , the root cause of this error is the incorrect mapping between web application project and the virtual directory in your IIS.

To Resolve this error , follow the following steps:

1-Right click - you web application project and select Properties -> Web

2- in the server section choose Use IIS Web Server -> then click Create Virtual.

3- Clean your project and compile again.

done :)

Comments

Tuba said:

In my web application on aspx pages, the controls were not loaded, they had boxes on them with the error...

# September 28, 2007 4:31 AM

tuba said:

Thanks a lot, that is great

# September 28, 2007 4:55 AM

Hosam Kamel said:

Tuba, can you post what the error says, Thanks a lot.

# September 30, 2007 4:26 AM

Aarti said:

Thanks a lot for such a great help:-)

# June 24, 2008 5:50 AM

UnitesWebDev said:

Thanks for the post - My AJAX controls were randomly causing this. Now all works fine.

# August 13, 2008 10:46 AM

Matt said:

Its amazing how microsoft has not fixed this bug yet.  I run into it all the time. Especially when moving projects around.

# August 25, 2008 7:28 PM

Abdullah said:

Thanks a lot, for this solution

# August 26, 2008 8:20 AM

Ron said:

How do I get to step one.

# November 5, 2008 12:59 PM

Russel said:

Hello! I'm trying do to what you have given above (instructions) because i am also into this problem but when i am clicking "Create Virtual Memory", it will just give me a warning message prompt saying "Unable to create the virtual directory. Configuring the virtual directory for ASP.Net 2.0 failed. You may need to manually configured this site for ASP.Net 2.0 in order for your site to run correctly. And also in the first place, my server is already in IIS Web server at the start up of Visual Studio 2005. Any solution for this problem? Thanks in advance. =)

# June 16, 2009 11:08 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)