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
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 >