Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Application Roots and Accessing Libraries

Application Roots and Accessing Libraries

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasewindows-adminsecurity
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deanofharvard
    wrote on last edited by
    #1

    Hi, all... I've got a site that displays testimonials. In a Testimonials folder I've got Form Authentication using the web.config file, but in order to get it to work, I had to configure the Testimonial folder as an application in IIS. I'm displaying the Testimonials page in the root of the site, and that works fine root -testimonials.aspx -bin --DataAccess.dll -data --Testimonials.mdb -Testimonials --index.aspx --login.aspx --ModifyInfo.aspx --bin ---DataAccess.dll In order for the pages in the Testimonials folder to use the DataAccess library, I had to create another bin directory, and copy the .dll into it. I'm new to asp.net, and I'm not even sure that this is the best way to do what I want. Can anyone help?

    M 1 Reply Last reply
    0
    • D deanofharvard

      Hi, all... I've got a site that displays testimonials. In a Testimonials folder I've got Form Authentication using the web.config file, but in order to get it to work, I had to configure the Testimonial folder as an application in IIS. I'm displaying the Testimonials page in the root of the site, and that works fine root -testimonials.aspx -bin --DataAccess.dll -data --Testimonials.mdb -Testimonials --index.aspx --login.aspx --ModifyInfo.aspx --bin ---DataAccess.dll In order for the pages in the Testimonials folder to use the DataAccess library, I had to create another bin directory, and copy the .dll into it. I'm new to asp.net, and I'm not even sure that this is the best way to do what I want. Can anyone help?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, Because you configure the Testimonial folder as an application, you therefore have to create another bin folder to contain the application assembly. It's probably redundant! You basically want to keep the DataAccess.dll in one place, so there are two alternative ways here to work around without creating a virtual folder for Testimonials. + Place the authorization settings for all users in the Web.config file at root. Use the location tag in the Web.config file to deny access to the Testimonial folder for unauthorised users. + Place the authorization settings for all users in the Web.config file at root. Use another Web.config file located in the Testimonial folder to deny access to the Testimonial folder for unauthorised users. The second Web.config file basically contains the authorization settings only, that's enough.

      D 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, Because you configure the Testimonial folder as an application, you therefore have to create another bin folder to contain the application assembly. It's probably redundant! You basically want to keep the DataAccess.dll in one place, so there are two alternative ways here to work around without creating a virtual folder for Testimonials. + Place the authorization settings for all users in the Web.config file at root. Use the location tag in the Web.config file to deny access to the Testimonial folder for unauthorised users. + Place the authorization settings for all users in the Web.config file at root. Use another Web.config file located in the Testimonial folder to deny access to the Testimonial folder for unauthorised users. The second Web.config file basically contains the authorization settings only, that's enough.

        D Offline
        D Offline
        deanofharvard
        wrote on last edited by
        #3

        Thank you for the info! I've got the authentication working now, and don't have to separate the two directories into different applications!!! You've been a GREAT help!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups