Hi everyone,

I'm having the following problem......


I have 2 servers.
Server1 - Just a web server running IIS
Server2 - File repository server, containing files, .doc, .pdf etc.


I'm building an asp.net page that runs on Server1
It's an imaging program, that creates records in a sql database, and uploads
files to Server2 based on the inserts.

When a users tries to create a record......
The record is inserted into SQL
But their is a problem when copying the file.

It works okay on my localhost, so I'm thinking it's a security issue with Server1 trying to copy the file from my PC to Server2

I get a access denied error.....


ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.


I've racked my brains, but I can't seem to figure out what's wrong.
Note: Users do have access to create, copy files on Server2, because
of an AD security group. This is not a problem.

Any help will be greatly appreciated.

lol, what a crazy day