-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Method not found exception when using NH 1.0
PostPosted: Wed Nov 16, 2005 10:16 am 
Contributor
Contributor

Joined: Thu Jun 23, 2005 1:08 pm
Posts: 32
Location: Baltimore, MD
I have a strange error I am trying ot figure out. When I upgrade my project from NH .9 to 1.0 I start getting this exception while loading an object:

System.MissingMethodException: Method not found: System.Object Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(System.Type, System.Type[], Castle.DynamicProxy.IInterceptor, System.Object[]).

It does not happen in VS.NET, only when ran separately. I checked to make sure I had the latest CastleProxy, and it looks like I do (the 68k file size one).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 11:56 am 
Contributor
Contributor

Joined: Thu Jun 23, 2005 1:08 pm
Posts: 32
Location: Baltimore, MD
OK, I figured it out. It WAS the Castle DynamicProxy. I had the right version but the old one was cached in the "download cache". The download cache is also used for shadow copying (which I use).

It was using the version out of the cache and since they have the same version number it wasn't updating the cache with the new .dll.

To clear the cache do: gacutil.exe /cdl

To view the downloda cache: gacutil.exe /ldl


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.