|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CreateInstance security violationi have some code that worked fine that has now been moved out to a separate
assembly, (simplifeid below) Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.GetAssembly(OwningMainForm.GetType) Dim o As Object = asm.CreateInstance(frm, True) and i now get a system.security.ipermission exception:- "Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." anyone know how i can get round this? (the assembly and frm are both correct) *guy* Don't quote me on this... ... that folder where the solution is newly located
might not be set up in the .NetFramework configuration with in that machine. best luck to you though. Ronin Show quoteHide quote "guy" wrote: > i have some code that worked fine that has now been moved out to a separate > assembly, (simplifeid below) > > Dim asm As System.Reflection.Assembly = > System.Reflection.Assembly.GetAssembly(OwningMainForm.GetType) > Dim o As Object = asm.CreateInstance(frm, True) > > and i now get a system.security.ipermission exception:- > "Request for the permission of type > 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." > > anyone know how i can get round this? (the assembly and frm are both correct) > > *guy*
UGH, Framework goes just so far AGAIN!
forms collection? vb.net / vs2005 VS2005 - How do you... Help with truncating GUI Design Question URGENT: Problem when iterating through a custom collection (dictionary based) with FOR...EACH I can't figure out how to solve this problem. pull individual data element from a datasource? how to? Problem when iterating through custom dictionary based collection with FOR...EACH...NEXT |
|||||||||||||||||||||||