TedgCl
asked on
Sharepoint and SPWeb
I write a lot of sharepoint code to do administration functions. Almost all of this is done in Visual Studio and then I compile the app. The apps then run locally on one of the web front ends.
Recently we are engaged with a vendor who is providing hosted sharepoint and I no longer have access to a web front end to run my apps. I normally use a call like new spsite("http://mysite/") to create an spsite object. However, I don't think this works unless the program is running on one of the web front ends. Is there a way to still use my existing code but have it interact with a hosted farm? Is there a way to create an spsite object when you don't have local access to a web front end?
Thanks!
Recently we are engaged with a vendor who is providing hosted sharepoint and I no longer have access to a web front end to run my apps. I normally use a call like new spsite("http://mysite/") to create an spsite object. However, I don't think this works unless the program is running on one of the web front ends. Is there a way to still use my existing code but have it interact with a hosted farm? Is there a way to create an spsite object when you don't have local access to a web front end?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Surely this would still require Sp to be installed on the development "client"?
But as I said I could be missing something, it's late here :)
But as I said I could be missing something, it's late here :)
Hi QPR - A SharePoint install isn't needed on the client to use Client Object Model or web services. You do reference Microsoft.SharePoint.Clien t.dll
and Microsoft.SharePoint.Clien t.Runtime. dll in your dev environment however.
and Microsoft.SharePoint.Clien
Apologies, I assumed the poster was talking about new/future development for the new hosted environment rather than consuming existing functionality from the client
Your code will look like something similar to CAML query builder available for free. Nowadays(Sharepoint 2010) you can write code which you can run locally on environment where sharepoint is installed(using client object model) or use sharepoint webservices to run it from a non sharepoint environment. You just need to have the credentials of account which has administrative priviledges.
Enjoy!!
Enjoy!!
There is no way to create/use code on a box that does not have SP running locally (without some tweaks and workarounds) as the sharepoint DLLs need to be referenced.
It seems your only option is to install SP locally, write.debug/test your code locally and then upload your features.solutions/DLLs to the hosted environment once done.
You would need to change URLs to web services etc once completed and ready to "ship"