error to use a section registered as allowDefinition='MachineToApplication' beyond application level

Posted by Jyothika07 under ASP.NET on 12/7/2010 | Points: 10 | Views : 12616 | Status : [Member] | Replies : 3
Hi All,

I upgraded the Application from visual studio 2.0 to visual studio 3.5 ,I run the application i got the following error.
Error:-
---------
ASP.NET runtime error: 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 am unable to resolve the issue.
please can any one help me on this,Thanks in advance.

Thanks,
-Jyothika




Responses

Posted by: Chvrsri on: 12/7/2010 [Member] [Moderator] [MVP] Silver | Points: 25

Up
0
Down
Here you have to consider 2 issues.
1st thing you must provide Integrated windows authentication . For this right click your project properties in IIS.
and go to Directory Security tab click edit and enable Integrated windows authentication .

2nd thing which is your error you have to change the frame work level of your ASP application.
for this right click your project properties, go to ASP.net tab. there change your ASP.net version to 3.5 on which you are working now.

These Settings to be done on IIS. If you do not host the application at IIS. Apply these properties to Default web site which is located in the IIS.

Hope this helped you.!!!!




Thanks,
Radha Srikanth

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

Posted by: Jyothika07 on: 12/7/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Srikanth

Thank you very much for the reply.
1st thing I checked with the project properties in IIS Directory security by default it showing enabled Integrated windows authentication.
2nd tthing is i tried to change the version but is was not updated,in the listbox it showing 2.0 Asp.net version only,i am unable to change the Asp.net version 2.0 to 3.5.
So what steps i have to follow to resolve this issue. Thanks in advance.

Thanks,
-jyothika



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

Posted by: SheoNarayan on: 12/7/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Please have a look at this post that explains the reason and how to solve this issue.

http://blogs.msdn.com/b/robgruen/archive/2005/09/12/464196.aspx
If not, read this link http://aspadvice.com/blogs/joteke/archive/2007/09/01/What-is_3A00_-It-is-an-error-to-use-a-section-registered-as-allowDefinition_3D002700_MachineToApplication_2700_-beyond-application-level_3F00_.aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

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

Login to post response