I've just started this lab (ex01\begin folder using SimpleData.sln file) using Visual Studio 2008 and I'm running into issues which I think may be related to having an earlier version of Ent Lib installed on my machine (when I click
start->all programs-> microsoft patterns & practices ->
Enterprise Library 3.1 May 2007 is what I see).
Symptom 1: when I right-click on my app.config, Edit Enterprise Library Configuration tool is not exposed (i.e. not integrated into Visual Studio 2008) so I had to run EntLibConfig.exe and manually type the name of the database into the
connection string (i.e. no ellipses in the ConnectionString property to launch the Connection Properties dialog) and this got created:
<?xml version="1.0" encoding="utf-8"?>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="QuickStarts Instance"
Symptom 2: Instructions for step 5 (mnuLoad_Click on page 3) emphasize coding to create the default database
db = DatabaseFactory.CreateDatabase( );
....which I did but with the app.config as above it blows up when I click Load. I can fix by specifying:
db = DatabaseFactory.CreateDatabase("QuickStarts Instance");
Symptom 3: An earlier project using Visual Studio 2005 and Ent Lib 3.1 exposes the choice of Edit Enterprise Library Configuration when I right click on its web.config file.
When I ran the EntLibLabs4_1.msi file last Friday, I think I specified a location for the output to be on my D: drive (i.e. my
C:\Program Files\ location still contains the 3.1 version) and hence my 4.1 version is at this location:
D:\Enterprise Library 4.1 HOL\Lib
I'm thinking I am not set up correctly. Can different versions coexist "side by side"? Thanks.