Error: allowDefinition='MachineToApplication'

Hi,

I get the following error when I publish & run the website on a live server.

Parser Error Message: 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.

Source Error:

Line 68:      by Microsoft that offers a single logon and core profile services for member sites.
Line 69:   -->
Line 70:   <authentication mode="Windows" /> 
Line 71: 
Line 72: 	<!-- AUTHORIZATION 

 

I cant figure out what am I doing wrong

Thanks in advance.....



Answer this question

Error: allowDefinition='MachineToApplication'

  • Behrooz PB

    Hello,

    I had this same problem using ASP.Net Development Server.
    To solve it, I had to check-out from my source control the Web.Config of my site.
    Then I opened the ASP.Net Development Server configuration website, closed it and that solved my problem.
    It's sounds strange but it worked for me. Hope it helps.

    PS: VS2005 seems to have so many problems with Source Safe!

  • MMMalik

    Hi Bento,

    Looks like you have the answer to my problem. Unfortunately, I can't understand what you meant by 1) check-out from my source control the Web.Config of my site is it disabling the web.config file 2) what you meant by opening ASP.net Development Server configuration website and closing it. How do you do it (what options and actions )Sorry if I sound a bit lost as I am a newcomer to this. Any guidance in more detail would be appreciated.

    Thanks


  • Michael Vanhoutte

    Bento, thanks for your answer.

    I have the same problem, but your suggestion does not really solve my problem.

    The process you suggested will generate a new web.config file.

    I like my old one. In fact I need it.

    I am trying to implement my own provider since my login information is store on a database and not on my page.

    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

    <system.web>

    <membership defaultProvider="MyProvider">

    <providers>

    <remove name="AspNetSqlProvider" />

    <add name="MyProvider"

    type="MyProvider"

    QuestionRequired ="true"

    ConnectionString="Server=…"/>

    </providers>

    </membership>

    </system.web>

    </configuration>

    are there any more suggestion


  • sidwang

    Hi,

    You will have to setup your Live servers' IIS configuration.

    I am not sure if you did it or not.....if you haven't, by default your web site need to be registered as an application under IIS.

    For more information visit

    http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_vb_not_configured_as_app.htm

    I hope this might help



  • Vladimir Bougay

    hello i have the same problem can you know now the answer i will thank you very much

    david

    davids@maale.org.il


  • digitalmercenary

    We had the same issue... in our case, it seems that it was because our application was at the root of the web site, not in a virtual directory.


  • Error: allowDefinition='MachineToApplication'