Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

upload asking for log in

Status
Not open for further replies.

zerkat

Programmer
Jul 12, 2007
103
US
I have an upload control in a subdirectory under a website that is anonymous. The subdirectory has integrated auth enabled and in my web.config I configured identity impersonate = true and allowed authenticated users on this subdirectory. Need this to have authentication on it so can communicate securely with database. The file under here can be accessed by anyone on our network.

Within this subdirectory there is an admin folder. This admin folder should only be accessible by a domain group I set up locally on the server. I created a section in the web.config for this admin directory to allow roles = "domainGroupName" and deny all other users. The admin folder contains an upload feature and when I try to upload a file it asks me to log in then I receive access denied to the documents directory, which is located under the same subdirectory as the admin folder. I have set IUSR, Network Service, Asp.Net user, and domainGroup all have write access to the folder. Also enabled write access in IIS to no avail.

This does work when I create this part of the application as its own site under IIS but not as part of this anonymous site which is where the customer would like it. Is it possible in .net to upload files under a subdiretory that requires integrated under an anonymous site?

I have tried creating the subdirectory as an application but then .net wants me to recreate the masterpages, css, etc in the subdirectory since it then sees it as a separate app. At that point I might as well keep it a separate site and hard code the links.

Any one out there have any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top