This is a rather old thread, but I'm having the same problem, and unfortunately this reply for how to find the virtual directory to right-click on it didn't help me. I can find Default Web Site under IIS, but there is no virtual directory there... The original
suggested solution was: "To resolve it, Right Click on the virtual directory - select properties and then click on
"Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed."
But I don't know if this doesn't apply to me. I have never ever had to access IIS before. I have simply created a web site in Visual Studio, used the environment "local host" for testing, and then deployed the whole site to a web host. Note that I'm getting
this error when trying to set the machineKey in the local host environment, I haven't even tried to upload it to the web host yet.
For users of Silverlight if you have upgraded from SL3 VS 2008 to 4 and VS 2010 you may find that you get this error you should make sure the folder is set in IIS as described in this post
ALSO
<authentication mode="Windows" /> is in the web.config in your root and the xx.Web folder this can cause the error.
I AM NO EXPERT
but if you move the line <authentication mode="Windows" /> from the xx.Web folder copy to the copy in the root you should be OK, it does make sense that authentication is in the root
johncowart
Member
2 Points
2 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Mar 09, 2010 03:51 AM|LINK
Worked for me. Just made the sub an app.
niachipal
Member
11 Points
3 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
May 03, 2010 04:30 PM|LINK
Be more specific .... from where should i Right Click... Is it from VS or from IIS Manager ? I tried everything, and this thing is driving me Nuts!
Why is this CRAP so complicated? There is not a different way to get your page running right away without all this
configuration CRAP?
Anyway, thank you for your effort ?
anderszvenss...
Member
18 Points
17 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
May 18, 2010 01:07 PM|LINK
This is a rather old thread, but I'm having the same problem, and unfortunately this reply for how to find the virtual directory to right-click on it didn't help me. I can find Default Web Site under IIS, but there is no virtual directory there... The original suggested solution was: "To resolve it, Right Click on the virtual directory - select properties and then click on
"Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed."
But I don't know if this doesn't apply to me. I have never ever had to access IIS before. I have simply created a web site in Visual Studio, used the environment "local host" for testing, and then deployed the whole site to a web host. Note that I'm getting this error when trying to set the machineKey in the local host environment, I haven't even tried to upload it to the web host yet.
Regards,
Anders
svibuk
Member
717 Points
1728 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 16, 2010 09:39 AM|LINK
i too had the same prblm and was trying frm 15 days
the best soluton i found was for windows 7 & IIS7 was click your virtual directory on the right hand side panel u get convert to application
click on it . it will set u r virtual directoy for the application
it worked for me
A.M.I.T. Gad...
Member
8 Points
10 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 17, 2010 07:29 AM|LINK
I am getting the error even after removing the duplicate web.Config file.
I have my site hosted.
Please help
Thanks
Amit
पुणे,इंडिया
prathamjain2...
Member
743 Points
569 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 18, 2010 12:23 PM|LINK
hiii
the main reason i found behind this that u have not configured ur website on IIS
HERE is the solution:
just go to control panel->IIS->websites->your app name->right click on it->properties->your app name and click create ->again your app name and ok
done
happy coding
please mark as answer if it helps
Please mark as answer if this post helps u
jnc
Participant
1030 Points
380 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 21, 2010 04:11 PM|LINK
For users of Silverlight if you have upgraded from SL3 VS 2008 to 4 and VS 2010 you may find that you get this error you should make sure the folder is set in IIS as described in this post
ALSO
<authentication mode="Windows" /> is in the web.config in your root and the xx.Web folder this can cause the error.
I AM NO EXPERT
but if you move the line <authentication mode="Windows" /> from the xx.Web folder copy to the copy in the root you should be OK, it does make sense that authentication is in the root
Barkils
Member
6 Points
3 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 21, 2010 04:12 PM|LINK
Pleasge help me I'm strugglering with the same problem. What did you do to solve it?
Barkils
Member
6 Points
3 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 21, 2010 04:15 PM|LINK
How did you solve it?
jnc
Participant
1030 Points
380 Posts
Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond a...
Jun 21, 2010 04:40 PM|LINK
just do what Pratham Jain says earlier then move the line : <authentication mode="Windows"/>
AND
from the web.config in your .web folder to the web.config in your application root
This is only for Silverlight I cannot help beyond what has been said before if you are just using ASP