Groups | Blog | Home
all groups > dotnet security > july 2006 >

dotnet security : Client-Side Word Automation


funkebunch NO[at]SPAM gmail.com
7/20/2006 6:42:31 AM
I am hosting a C# UserControl in IE that attempts to automate Microsoft
Word. When opening Word I get an Error:
System.Security.Permissions.SecurityPermission. How can I give my
control permission to open Word?
GarthS
7/20/2006 5:20:02 PM
To utilise the Word interopt libraries you need to give the process
permission to load the word application:
Open Component Services

goto Component Services\Computers\My Computer\DCOM Config\

right click on Microsoft Word Document and choose properties.

On the security tab choose customise for the Lauch and Activation
Permissions and click edit.

Add the permissions for your application process (normally [machine
name]\aspnet for web sites).

Hope this helps,
Garth.

[quoted text, click to view]
funkebunch NO[at]SPAM gmail.com
7/21/2006 6:31:52 AM
GarthS,

That would be the method for giving a server-side control permission to
open Word. My control is running on the client, and it was .NET
security blocking access to Word. I discovered that I had to open the
..NET Configuration, add a group for my web site, and give it FullTrust
permission for this to work. Thanks anyways though.


[quoted text, click to view]
AddThis Social Bookmark Button