Hi

We are using Castle Windsor 2.0, when we call container.Resolve<T>();
for an implementation, the error message FactoryActivator: could not
proxy Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase
appears. The inner exception says Constructor on type
'DatabaseProxy2d1d2ed22dc54e1ebe7431cb6b73787d' not found.

We are using the Microsoft.Practices.EnterpriseLibrary.Data for our
database access, version 4.1. This is the important part of the
configuration:

<facilities>
  <facility id="factory.support"
type="Castle.Facilities.FactorySupport.FactorySupportFacility,
Castle.MicroKernel" />
</facilities>

<components>
  <component id="DatabaseFactory"
type="Core.ResourceAccess.DatabaseFactory, Core.ResourceAccess" />
</components>
And this is the code

public Database CreateDatabase(string name)
{
   return
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase
(name);
}

When I run through the debugger, the function above is correctly
finished, so I'm not sure if I need to search the issue there.

I have been able to isolate the error only when we are using our AOP
configuration block. When I remove the configuration for attaching the
interceptors; the application runs fine.

Can you point me in the direction where I can find out what is the
cause?

Thanks!

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

Reply via email to