index > Visual Studio Tools for Office > Deploy a VSTO Template (with Action Pane) using Website

Deploy a VSTO Template (with Action Pane) using Website

I've created a Word template that I use (server-side) to create new word documents which are then served to the end-user over http. My template dll has code for an action pane and custom smart tags.

I can create the docs on the server, but when trying to download and open them on the client side I get the error "System.Security.SecurityException: The customization does not have the required permissions to execute."

After wasting almost the entire day trying to understand the deplyment models and the security requirements I'm just about to lose it! Why is this so difficult???

Can anyone tell me how I'm supposed to deploy a Word solution on a website? Any help (apart from pointing to the msdn documentation) would be GREATLY appreciated.

Thanks,
Shawn
SFrench

Hi Shawn

The DLL needs to be trusted from wherever it is executed i.e. your PC.  This is by no means a straight forward subject or one that I have gotten to grips with yet however to at least prove the point you need to create a Runtime Security Policy entry for the code on the machine you are trying to open the document on.

1. Open the Microsoft .NET Framework x.x Configuration tool from the Administrative Tools menu.
2. Under My Computer open the Runtime Security Policy node and navigate down to the All_Code code group beneath User, Code Groups.
3. Add a new Child Code Group and give a pertinant name.
4. Select the URL condition type and enter the URL of the directory holding the VSTO DLL in the URL text box e.g. http://myserver/myvstoapp/* (note the use of the * which means trust anything in this location including anything in sub-folders - alternatively to trust only the specific DLL replace the * with the name of the DLL).
5. Assign the Full Trust permission set and you're done!

Hope this helps to get you started however I would suggest some serious time spent understanding security and code access policy for production conditions, it's an area that I certainly intend to spend a lot of time trying to understand going forwards...

Matthew_TC

Could not load file or assembly 'ReportExcel, Version=1.0.0.0, Culture=neutral' or one of its dependencies.

AsOne
reply 3

You can use google to search for other answers

 

More Articles

• Unable to access "Page Brak View"
• Adding attachment to a mail
• Stablish cursor position in Word
• Working with VSTO, sending data to Excel from Visual C++
• Outlook Addin doesn't work
• Connecting to a Remoting Server from an addin
• How to use the Events of Outlook.Application in COM components?
• VBA for Powerpoint
• Installed OutLook 2003 Add-in not available to "All Users&qu...
• Restriction of movement/copying/cutting/pasting in Word
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Code execution problem?
• Excel Automation
• "Client" side access to cached
• Access Outlook Address Book using C# or VB
• programmatically open Properties window?
• Do I have VSTO?
• Help with smart tags
• Created a project, published it... but e
• XLA for VSTO
• Excel Add-In showing up twice
• Please, once for all: what are ALL of th
• SerializeDataInstance preventing VSTO do
• Publishing Problem.....
• Action Pane is not working in Word 2007
• What is good way for handling about .pst

Hot Articles

• Outllook Addin Deployement Issue
• Deploying a Word Solution with an Action
• A Problem... What should I buy?
• what is VB_ProcData.VB_Invoke_Func = &qu
• Can't install Visio 2005 after installin
• Does Microsoft Office InfoPath 2003 Tool
• CommandBarButton.Picture generates COMEx
• Error creating a new Excel Application O
• Reading paragraphs within word document
• New line without bullet
• How to download "Excel 9.0 Object L
• outlook addins don't seem to work anymore
• Saving word doc silently
• MSFlexGrid OCX license enforcement
• Outlook Addin Deployment VSTO

Recommend Articles

• PPT SlidShow by Form
• Custom font colors
• Getting the Attachments from the Outlook
• WinWord instance not released from withi
• Problems referencing an Excel project cl
• VSTO Outlook - run-time error occurred l
• Null values displayed as 0 in OWC Pivot
• Document Protection disables too much!?
• VSTO app takes a long time to load when
• API request: WM_INITMENU event
• I need to view the source of a .pst file
• VSTO 2005 Outlook Add-In reply event not
• Highlighting code in an email
• Help with deployment
• Visio and ActionsPane