Error in Webconfig line 54 <roleManager enabled="true"/>

Last post 06-09-2009 11:09 PM by redwoodbev. 3 replies.

Sort Posts:

  • Error in Webconfig line 54 <roleManager enabled="true"/>

    06-08-2009, 2:26 PM
    • Member
      15 point Member
    • redwoodbev
    • Member since 09-24-2008, 1:37 PM
    • Posts 89

    Hi.  I'm trying to get my club website onto GoDaddy, following instructions in this forum.  I'm getting the following error in VWD ' It is an error to use a section registered as allowDefinitions='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

    The error points to rolManager enabled="true" in webconfig.  Can I just delete this line?

    Really appreciate any helps/advice/hints.  thanks, Bev

  • Re: Error in Webconfig line 54 <roleManager enabled="true"/>

    06-09-2009, 2:47 AM
    Answer
    • Star
      7,932 point Star
    • amit.jain
    • Member since 10-06-2008, 5:09 AM
    • Delhi India
    • Posts 1,264

     This error is caused for two reasons

    1. Chekc whether u r having two web.config files in ur application (1 in backup folder or somewhere else) ? , if yes than remove one

    2. This error also occurs if u have not opened the website from the folder containing the aspx files and all files but from one folder up like this

    folder1 > ApplicationFolder > All files

    If u browse and open folder1, u'll get allowDefinition='MachineToApplication' error

    Open Application and u'll prolly not get this error

    hope this helps

    Don't say thanks rather mark my reply as "Answer" if it helps you ,Doing so u'll get points too
    amiT jaiN

    ASP.NET C#.NET Articles
  • Re: Error in Webconfig line 54 <roleManager enabled="true"/>

    06-09-2009, 2:19 PM
    • Member
      20 point Member
    • ujjawal
    • Member since 06-04-2008, 10:03 PM
    • London, UK
    • Posts 88

    HI there,

    My error is due to the following I believe...

     

    2. This error also occurs if u have not opened the website from the folder containing the aspx files and all files but from one folder up like this

    folder1 > ApplicationFolder > All files

    If u browse and open folder1, u'll get allowDefinition='MachineToApplication' error

    Open Application and u'll prolly not get this error

     

    How do open application?

    I have one folder where there is one web.config file, inside the same folder i recently developed one new system and the aspx files are on this folder... there is a web.config folder in this as well.. the issue is not with two webconfig folder as these two web.config files are on two different folders... the problem is with the closed application(the one mentioned above in Italic.)

     Could you please explain a bit more in sorting out the issue ...

     Many thanks. 

     

    ps:  I have used VB

    _________________________________________________
    I Dont Luv u the Way u do
  • Re: Error in Webconfig line 54 <roleManager enabled="true"/>

    06-09-2009, 11:09 PM
    • Member
      15 point Member
    • redwoodbev
    • Member since 09-24-2008, 1:37 PM
    • Posts 89

    THank you so much.  I did, in fact, have an extra webconfig hidden in a folder in my application.  As soon as I deleted it, the problem was gone.  Thanks again.

Page 1 of 1 (4 items)