13.07.2015 Views

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 10 ■ SHAREPOINT WEB PARTS 3817. Extract the public key for the assembly from a web part you have developed by us<strong>in</strong>gthe Security Utility tool with the follow<strong>in</strong>g syntax:secutil.exe -hex -s [assembly.dll]8. Create a new section to apply the policy to the web part. This must precede the exist<strong>in</strong>g section def<strong>in</strong>ed for ASP.NET, because once apolicy is assigned, process<strong>in</strong>g stops. The follow<strong>in</strong>g code shows an example:9. Save and close the file.10. Open the web.config file <strong>in</strong> Visual Studio.11. Edit the section to add a reference to the new policy as shown here:12. In the section, modify the element to use the new policy asshown here:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!