Checked that already, unfortunately they are the same :(
dragonius
Posts
-
Entlib + config problem -
[Message Deleted]I presume you mean for the web? If so i'd guess the VisibleMonthChanged event... or do you want to determine whether it is the next month or the previous?
-
Adding checkboxes in listbox in C#Is it a possibility to use a checkedlistbox? Good luck!
-
Entlib + config problemHello All, I've got a problem with EntLib 4.1 in combination with my config file. I have a class library for data access which has its own app.config file containing the information for the sql connection.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<dataConfiguration defaultDatabase="CarOmnia" />
<connectionStrings>
<add name="CarOmnia" providerName="System.Data.SqlClient" connectionString="server=(local);database=CarOmnia;User Id=xx;Password=xxxx;" />
</connectionStrings>
</configuration>Code to access the database:
public static DataSet SelectAll()
{
DataSet retValue = new DataSet();try { Database db = DatabaseFactory.CreateDatabase(); DbCommand cmd = db.GetStoredProcCommand(stpTest); retValue = db.ExecuteDataSet(cmd); } catch (Exception ex) { throw ex; } return retValue; }
With this go the following includes:
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;What am i doing wrong, i'm getting the following error on the CreateDatabase() line: {"The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index 2)"}