Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 27 Nov 2007 14:18:06 -0800 (PST),    group: microsoft.public.word.oleinterop        back       


System.Security.SecurityException: That assembly does not allow partially trusted callers.   
I have created an ActiveX control that does word automation.  Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.

I am using .net 2.  I have a key and use the regasm tool after it the
dll is compiled

I am really lost on how to make this work any help will be appreciated

John
date: Tue, 27 Nov 2007 14:18:06 -0800 (PST)   author:   John G

RE: System.Security.SecurityException: That assembly does not allow pa   
Hi John,

I haven't worked with ActiveX combined with .net Assemblies but if I see no 
reason why it shouldn't work.

By the sound of the exception your getting it seams to me you have to add a 
code group (in configuration | .net framework 2.0 configuration) and trust 
your excecuting assembly. Give it FullTrust in the zone your using it in.

You can also trust it through the commandline by using the Caspol.exe tool.

It's word the try I'd say.
HTH

-- 
Groetjes, 

Joost Verdaasdonk 
M.O.S. Master 



"John G" wrote:

> I have created an ActiveX control that does word automation.  Once I
> creat an instance of work I get the following message
> System.Security.SecurityException: That assembly does not allow
> partially trusted callers.
> 
> I am using .net 2.  I have a key and use the regasm tool after it the
> dll is compiled
> 
> I am really lost on how to make this work any help will be appreciated
> 
> John
>
date: Tue, 27 Nov 2007 14:46:01 -0800   author:   Joost Verdaasdonk

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us