Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

dragonius

@dragonius
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Entlib + config problem
    D dragonius

    Checked that already, unfortunately they are the same :(

    C# database help sysadmin xml question

  • [Message Deleted]
    D dragonius

    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?

    C#

  • Adding checkboxes in listbox in C#
    D dragonius

    Is it a possibility to use a checkedlistbox? Good luck!

    C# question csharp

  • Entlib + config problem
    D dragonius

    Hello 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)"}

    C# database help sysadmin xml question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups