473,385 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DBCommandWrapper

I am developing a web service in C# in Visual Studio 2005. I am trying to
use the Enterprise Library for data. But it will not recognise
DBCommandWrapper. I have added all the relevant references to the EL
Configuration, Data Access, etc and I have this at the top:

using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Configuratio n;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data.Configu ration;
It gives this error message at DBCommandWrapper:
The type or namespace name 'DBCommandWrapper' could not be found (are you
missing a using directive or an assembly reference?)

Can you tell me what I have missed, please?

Thanks,
Helen

Oct 11 '07 #1
5 7656
http://msdn.microsoft.com/msdnmag/is...10/DataPoints/

(found by typing 'dbcommandwrapper "enterprise library"' into my favorite
search engine)
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Helen Trim" wrote:
I am developing a web service in C# in Visual Studio 2005. I am trying to
use the Enterprise Library for data. But it will not recognise
DBCommandWrapper. I have added all the relevant references to the EL
Configuration, Data Access, etc and I have this at the top:

using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Configuratio n;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data.Configu ration;
It gives this error message at DBCommandWrapper:
The type or namespace name 'DBCommandWrapper' could not be found (are you
missing a using directive or an assembly reference?)

Can you tell me what I have missed, please?

Thanks,
Helen
Oct 11 '07 #2
Thanks but I had already found that site and it doesn't answer my question.

Helen

"Peter Bromberg [C# MVP]" wrote:
http://msdn.microsoft.com/msdnmag/is...10/DataPoints/

(found by typing 'dbcommandwrapper "enterprise library"' into my favorite
search engine)
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Helen Trim" wrote:
I am developing a web service in C# in Visual Studio 2005. I am trying to
use the Enterprise Library for data. But it will not recognise
DBCommandWrapper. I have added all the relevant references to the EL
Configuration, Data Access, etc and I have this at the top:

using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Configuratio n;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data.Configu ration;
It gives this error message at DBCommandWrapper:
The type or namespace name 'DBCommandWrapper' could not be found (are you
missing a using directive or an assembly reference?)

Can you tell me what I have missed, please?

Thanks,
Helen
Oct 11 '07 #3
On Oct 11, 12:52 pm, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
Thanks but I had already found that site and it doesn't answer my question.
Have you seen this one?

http://forums.asp.net/t/966617.aspx

Jon
Oct 11 '07 #4
Thanks, I have made some progress with this.

Helen
"Jon Skeet [C# MVP]" wrote:
On Oct 11, 12:52 pm, Helen Trim <HelenT...@discussions.microsoft.com>
wrote:
Thanks but I had already found that site and it doesn't answer my question.

Have you seen this one?

http://forums.asp.net/t/966617.aspx

Jon
Oct 11 '07 #5
''

What version of dotnet/visual studio are you using.

From your previous post, I think its
VS2005
DotNet 2.0.

Ok...

Which version of the EnterpriseLibrary are you using?

There is a release for 1.1 (VS2003) and there is a seperate release for 2.0
(VS2005).

Which are you using?

The reason I was, is because there was a 1.1 object, which was deprecated in
the 2.0 library.

http://msdn2.microsoft.com/en-us/lib...dbcommand.aspx

The quickest way to determine which you have is

is your
ExecuteNonQuery
ExecuteReader
methods...are they on the Database object, or the DBCommandWrapper object?
If you are using the 2.0 library, then you need to add this using statement

using System.Data.Common;// That's because that is where DBCommand
exists....its a "real" .Net object now.
....
"Helen Trim" <He*******@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
>I am developing a web service in C# in Visual Studio 2005. I am trying to
use the Enterprise Library for data. But it will not recognise
DBCommandWrapper. I have added all the relevant references to the EL
Configuration, Data Access, etc and I have this at the top:

using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Configuratio n;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Microsoft.Practices.EnterpriseLibrary.Data.Configu ration;
It gives this error message at DBCommandWrapper:
The type or namespace name 'DBCommandWrapper' could not be found (are you
missing a using directive or an assembly reference?)

Can you tell me what I have missed, please?

Thanks,
Helen

Oct 11 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ssp | last post by:
Hi C#ers, I have a stored proc. which is as follows. Supposedly returning the ID (LocationID) of the row I've just inserted (scope identity): ========================================= CREATE...
0
by: js | last post by:
I am using the Microsoft.Practices.EnterpriseLibrary and trying to bind all the DropDownList controls on a page by calling the following function at Page_Load event. My attempt is make only one...
5
by: JP Green | last post by:
Hi guys, Just came back to ASP.NET after a couple year hiatus and I have a feeling that time has passed me by on some of this stuff re: application design. My biggest gripe as a programmer is...
2
by: orencs | last post by:
Hi, I am using Datareader and stored procedure in C# ADO.NET. When I am running the stored procedure in the SQL Query Analyzer and recieve two rows (as I hace expected) col1 col2 0 1 0 ...
2
by: K B | last post by:
Hi, I'm using the Enterprise Data Access Application Block. I've imported the Data and Data.SQL dlls. With the following code block, I get an error that "Type DbCommandWrapper is not defined." ...
6
by: SAL | last post by:
Hello, Currently, I'm using Visual Studio 2003, C#, Framework 1.1 and Enterprise Library 2005 (for framework 1.1). I've used the Enterprise Library Configuration utility to create my...
2
by: SAL | last post by:
Hello, I am working with Framework 1.1 and Microsoft Enterprise Library 2005. I've used the Enterprise Library Configuration utility to create my app.config & dataConfiguration.config files. ...
1
by: Karthik | last post by:
Dear All, I am using VB .Net 2005 Ver 2.0. I am try to user DBCommandWrapper Which in the EnterpriseLibrary. But it shows Error. What reference do i add or imports for error free?
0
by: | last post by:
Hi, I'm attempting to run a SQL SP from ASP.NET 1.1 using the EnterpriseLibrary. I have successfully creted a connection and am attempting to call the ExecuteScalar method. The problem is that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.