Click here to Skip to main content
Sign Up to vote bad
good
See more: C#2.0
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:
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.

<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 14 Sep '12 - 2:12
Edited 17 Sep '12 - 9:21

Comments
ryanb31 - 14 Sep '12 - 17:00
There is likely another web.config somewhere in the heirarchy of your site.

2 solutions

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.....
  Permalink  
Comments
LAKHANP22 - 17 Sep '12 - 17:26
Please Let ME know your Feed Back.
Aysha Patel - 19 Sep '12 - 7:04
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[^]
  Permalink  
Comments
Aysha Patel - 19 Sep '12 - 7:05
thanks...yes it was bcz of multiple web config file.
Sandeep Mewara - 19 Sep '12 - 7:31
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Ron Beyer 220
1 OriginalGriff 203
2 Mahesh Bailwal 190
3 Aarti Meswania 185
4 Rohan Leuva 180
0 Sergey Alexandrovich Kryukov 8,548
1 OriginalGriff 6,819
2 CPallini 3,648
3 Rohan Leuva 2,933
4 Maciej Los 2,288


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid