Cassini - "This error can be caused by a virtual directory not being configured as an application in IIS."

Last post 09-18-2008 9:22 AM by Sachin_03. 3 replies.

Sort Posts:

  • Cassini - "This error can be caused by a virtual directory not being configured as an application in IIS."

    05-12-2008, 9:08 AM

     Hello,.

     Im using a Wrox textbook to learn ASP.net. I use their example website to view source-code in VS Express 2005 and all has been fine.

     Ive never submitted a website to IIS, though I have installed it.

     I recently installed VS 2008 Profesional Edition. 

     Loading the website in VS 2008's Cassini throws the same error.

    "Error 1 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. C:\Users\Michael Kearney\Documents\IT\ASP.net\Wrox\WroxUnited\WroxUnited\web.config 42 "

    <authentication mode="Forms">

    <forms loginUrl="Default.aspx"></forms>

    </authentication> 

    Thanks

    Michael Kearney

  • Re: Cassini - "This error can be caused by a virtual directory not being configured as an application in IIS."

    05-12-2008, 9:22 AM

    Try making the virtual directory an application in IIS (Open IIS, navigate to the virtual directory, right click, select properties, home directory tab and click Create in the application settings section). 

  • Re: Cassini - "This error can be caused by a virtual directory not being configured as an application in IIS."

    05-12-2008, 9:42 AM

    Thanks for your time - it didnt work.

     Why would this site require the creation of a Virtual Directory if its never been integrated with IIS before? Im trying to use Cassini.

     

    Cheers

    Mike

  • Re: Cassini - "This error can be caused by a virtual directory not being configured as an application in IIS."

    09-18-2008, 9:22 AM
    • Loading...
    • Sachin_03
    • Joined on 09-18-2008, 9:14 AM
    • Mysore
    • Posts 17

    We can resolve the error by  -

    1. Look for a duplicate web.config file in the project. If present delete it. 

    2. If not, cut the web.config file and paste it in the root folder of the app (under project folder)

     

    Sachin

     

Page 1 of 1 (4 items)
Microsoft Communities
Page view counter