I am running into some problems while trying to get DAAB from Enterprise library 5.0 running. I have followed the steps as per the tutorial, but am getting errors...
1) Download / install enterprise library
2) Add references to the blocks I need (common / data)
3) Imports
Imports Microsoft.Pract ices.Enterprise Library.Common
Imports Microsoft.Pract ices.Enterprise Library.Data
4) Through the enterprise library config software. I open up the web.config from my site. I then click Blocks, then Add data settings... fill in my details and save / close
5) I then (thinking setup is complete) try to get an instance of the database via
Dim db As Database = DatabaseFactory .CreateDatabase ()
6) I compile and receive the following error:
Could not load file or assembly 'Microsoft.Prac tices.Enterpris eLibrary.Data, Version=5.0.414 .0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\site\web.co nfig line 4)
Line 4 off my web.config was generated by the config tool and is:
<section name="dataConfi guration" type="Microsoft .Practices.Ente rpriseLibrary.D ata.Configurati on.DatabaseSett ings, Microsoft.Pract ices.Enterprise Library.Data, Version=5.0.414 .0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="true" />
Am I missing a required step? Have I done the steps in the wrong order? Have I made a mistake?
Thanks a lot for the assistance.
I also have an open stack overflow question for this matter here: http://bit.ly/ci7mhx
1) Download / install enterprise library
2) Add references to the blocks I need (common / data)
3) Imports
Imports Microsoft.Pract ices.Enterprise Library.Common
Imports Microsoft.Pract ices.Enterprise Library.Data
4) Through the enterprise library config software. I open up the web.config from my site. I then click Blocks, then Add data settings... fill in my details and save / close
5) I then (thinking setup is complete) try to get an instance of the database via
Dim db As Database = DatabaseFactory .CreateDatabase ()
6) I compile and receive the following error:
Could not load file or assembly 'Microsoft.Prac tices.Enterpris eLibrary.Data, Version=5.0.414 .0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\site\web.co nfig line 4)
Line 4 off my web.config was generated by the config tool and is:
<section name="dataConfi guration" type="Microsoft .Practices.Ente rpriseLibrary.D ata.Configurati on.DatabaseSett ings, Microsoft.Pract ices.Enterprise Library.Data, Version=5.0.414 .0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5" requirePermissi on="true" />
Am I missing a required step? Have I done the steps in the wrong order? Have I made a mistake?
Thanks a lot for the assistance.
I also have an open stack overflow question for this matter here: http://bit.ly/ci7mhx