#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    14
    Rep Power
    0

    virtual directory not being configured as an application in IIS?


    Hi,
    I have an .NET WebApplication running on my machine smoothly. Now I did an XCOPY to have it run on another location on my machine. I have created a new Virtual directory also for this purpose.

    But I get the following error on running the application,

    Parser Error: 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 7: <compilation defaultLanguage="c#" debug="true" />
    Line 8: <customErrors mode="RemoteOnly" defaultRedirect="error.aspx" />
    Line 9: <authentication mode="Forms">--HIGHLIGHTED
    Line 10: <forms loginUrl="~/Login.aspx" />
    Line 11: </authentication>

    in Web.config.

    If I tried taking the property of VirtualDirectory and clicking the 'Create' Application. But no change is found.

    If I delete the Line 9, the same error jumps onto
    <SessionState..> tag in Web.config.


    Any hints?
    Thanks in advance.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,453
    Rep Power
    4539
    Try the NET forum maybe? Is the same NET framework installed on both computers? Are the two computers identical in all other ways? Are the permissions set properly?
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    14
    Rep Power
    0

    virtual directory not being configured as an application in IIS


    They application that I mentioned running smoothly is in D: drive and the copy is in C: drive , in the same machine.. Any clues from that?

    Thanks.
  6. #4
  7. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,453
    Rep Power
    4539
    Maybe the drive letter is embedded in your coding somewhere?
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    14
    Rep Power
    0

    virtual directory not being configured as an application in IIS


    Originally Posted by Doug G
    Maybe the drive letter is embedded in your coding somewhere?

    Thanks Doug,

    I could get the issue solved by having the folder which had bin directory set as application thru Properties of the virtual directory.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2005
    Posts
    1
    Rep Power
    0

    Configuration of virtual dir as application under IIS


    Originally Posted by jap
    Thanks Doug,

    I could get the issue solved by having the folder which had bin directory set as application thru Properties of the virtual directory.
    Hi jap,
    I am having similar problem with my .NET web app. Could you please elaborate and write down the steps that you took to register the virtual directory as application in IIS.

    I have three items in the 'administrative tools', namely:
    Active Directory Domain and Trust
    Active Directory Sites and Services
    Active Directory Users and Computers

    Out of these three, which one should I use to register it as application under IIS.

    Your help is greatly appreciated, thanks.

IMN logo majestic logo threadwatch logo seochat tools logo