all groups > dotnet interop > april 2004 >
You're in the

dotnet interop

group:

TypeLoadException & dynamic assemblies signing


TypeLoadException & dynamic assemblies signing Ostap Radkovskiy
4/28/2004 3:42:39 PM
dotnet interop:
Hi!

I'm having problems with strongly named assemblies usage. There is a .NET
solution with number of projects signed by public/private key pair (snk).
The solution uses another package of .NET assemblies signed by another snk
and deployed as msi. Now the problem. These package assemblies have a piece
of code dynamically generating custom assembly with wrappers to a .NET
solution classes. I'm getting a TypeLoadException of "Method ... is not
implemented" while calling typeBuilder.CreateType(). If I'd remove signing
for the solution assemblies - everything works fine. I was trying to sign
dynamically generated assembly with solution's snk - same exception.

Any suggestions appreciated,

Ostap Radkovskiy


Re: TypeLoadException & dynamic assemblies signing Ostap Radkovskiy
4/30/2004 10:19:35 AM
For those who's interested: this was solved by adding [assembly:
AllowPartiallyTrustedCallers] both to the solution and library package

[quoted text, click to view]

Re: TypeLoadException & dynamic assemblies signing Lee Gillie
6/28/2004 12:45:41 PM
Hmmm... out of the blue, while building up a class, I started getting
this error message. I tried adding the attribute, but it did not help.
I have a key specified in the AssemblyInfo.vb, and had set version to
1.0.0.0. When I advanced to version 1.0.0.1 then the error went away.
Don't know the why and where of it, but it worked for me.

- Lee

[quoted text, click to view]

AddThis Social Bookmark Button