using (IDataReader dr = objSqlDb.ExecuteReader(objDbCmd))
throws an exception :
Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
The error explains what you should do:
- Makes sure
Microsoft.Practices.Unity.dll exists beside the code you are running e.g. in the bin folder.
- If it is not in the GAC try adding it there.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)