Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working with Sharepoint Foundation 2010 on both my development and production machines. My production site is hosted. I am trying to deploy a sandboxed event receiver to the production site which is hosted. I have VS 2010, but only on the dev machine. The event receiver works on the dev machine, but not on the hosted server. I have verified that the feature is activated. The only diffence that I made in the solution was to change the URL to point to the online site. After deploying the solution to my hard drive, I uploaded it to the online site and activated it. I have checked spelling. There are no error messages, it just doesn't work. Is it possible to debug a solution when the site is hosted if they don't have Visual Studio. How can I see what is causing the problem? Thank you.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Your best bet is to check the SharePoint ULS logs for anything seriously bad that may have happened when the event receiver tried to deploy and/or run. They are usually located at C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\LOGS. Search for your assembly and feature name.

You could also check that the assembly actually deployed to the GAC on the server.

If neither of these help, implement some rudimentary logging within the confines of the sandbox. For example, create a custom list for logging and make the first line in your event receiver add an item to it.

(You may also find somewhat relevant Developing, Deploying, and Monitoring Sandboxed Solutions in SharePoint 2010 by Paul Stubbs.)

share|improve this answer
    
Thanks Alex. Something I overlooked is that there is a site URL in the properties box when you click on the project. I had changed the URL that was in the event receiver code, but not the site URL in the properties box. Am I able to access the log files on a hosted site? –  Anonymous Jul 5 '10 at 16:32
    
Only if your hosting provider allows you to. Check their FAQ/support pages or ask them directly. –  Alex Angas Jul 5 '10 at 22:31
    
Thank you Alex. –  Anonymous Jul 8 '10 at 16:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.