Dot Net: Error Creating Control
Sometimes during dot net development, 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. This error normally occurs if you have defined a sub folder as a virtual directory that is already within a virtual directory.
Solution
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.
Follow these steps to resolve this issue:
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. If the URL is already provided but not correct one, modify it accordingly.
3- Clean your project and compile again.
You are done
Recent Discussions