I'm trying to get an SPSite for a remote SharePoint URL:

SPSite site = new SPSite("http://remoteserver");

...but I get an exception. The is no problem when i try to connect to sharepoint on the local machine.

I have the required username and password of the remote server. Is there a way to get the SPSite with the username and password?

Edit
Report