Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi,

I get the above error when i run a website in vs 2010..

I have already tried the available solutions:
1)Configure the website in IIS
2) Looking for the web.configs (not needed) and removing them.
3)moving the web.config from subfolder to the main.

But all this did not work for me..

Please guide me.. Is there any additional setting to be done.

As I m facing this issue for the first time.

Regards,
Janavi
Posted

If you get this error, it means what it says. You have a web.config file in a subfolder of your site. It has the allowDefinition='MachineToApplication' value, but in IIS you do not have a separate application defined at this level. This is an error. Remove this value from your web.config at the level that's getting the error, or define this level as it's own application.
 
Share this answer
 
Make you Web.Config file of Root folder and sub-folder same.
 
Share this answer
 
I think ur application folders in folders try to open exact folder of ur application in the sub folders
 
Share this answer
 
v2
Hi Janavi,

Please fallow the Steps :

1. Bulid a deployment packege. Default (Obj\Debug\PackegeTmp\)

2. Paste the folder Under InetPut > Wwwroot> your folder

3. Now Open IIS 7 and browse to that folder

4. Convert that folder to an Application via Convert to Application Option.

5. On Directory browsing

6. Now browse that virtual directory as u want and try open any page

revert me its work or not
 
Share this answer
 
Comments
Janavi Bhatt 30-Jul-12 21:02pm    
Hi Suvarata,

I have already have a package created as above.. But this also does not seem to work..

Regards,
Janavi.
Suvabrata Roy 2-Aug-12 2:30am    
Then we have to check your Code and IIS Settings ...
so will you able to Send the Code to Me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900