Results 1 to 3 of 3

Thread: ASP.NET error

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59

    Question ASP.NET error

    Hi all,
    I have created a three page website in FrontPage ran it and it works fine. Then I copied all the HTML of one form and pasted it in one of the web forms and renamed it. I then added the <form id=”FormName” method=”post” runat=”server” > and <form/> tags. I repeated this for all three pages. With me so far, ok good

    In IIS I created a virtual directory with a path to the folder that contains my Default.aspx for my three page web site (which is in C:\Inetpub\wwwroot\Alias\folderName).

    Back in .NET I compile with no errors. Then I click on View in Browser and I get the follow error message for Web Config:

    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 19: "Forms", "Passport" and "None"
    Line 20:

    -->Line 21: <authentication mode="Windows" />
    Line 22: <!-- AUTHORIZATION
    Line 23: This section sets the authorization policies of the application. You can allow or deny access


    I have tried "Forms" and "None" in line 21 above but with the same result.

    Any ideas where I'm going wrong?

    Thanks for your time

  2. #2
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Try configuring your virtual path to be an application (a globe inside a package box icon) thru IIS Manager
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    59
    William, thanks for your reply. Yes I do have the correct icon and application name.

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