Posted on: 5/9/2014 6:28:01 PM | Views : 507

Greetings,
I am trying to use System.Net.WebRequest from my web application to copy files to a Sharepoint library.  I have the AppPool set up to use a domain account that has owner permissions in the Sharepoint list.  Everything works fine if I log on to the Web server with this account, open the Sharepoint library in the browser, and supply the windows credentials.  If I stay logged in to the server, I can run my web app and it copies.  If I log off of the server, I get this message...
Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
Here is the function I am calling where remoteFile value is @"\\sp.mysite.com\davwwwroot\sites\subsite\library\"
public void Uplo ...

Go to the complete details ...