Error report in asp.net

Posted by Surisetti.rajesh under Regular Expressions on 4/13/2010 | Views : 1309 | Status : [Member] | Replies : 3
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Backup Files\webApplication\webApplication\Web.config


i got this error message while build the prog how i can retify this...




Responses

Posted by: Vuyiswamb on: 4/14/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
How many Web config's do you have ?

Do you have a web config in the root of your application folder?

Thank you for posting at Dotnetfunda
[Administrator]

Surisetti.rajesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Surisetti.rajesh on: 4/14/2010 [Member] Starter

Up
0
Down
+ Web application
| Web.config
| Webapplication1.sln
Web.config

like this iam having two web.config files
inside on web.config and out side one..

Surisetti.rajesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/14/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
That is the problem. You cannot have two web config sitting in the Root Directory of your solution and more than one inside a one folder. decide and remove all and leave one

Thank you for posting at Dotnetfunda
[Administrator]

Surisetti.rajesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response