20.10.2010 – Anton Naumenko

Unhandled exception was thrown by the sandboxed code wrapper's Execute method

Today I faced the problem that I could not get over error appeared during deployment of sandboxed project to standalone installation of SharePoint 2010. Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.

The stack trace information does not give a clue about root cause of this error.

What I tried with NO success:

  • Re-creating site collection
  • Re-creating web application
  • Re-installing SharePoint

Finally the only thing helped to get over it was to remove my project DLLs from GAC. You can do this by going to C:\windows\assembly\gac_msil.

BTW, did you know that your SharePoint project DLL go to this location?

After that the project was deployed without any errors.

Inno-W mark
Anton Naumenko
Anton Naumenko

Posts by Anton