We have been working on a .NET Windows Application for doing Admin tasks and some validation in SharePoint 2010 , since the tool needs to have the functionality to do a site backup and restore I have used Sharepoint Server Object model.
The tool works perfectly fine when the Site collection and the Tool resides on the same server , But
SPSite() is throwing exception when I give a remote URL which is within the same network. This URL can be browsed from the Browser.
The Web application at " SiteURL" could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
I did see a lot of queries on this issue in many blogs/communities and have implemented all the solutions mentioned . ie
target platform os x64/All CPU
Framework changed to 3.5
given the following permission to the user running the tool
1.The user is a server farm administrator.
2.The user has Read and Write permissions on the content database(especially the application where site is residing) , config database , admin db.
3.The user is a site collection administrator.
4.The user has permissions to access the SharePoint 2010 site through which the code iterates.
Still I am get the same Error . Please let me know if am missing something else and whether some config changes needs to be made at IIS level or something?
Neither ULS logs not IIS is logging any error.
SPsite() support connecting to remote sites within same network?