Click here to Skip to main content
12,078,742 members (48,899 online)
Rate this:
 
Please Sign up or sign in to 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 26-Jul-12 21:53pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Make you Web.Config file of Root folder and sub-folder same.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

I think ur application folders in folders try to open exact folder of ur application in the sub folders
  Permalink  
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

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
  Permalink  
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


Advertise | Privacy | Mobile
Web04 | 2.8.160212.1 | Last Updated 27 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100