locked
Issues when using Microsoft Enterprise Library RRS feed

  • Question

  • User-1967629027 posted

     Hi,

     

    I am woking on a very big asp.net application on visual studio 2003. It has several layers. On the data layer the application is using the Microsoft Enterprise Library.

    The error that I get is

    Value of type 'Microsoft.Practices.EnterpriseLibrary.Data.Database' cannot be converted to 'Microsoft.Practices.EnterpriseLibrary.Data.Database'.

     

    Any ideas on why this error and how to solve it?

    Thanks,

    Sergio

     

     

    Wednesday, June 16, 2010 5:49 PM

All replies

  • User-481631678 posted

    It seems that you have two diferent version of EnterpriseLibrary and one dll is using different version and other dll is using diferent version. Make sure that all projects are refering to single EnterpriseLibrary Dll.


    Thursday, June 17, 2010 1:42 AM
  • User-1967629027 posted

    Hi!!

     

    Thanks for the advice!! Indeed there was a duplicate dll on my project. I found one when looking at the properties window in visual studio of the dll reference, in some of its ocurrences it was pointed to an old path I had use to install my app and the enterprise library.

    Best Regards, 

    Sergio

    Sunday, June 20, 2010 5:40 PM