Application Roots and Accessing Libraries
-
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?
-
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?
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.
-
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.
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!