Click here to Skip to main content
15,886,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,
I'm getting following error in web config when i m trying to execute my project on another machine.I tried to create virtual directory as well as configured IIS exploer to solve it.But still getting the same error.please help me for this.

Error:
HTML
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.

XML
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
Posted
Updated 17-Sep-12 9:21am
v2
Comments
ZurdoDev 14-Sep-12 17:00pm    
There is likely another web.config somewhere in the heirarchy of your site.

Hello,

I think you are facing such Issue Becouse Of


Is your project run perfectly on your previous Machine ?

If Yes Then....i think it happened because you of are Not Selecting Proper Folder while you (file <<open website<<then please select the actual folder of you application (it may like Newfolde1<<folder2<<application folder)please browse actual folder )...


Definitely it will help you....



please let me your feed back .


Please mark if it works.....
 
Share this answer
 
v3
Comments
[no name] 17-Sep-12 17:26pm    
Please Let ME know your Feed Back.
Aysha Patel 19-Sep-12 7:04am    
thx lukman....i got solution before.n yes it was the problem of folder.i was trying to open my website within already another website...by the way thanks again.
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition='MachineToApplication'" error message[^]

Other useful link that has similar issue discussed: http://forums.asp.net/p/769696/769696.aspx[^]
 
Share this answer
 
Comments
Aysha Patel 19-Sep-12 7:05am    
thanks...yes it was bcz of multiple web config file.
Sandeep Mewara 19-Sep-12 7:31am    
If so, good to know that I could help you to resolve the issue.

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