Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I upgraded my website from VS2008 to VS2010. It's hosting shows some problems connected with IIS. So I configured IIS. But still it doesn't work.

I got the following error message.

VB
Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: 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.


I searched on the google and I couldn't get the right answer...

What are the changes I have to make on web.config?

Please help me...

Thank you...
Posted
Updated 9-Nov-11 18:34pm
v4
Comments
hitech_s 8-Nov-11 4:39am    
are you uploading any images to the folder at server or writing data to files at server ?
Neha Thanka 8-Nov-11 5:12am    
No. Even a blank .aspx page cannot be displayed.
hitech_s 8-Nov-11 5:22am    
when did you get this error? I mean at what page you are getting this error.first debug your page you will get an exception in such cases also you will get those errors
Neha Thanka 8-Nov-11 5:49am    
It works properly on local host. I hosted the website inside a subdirectory and call it as www.myweb/test. Then I got that error message.
hitech_s 8-Nov-11 6:05am    
while you are typing the site address you are getting error?
can you provide your startup page code..
you said that you are hosting in test folder may be the path you are giving is not correct

So, google says:
meh[^], or meeeeeeeeh[^]
 
Share this answer
 
Comments
thatraja 8-Nov-11 6:20am    
Right, 5!

BTW what's that? what do you mean meh & meeeeeeeeh? :D
Nickos_me 10-Nov-11 2:37am    
I simply think, that problem that author can't solve isn't so difficult as he said. I know, that sometimes it's really hard to solve easy problems but...but in this case, first google links gives right answer, so I just want to talk as a sheep :)
This error occured from many reasons
one of this
check your application.....
if web.config present in other folder also.
delete it from other folder.only one web config file is needed.
 
Share this answer
 
Comments
Neha Thanka 8-Nov-11 4:45am    
I have only one web.config. I checked all the folders...
If your web site( hosted in IIS) contains multiple web.config files(one at application level and other at directory level, and one below that one in heirarchy), then other than application level web.config file,other web.config files having authentication authorization,membership,roles tags leads to this problem.

these have to be placed at application level web.config files.


For more information,visit

IIS WebHosting
 
Share this answer
 
v3

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



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