If the application assembly changes you shouldn't try to reuse the proxy
cache. It's safer that way, I'm sure there are other failure scenarios than
the ones you listed.

Krzysztof Kozmic
sent from my phone
On 14 Mar 2013 17:00, "Jean-Claude Viau" <[email protected]> wrote:

> Hi,
>
> I am in the process of using Proxy caching and would like to understand
> potential issue/exception that can occur. By doing some test I found 5
> exceptions that occurs when calling LoadAssemblyIntoCache. Happens when
> there's a mismatch between the cached type and actual type or with
> dependencies (assembly). I would like to know if we missed some use-case
> and if there some exception that can occur elsewhere (not in
> LoadAssemblyIntoCache call) ?
>
> *Exception 1 - SerializationException*
> Occur when a method/property has been removed from a proxied type, it
> raise this exception with this description : Cannot get the member
> 'RemovedMethod'.
>
> *Exception 2 - TypeLoadException*
> Occur when a method/property is added to a proxied type, it raise this
> exception with this description : Method 'NewMethod' in type 'xProxy' from
> assembly 'CachedProxiesAssembly' does not have an implementation.
>
> *Exception 3 - MissingMethodException*
> Occur when a method/property signature has been changed in a proxied type
> (e.g. return type, argument type, number of arguments, ...)
>
> *Exception 4/5 - FileLoadException /
> TargetInvocationException(InnerException:FileNotFoundException)*
> Occur when there's a mismatch between cached type dependencies
> (assemblies) version and current assemblies version (e.g. version of
> Castle.Core).
>
> Thanks
> Jean-Claude Viau
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected]
> .
> Visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to