Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS5.1 C# VS2010
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 at 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 at 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
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 27 Jul 2012
Copyright © CodeProject, 1999-2014
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