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@gmail.com" wrote:
> 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,
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] GarthS wrote:
> 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.
>
> "funkebunch@gmail.com" wrote:
>
> > 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?
> >
> >
Don't see what you're looking for? Try a search.