I have a window application which uses SP classes to create a site. I works fine on a system having Windows Server 2003 R2 with sharepoint installed.
But it doesn’t work on a system having XP installed and SharePoint not installed.
The fact is that both of these systems are on a intranet. So I assumed that the NON-SP system would be able to run the code and create a site on the system having SP installed if all the required parameters (like serverLocation, domain, username, password) are provided.
I did copied the DLLs to these NON-SP system and referenced them to build the project:
- Microsoft.SharePoint.dll
- microsoft.sharepoint.portal.dll
- Microsoft.SharePoint.Publishing.dll
But this too didn’t worked.
- What am I missing?
- Is my assumption wrong?
That’s wierd assuming that it would work. Microsoft.SharePoint.dll internally refers to dozen libraries and depends on files installed with sharepoint and database, created when installing SharePoint.
Edit: Ohh, i understood – you wanted to access server from other machine with object model. As mentioned, you can’t. But you can use SharePoint web services to interact with sharepoint.
SharePoint 2010 also intredouces client object model that will allow you limited interaction with sharepoint from clientmachine from object model.