Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2004

Tip: Looking for answers? Try searching our database.

TypeLoadException & dynamic assemblies signing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ostap Radkovskiy - 28 Apr 2004 13:42 GMT
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
Ostap Radkovskiy - 30 Apr 2004 08:19 GMT
For those who's interested: this was solved by adding [assembly:
AllowPartiallyTrustedCallers] both to the solution and library package

> Hi!
>
[quoted text clipped - 11 lines]
>
> Ostap Radkovskiy
Lee Gillie - 28 Jun 2004 20:45 GMT
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

> For those who's interested: this was solved by adding [assembly:
> AllowPartiallyTrustedCallers] both to the solution and library package
[quoted text clipped - 15 lines]
> >
> > Ostap Radkovskiy

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.