Saturday, September 15, 2007 3:16 PM HosamKamel

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 :)

Filed under: ,

Comments

# "error creating control" "is not a valid IIS application"

Friday, September 28, 2007 4:31 AM by Tuba

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

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

Friday, September 28, 2007 4:55 AM by tuba

Thanks a lot, that is great

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

Sunday, September 30, 2007 4:26 AM by HosamKamel

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

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

Tuesday, June 24, 2008 5:50 AM by Aarti

Thanks a lot for such a great help:-)

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

Wednesday, August 13, 2008 10:46 AM by UnitesWebDev

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

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

Monday, August 25, 2008 7:28 PM by Matt

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

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

Tuesday, August 26, 2008 8:20 AM by Abdullah

Thanks a lot, for this solution

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

Wednesday, November 05, 2008 12:59 PM by Ron

How do I get to step one.

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

Tuesday, June 16, 2009 11:08 PM by Russel

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. =)

Leave a Comment

(required) 
(required) 
(optional)
(required)