Dear Experts,
I am creating a Word Document project using Visual Studio 2005...However, when I tried to "Run" for the test...there was a warning which is said like this:
"The assembly must be granted full trust before the solution will run."
What should I do know in order it works.. ...Please help me...
Thanks,
Jennifer ![]()

Please help me...
blomm
Well I'm not realy an expert but I had the same problems when I started. So I offer you my help.
You need to grant permission to your assemblys, all assemblys. You should read this first bevor you do any further steps:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_wrcore/html/wrtskGrantingPermissionsToFoldersAssemblies.asp
Take a good look at it, if you realy wan't to develop on .Net
Hope this helps.
Fahad1
Sandro Christiaan
It looks like you've come across a databinding bug. When we set the databinding properties of the ListBox as part of the drag and drop from the Datasources Window, we set both the simple binding property (established through the SelectedValue property) *and* the look-up binding (established through the DataSource and DataMember properties). Setting both these properties results in a deadlock in the given scenario.
To fix the problem, you need to drill into the DataBindings property and delete the datasource entry for the SelectedValue property.
Sebastien Andrivet
The article that Thomas points out below is a good one and explains how to grant full trust in Microsoft .NET Framework 1.1. With VS2005 you'll need to grant full trust in Microsoft .NET Framework 2.0 - so make sure you use the .NET Framework 2.0 configuration tool if you want to add full trust to your assembly manually.
That said, you shouldn't need to use the .NET Configuration Tool if you're using Visual Studio Tools for Office (VSTO). VSTO automatically adds full trust to the assembly output of your project as part of a post build step - this is to make for a smooth F5 experience and minimize the number of steps the developer needs to take when testing and debuging their solution.
Try creating a new Word or Excel Office project, add some sample code and hit F5. The FullTrust entry for the assembly output should be given as part of a post build step.
I'd be interested to see why you got this error message in the first place.
Thanks.
congminh6
Hi,
I have already follow your guidance...I did this steps:
Using the .NET Framework 2.0, I went to "Runtime security policy" and expanded "Users" until I selected "All_Code" then I clicked on "Add a child code group."...I chose URL and typed like this:
c:\My Documents\Visual Studio 2005\Projects\My Word Actions Pane\My Word Actions Pane
but when I tried to open this project from VS2005...still showing a pop up informing that this is an untrust one....
Please help me...
Jennifer
David Friedland
Hi Reza,
I just sent you an email according to my ActionsPane problems....
Thank you for your kind helps..
Best Regards,
Jennifer
shaunhey
Hi,
It works...now can run well..However, I have got a problem....I just follow all codes for this URL: http://msdn2.microsoft.com/library/ms178783(en-US,VS.80).aspx
However, I faced problems like these:
When I clicked on the combo box, it will show options...and I chose one and selected desired another options from the list box...but, the strange one is, when I click "Insert" button, sometimes it would created a table BUT sometimes...it nothing happens....another case was, usually for the first selections, selected from the combo box and also selected from the list box, then I clicked "Insert"...it was worked well...BUT why for every second selections..even the combo box could not be selected...(it looks like freeze)....no actions....what was going on with my codes...there was no errors found..which is "o errors" when I tried to click on "Run".....
Do you have an email address please..so I can send the file in order you could have a look what was going on...Sorry to send you the file since it is difficult to explain...
Thanks very much for your helps...
Jennifer