1

I need to create a unit testing module using Console application that communicates with SharePoint. I add the refernces and I write the code, but once I hit F5, the program breaks and I get error messages that SPSite does not exist in the current context.

I am doing this in Cloudshare. Any idea why this is happening?

  • Are you running the console application on the server that SharePoint is running? – John Chapman Dec 20 '13 at 20:36
  • I am accessing the SharePoint server from CloudShare. Everything is on CloudShare – Firuzeh Faye Fouladi Dec 20 '13 at 21:50
  • Which of the SharePoint machine templates are you useing? Could be a template issue? Is the web application and site collection exists? – user21633 Dec 28 '13 at 1:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.