Virtual directory pointing to UNC share

I have an application that uploads documents to the server via the standard

When submitting my application to the production server, I found out that they have load balanced the server. My solution was to put the download directory on a network share and then create a virtual directory pointing to the share.

I have set permissions on the share and the file itself, but when I try to upload a document, I get "access denied" all the time.

Where can I skip permissions? Is it possible that IUSR should have access to this promotion?

Thank.

+1


source to share


3 answers


FYI,

The answer to this solution for me was to set up a temporary impersonation with a user account that has access to the share, folder and virtual directory.



Here's a link to the code that worked for me:

http://support.microsoft.com/kb/306158#4

+2


source


I hope your site is using anonymous access. Otherwise, you will have a painful experience.



If so (anonymous access), then: IUSR is a local user on production servers, not a domain user. Thus, he has no access to the resource. You will have to change this for the domain user (in the site config, not in the application pool). And make sure the application pool is running on Network Service (this is the default) and it should work.

+1


source


Most likely no matter what your ASP.Net process is running as it doesn't have access to that resource.

Thus, you need to configure the IIS6 application pool to run as a domain user and have the domain user to have permissions on this file.

Don't forget aspnet_regiis -ga {domainuser} so that the domain user can run asp.net applications.

0


source







All Articles