I am trying to localize a sandboxed visual webpart (part of the SP2010 development powertools released by MS), but as soon as I add


to for instance a label's Text property, the generated file (webpartname.ascx.g.cs) with the ascx's contents as actual C# code is cleared, as in completely empty!

The resources are of course deployed using a module with the deployment target set to AppGlobalResource.

Any ideas?

1 Answer 1


You can't use AppGlobalResource or <%$Resources:RESXFILE,RESOURCEKEY%> in Sandboxed solutions.

See Localization in SharePoint 2010 Sandbox Solutions for how to use resources in Sandboxed solutions.

  • Doh, appglobalresources get deployed to the filesystem to of course :-S. Thanks :-D
    – Colin
    Commented Apr 18, 2012 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.