FrostWorks
07-05-2006, 06:51 AM
I've been breaking my head over this exception and I cant seem to get rid of it:
I'm working on a webproject (.NET 2.0) and I'm trying to use Spring.AOP for sessionmanagement.
Therefore my controller uses IOC and AOP to get a reference to my servicelayer.
My web.config looks like this:
<object id="SessionController" type="MyLibrary.AOP.SessionController, MyLibrary.AOP"/>
<object id="AService" type="Spring.Aop.Framework.ProxyFactoryObject">
<property name="target">
<object id="ServiceLayer" type="MyLibrary.Service.AService, MyLibrary.Service"/>
</property>
<property name="interceptorNames">
<list>
<value>SessionController</value>
</list>
</property>
</object>
When I'm only using IoC it all works fine, but as soon as I'm using AOP I get the following exception:
Signature of the body and declaration in a method implementation do not match. Type: 'Spring.Aop.DynamicProxy.Proxy_3479cb52c4be48038ff d75527a12d14a'. Assembly: 'Spring.Aop.DynamicProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Signature of the body and declaration in a method implementation do not match. Type: 'Spring.Aop.DynamicProxy.Proxy_3479cb52c4be48038ff d75527a12d14a'. Assembly: 'Spring.Aop.DynamicProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Source Error:
Line 20: /// <returns>An object</returns>
Line 21: public override object GetObject( string id ) {
Line 22: IApplicationContext ctx = ContextRegistry.GetContext( );
Line 23: return ctx[id];
Line 24: }
Can someone help me with this?
I'm working on a webproject (.NET 2.0) and I'm trying to use Spring.AOP for sessionmanagement.
Therefore my controller uses IOC and AOP to get a reference to my servicelayer.
My web.config looks like this:
<object id="SessionController" type="MyLibrary.AOP.SessionController, MyLibrary.AOP"/>
<object id="AService" type="Spring.Aop.Framework.ProxyFactoryObject">
<property name="target">
<object id="ServiceLayer" type="MyLibrary.Service.AService, MyLibrary.Service"/>
</property>
<property name="interceptorNames">
<list>
<value>SessionController</value>
</list>
</property>
</object>
When I'm only using IoC it all works fine, but as soon as I'm using AOP I get the following exception:
Signature of the body and declaration in a method implementation do not match. Type: 'Spring.Aop.DynamicProxy.Proxy_3479cb52c4be48038ff d75527a12d14a'. Assembly: 'Spring.Aop.DynamicProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Signature of the body and declaration in a method implementation do not match. Type: 'Spring.Aop.DynamicProxy.Proxy_3479cb52c4be48038ff d75527a12d14a'. Assembly: 'Spring.Aop.DynamicProxy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Source Error:
Line 20: /// <returns>An object</returns>
Line 21: public override object GetObject( string id ) {
Line 22: IApplicationContext ctx = ContextRegistry.GetContext( );
Line 23: return ctx[id];
Line 24: }
Can someone help me with this?