Precompilation Error allowDefinition='MachineToApplication'

Discussion in 'ASP .Net' started by =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=, Mar 30, 2006.

  1. Hi,

    I have an application ("appls") on my website. This application is a
    subfolder of the website root. This subfolder is configured as an application
    in the IIS Manager

    When I want precompile my application with the command line
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v /appls -p
    "E:\Sites WWW\devlappl.intracger", I get this message :

    ---------------------------------------------------
    E:\Sites WWW\devlappl.intracger\appls\web.config(81): error ASPCONFIG: 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.
    ---------------------------------------------------
    The line 81 in web.config is <authentication mode="Windows"/>

    Help me please ...
     
    =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=, Mar 30, 2006
    #1
    1. Advertising

  2. Hi,

    I resolve my problem. I must use the following command line
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v
    LM/W3SVC/429440314/ROOT/appls

    Where 429440314 is the Id of my website.

    hope the useful for somebody else
     
    =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=, Mar 31, 2006
    #2
    1. Advertising

  3. =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=

    Guest

    Hi Patrick

    Where do you get the path "LM/W3SVC/429440314/ROOT/appls"?
    Is this on your local machine, if so can you please provide the full
    path c:\windows.....\LM/W3SVC/429440314/ROOT/appls
     
    , Apr 7, 2006
    #3
  4. LM/W3SVC/429440314/ROOT/appls it's the ADSI Path, where :
    - LM/W3SVC/ is standart
    - 429440314 is the id of website
    - root is standart that to the website's root
    - appl is the name of folder (or virtual folder)

    The Id of website can be found in the IIS Manager in the list of websites
     
    =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=, Apr 7, 2006
    #4
  5. =?Utf-8?B?UGF0cmljayBQYXF1aW4=?=

    Joined:
    Oct 17, 2006
    Messages:
    1
    Iis



    I am also looking for the same path because I am getting the same problem.

    ASP Net - Precompilation Error allow definition='machinetoapplication'

    I don't know how to find the path....
    Any help Thanks
    H
     
    , Oct 17, 2006
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex D.
    Replies:
    1
    Views:
    9,611
    Alex D.
    May 20, 2005
  2. Replies:
    23
    Views:
    1,138
    Juan T. Llibre
    Nov 13, 2006
  3. Replies:
    3
    Views:
    1,118
  4. jc
    Replies:
    1
    Views:
    824
    Michael Nemtsev [MVP]
    Oct 28, 2008
  5. RayLopez99
    Replies:
    1
    Views:
    4,435
    RayLopez99
    Jan 30, 2009
Loading...

Share This Page