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.
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
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.)