Re: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level



That looks correct.

Is you application root folder configured as an application in IIS?

whats the complete errror message?

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Yes, i am trying to get a subfolder rpotected by adding:
<location path="crm">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
The actual folder crm is not configured as an application. If i
configure it as an application visual studio throughs it out. What is
the correct procedure to do so? And if i configure it as an applicatio
how would i include it in the project?

Dominick wrote:

which element are you trying to add to the sub folder -
<authorization> ?? that works

Is your base folder configured as an application??

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
I have an application with some subfolders that i am trying to
protect. When i configure the web.config to secure that folder, i
get the dreaded, "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."

On my testing server it works fine, on the live server it doesnt. I
cannot make the subdirectory an application. On the live server i
dont have acess to iis. And besides not having acess making the
folder an application kinda defeats the purpose of having forms
authentication in the first place. What's the point of having forms
authentication when you cannot secure sub folders.

Any help?



.



Relevant Pages

  • RE: c1030af7 on SBS2003, after installing ProjectServer 2003 and all u
    ... Thank you for posting in SBS newsgroup. ... If no other virtual folders exist in IIS, the best way should be restoring ... In IIS, select Web Sites, and note the "Identifier" for Default Web Site ... | folder insted of the /projectserver folder work anymore. ...
    (microsoft.public.windows.server.sbs)
  • Re: Help with Interactions between IISadmin mmc and FP2003
    ... and all the main things with IIS, FP2003, ... Site Server Architecture currently in use, ... depending on whether one uses IIS Admin or FP. ... plain vanilla folder, vanilla with little globe in lower ...
    (microsoft.public.frontpage.client)
  • Re: companyweb and remote web workplace
    ... Regarding to the Remote folder, there is no missing files or folders under ... Please enable IIS logging and help to collect the logs for analyze: ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Exclude from Project not available for VS2005 web projects
    ... behavior when open web project in VS.NET from IIS, ... we no longer need project file, we just make use of a well-known folder ... sub applications in the sub folder, it will display all the sub projects. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cant access IIS admin window
    ... >>I can't access the IIS properties dialog (or, for that matter, the ... >>properties dialog for any single folder), and I also can't uninstall it (the ... #1] and none of my virtual directories nor any IIS' default items ... says "Key not valid for use in specified state". ...
    (microsoft.public.inetserver.iis)