Author Archives: Stu

Update WSP File

SharePoint Short #8 It’s easy to extract and make changes to a WSP file – use any compression program (WinZip, WinRAR, etc.) to extract it to your machine and you’re good to go. Once you’ve made your changes to the … Continue reading

Posted in SharePoint Shorts | Tagged | Leave a comment

Service Application Proxy Classes

SharePoint Short #7 Looking for a list of the currently available service application proxy classes? Run the following in a console app and et voilĂ : var proxies = from serviceProxies in SPFarm.Local.ServiceProxies from SPServiceApplicationProxy serviceProxy in serviceProxies.ApplicationProxies select serviceProxies;   … Continue reading

Posted in SharePoint Shorts | Tagged | Leave a comment

Get CAS IPermission for exception

If you’re working on a SharePoint solution that requires a custom code access security (CAS) policy, the following is an easy way of determining the permission(s) you need to add to the config. For this to work, you need to … Continue reading

Posted in Security, SharePoint | Tagged , | Leave a comment

Dynamically load JavaScript file

Sometimes you don’t always want a JavaScript file to load. If, for instance, a control that utilises it is loaded by a page that already references the same JavaScript file, you wouldn’t want to load the script file again. Note: … Continue reading

Posted in JavaScript | Tagged , | Leave a comment