Results 1 to 3 of 3

Thread: IIS/ ASP Error Help

  1. #1

    Thread Starter
    Member otherones's Avatar
    Join Date
    Jun 2002
    Location
    Milk Factory
    Posts
    59

    IIS/ ASP Error Help

    I am getting an error that I don't know what it means...

    This is from my browser when I try to go to logon.aspx (I am trying to build a simple authentication proggy)

    I am new to IIS, please help


    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    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 23: "Forms", "Passport" and "None"
    Line 24: -->
    Line 25: <authentication mode="Forms">
    Line 26: <forms name=".ASPXCOOKIEDEMO" loginUrl="logon.aspx" protection="all" timeout="30" path="/">
    Line 27: </forms>


    Source File: c:\inetpub\wwwroot\auth\web.config Line: 25
    CSC

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Have you created a Virtual Directory for your app?

    If you dont know what I mean, what you need to do is open IIS. Righht click on Default Web Site, choose New, then Virtual Directory. Follow the steps from there. It will ask you what directory to point to. then when you run the site, access it using your servername/virtualdirectoyname

    for example

    http://localhost/myvd

    Perhaps you just stuck you .aspx file into just the inetpub/wwwroot directory, in which case I dont asp .net will work like that like old asp used to.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member otherones's Avatar
    Join Date
    Jun 2002
    Location
    Milk Factory
    Posts
    59

    ...

    I fixed that, but now i'm getting another newbie error...

    I can't even open my web service!

    VS tells me



    C:\DemoFormsAuth (or whatever the dir I put it in) does not correspond to localhost/demoformsauth the two must map to the same server location...

    What am i doing wrong?
    CSC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width