P
Peter Sojan
Hi!
For my Office 2000 Installation I imported all three needed Typelibs for
Word (simple with tblimp):
Office.dll
VBIDE.dll
Word.dll
Then in a little test program (ComTest.cs) when I try the
following:
Word.Application wa = new Word.Application();
I get an Security Exception:
-----------------------------------
Unhandled Exception: System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
at MainApp.Main() in
h:\daten\programming\dotnettest\helloworld\ComTest.cs:line 11
The state of the failed permission was:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
-------------------------------------
Any hints? Is this a COM or Runtime permission thing? How could
I overcome the security restrictions?
Thx,
Peter
For my Office 2000 Installation I imported all three needed Typelibs for
Word (simple with tblimp):
Office.dll
VBIDE.dll
Word.dll
Then in a little test program (ComTest.cs) when I try the
following:
Word.Application wa = new Word.Application();
I get an Security Exception:
-----------------------------------
Unhandled Exception: System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
at MainApp.Main() in
h:\daten\programming\dotnettest\helloworld\ComTest.cs:line 11
The state of the failed permission was:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
-------------------------------------
Any hints? Is this a COM or Runtime permission thing? How could
I overcome the security restrictions?
Thx,
Peter