Web.config issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bonzol

    #1

    Web.config issue

    ..net 2005, 2.0 Web application

    They there, I have a program that works fine when I run it in the IDE,
    however when I go to deploy it in the www root,, to make it a website I
    get this error message


    visual basic
    code:--------------------------------------------------------------------------------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 ='MachineToAppl ication' beyond application level. This
    error can be caused by a virtual directory not being configured as an
    application in IIS.

    Source Error:



    Line 24: ASP.NET to identify an incoming user.
    Line 25: -->
    Line 26: <authenticati on mode="Forms" >
    Line 27: <forms name ="bgr" loginUrl="Login .aspx"/>
    Line 28: </authentication>
    --------------------------------------------------------------------------------

    This is for redirecting anyone who is not secure to the login page,,,
    this works fine when I run it in VS,, but not when I put it in WWW
    root,, anyone got any sugggestions?

  • Andrew Morton

    #2
    Re: Web.config issue

    Bonzol wrote:
    .net 2005, 2.0 Web application
    >
    They there, I have a program that works fine when I run it in the IDE,
    however when I go to deploy it in the www root,, to make it a website
    I get this error message
    <snip>
    Parser Error Message: It is an error to use a section registered as
    allowDefinition ='MachineToAppl ication' beyond application level. This
    error can be caused by a virtual directory not being configured as an
    application in IIS.
    In IIS Manager, right-click on the web site (probably Default Web Site), go
    to the Home Directory tab and click on the button to the right of the
    Application name box. Make sure the "Execute permissions" is set to "Scripts
    only".

    Or it's something pretty much like that.

    Andrew


    Comment

    • Bonzol

      #3
      Re: Web.config issue

      Hey thanx for the reply,, the button next to the application name box
      is remove,, I removed the application name and it just didnt work at
      all. I also tried creating a new name and I got the same error again
      Andrew Morton wrote:
      Bonzol wrote:
      .net 2005, 2.0 Web application

      They there, I have a program that works fine when I run it in the IDE,
      however when I go to deploy it in the www root,, to make it a website
      I get this error message
      <snip>
      Parser Error Message: It is an error to use a section registered as
      allowDefinition ='MachineToAppl ication' beyond application level. This
      error can be caused by a virtual directory not being configured as an
      application in IIS.
      >
      In IIS Manager, right-click on the web site (probably Default Web Site), go
      to the Home Directory tab and click on the button to the right of the
      Application name box. Make sure the "Execute permissions" is set to "Scripts
      only".
      >
      Or it's something pretty much like that.
      >
      Andrew

      Comment

      • Bonzol

        #4
        Re: Web.config issue

        actually now I fixed it.

        cheers

        Comment

        • Andrew Morton

          #5
          Re: Web.config issue

          Bonzol wrote:
          actually now I fixed it.
          Glad to hear it.

          For the benefit of anyone who may happen across this thread in the future,
          what was the step that made it work?

          Andrew


          Comment

          Working...