473,397 Members | 1,985 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,397 software developers and data experts.

Enterprise Library for .NET Framework 2.0 - January 2006

hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale

Aug 28 '06 #1
7 2680
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale

Aug 28 '06 #2
Thanks;

Did what you told, still get errors

Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found

Should not I move the EntLib directory from Program Files to my
directory "workspwace"?

Thanks again
-rockdale

Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale
Aug 28 '06 #3
Check that the ent.lib projcts have been compiled. Try building the complete
solution (menu Build |Rebuild Solution...).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Thanks;

Did what you told, still get errors

Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found

Should not I move the EntLib directory from Program Files to my
directory "workspwace"?

Thanks again
-rockdale

Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale
Aug 28 '06 #4
That's what I did, but got no luck.
As I right click on my project and then add reference, I can see all
those block are in the reference list.

This was what I did

right click on my solution, add ->exist projects...
then Add Existing Project window popup
change Fies or Type to sulotion Files(*.sln)

Then choose EnterpriseLibrary.sln under Microsoft Enterprise Library
directory. (This directory is not the destination directory when I
installed the EntLib, I copied it to the same directory with my project
since I do not want it residents under program files)
What did I do wrong?

Thanks a lot
-rockdale

Siva M wrote:
Check that the ent.lib projcts have been compiled. Try building the complete
solution (menu Build |Rebuild Solution...).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Thanks;

Did what you told, still get errors

Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found

Should not I move the EntLib directory from Program Files to my
directory "workspwace"?

Thanks again
-rockdale

Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale
Aug 28 '06 #5
I also tried to add Data, Common and ObjectBuilder 3 csProj only, still
got the same error

Any idea?
-rockdale
rockdale wrote:
That's what I did, but got no luck.
As I right click on my project and then add reference, I can see all
those block are in the reference list.

This was what I did

right click on my solution, add ->exist projects...
then Add Existing Project window popup
change Fies or Type to sulotion Files(*.sln)

Then choose EnterpriseLibrary.sln under Microsoft Enterprise Library
directory. (This directory is not the destination directory when I
installed the EntLib, I copied it to the same directory with my project
since I do not want it residents under program files)
What did I do wrong?

Thanks a lot
-rockdale

Siva M wrote:
Check that the ent.lib projcts have been compiled. Try building the complete
solution (menu Build |Rebuild Solution...).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Thanks;

Did what you told, still get errors

Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found

Should not I move the EntLib directory from Program Files to my
directory "workspwace"?

Thanks again
-rockdale

Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).
>
"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.
>
What are the steps to include the source code of Microsoft Enterprise
Library into my project?
>
I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.
>
But when I put
>
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
>
in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)
>
Also, I just noticed that there is no namespace in your class in
VS2005?
>
As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />
>
<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>
>
into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
>
>
Please bear with me since I just upgrade to VS2005 from VS2003
>
Thanks a lot
-rockdale
Aug 28 '06 #6
With these 3 blocks, I right click on common and rebuild it, succeed.
right click on ObjectBuilder and rebuild succeed.
But right click on Data and rebuild failed with error
Error 1 The type or namespace name 'Common' does not exist in the
namespace 'Microsoft.Practices.EnterpriseLibrary' (are you missing an
assembly reference?) C:\WorkSpace\Microsoft Enterprise Library January
2006\src\Data\Instrumentation\DataInstrumentationL istenerBuilder.cs
Please help
rockdale wrote:
I also tried to add Data, Common and ObjectBuilder 3 csProj only, still
got the same error

Any idea?
-rockdale
rockdale wrote:
That's what I did, but got no luck.
As I right click on my project and then add reference, I can see all
those block are in the reference list.

This was what I did

right click on my solution, add ->exist projects...
then Add Existing Project window popup
change Fies or Type to sulotion Files(*.sln)

Then choose EnterpriseLibrary.sln under Microsoft Enterprise Library
directory. (This directory is not the destination directory when I
installed the EntLib, I copied it to the same directory with my project
since I do not want it residents under program files)
What did I do wrong?

Thanks a lot
-rockdale

Siva M wrote:
Check that the ent.lib projcts have been compiled. Try building the complete
solution (menu Build |Rebuild Solution...).
>
"rockdale" <ro************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Thanks;
>
Did what you told, still get errors
>
Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found
>
Should not I move the EntLib directory from Program Files to my
directory "workspwace"?
>
Thanks again
-rockdale
>
Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.

What are the steps to include the source code of Microsoft Enterprise
Library into my project?

I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.

But when I put

using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)

Also, I just noticed that there is no namespace in your class in
VS2005?

As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />

<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>

into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB


Please bear with me since I just upgrade to VS2005 from VS2003

Thanks a lot
-rockdale
Aug 28 '06 #7
I figured it out. You still need to add the reference for these
projects. e.g I have to add
\debug\Microsoft.Practices.EnterpriseLibrary.Commo n.dll and
\debug\Microsoft.Practices.EnterpriseLibrary.Objec tBuilder.dll to
project Data.
Don't know is it the right solution, but it works.

-thanks
rockdale wrote:
With these 3 blocks, I right click on common and rebuild it, succeed.
right click on ObjectBuilder and rebuild succeed.
But right click on Data and rebuild failed with error
Error 1 The type or namespace name 'Common' does not exist in the
namespace 'Microsoft.Practices.EnterpriseLibrary' (are you missing an
assembly reference?) C:\WorkSpace\Microsoft Enterprise Library January
2006\src\Data\Instrumentation\DataInstrumentationL istenerBuilder.cs
Please help
rockdale wrote:
I also tried to add Data, Common and ObjectBuilder 3 csProj only, still
got the same error

Any idea?
-rockdale
rockdale wrote:
That's what I did, but got no luck.
As I right click on my project and then add reference, I can see all
those block are in the reference list.
>
This was what I did
>
right click on my solution, add ->exist projects...
then Add Existing Project window popup
change Fies or Type to sulotion Files(*.sln)
>
Then choose EnterpriseLibrary.sln under Microsoft Enterprise Library
directory. (This directory is not the destination directory when I
installed the EntLib, I copied it to the same directory with my project
since I do not want it residents under program files)
>
>
What did I do wrong?
>
Thanks a lot
-rockdale
>
>
>
Siva M wrote:
Check that the ent.lib projcts have been compiled. Try building the complete
solution (menu Build |Rebuild Solution...).

"rockdale" <ro************@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
Thanks;

Did what you told, still get errors

Error 1 Metadata file 'C:\WorkSpace\Microsoft Enterprise Library
January
2006\Src\Configuration\Design\bin\Release\Microsof t.Practices.EnterpriseLibrary.Configuration.Design .dll'
could not be found

Should not I move the EntLib directory from Program Files to my
directory "workspwace"?

Thanks again
-rockdale

Siva M wrote:
Include the entprise library source projects in your (Visual Studio)
solution and then add reference to those projects from yours (that is ent
lib projects and yours should be in the same solution).
>
"rockdale" <ro************@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to
integrate it into my asp.net application. As i am going to connect to
mySQL database, I need to include the source code in my project so that
I can debug better. But I all those examples I found are reference the
compiled dll only.
>
What are the steps to include the source code of Microsoft Enterprise
Library into my project?
>
I created a new dir and copy Microsoft Enterprise Library source code
under my new dir.
>
But when I put
>
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
>
in my class. I got error
The type or namespace name "Practices" does not exist in the namespace
"Microsoft"( are you missing an assembly reference?)
>
Also, I just noticed that there is no namespace in your class in
VS2005?
>
As I need to connect to MySQL and MSSQL, I put
<connectionStrings>
<add name="MSSQL"
providerName="System.Data.SqlClient"
connectionString= "myCOnnectionString" />
>
<add name="MySql"
providerName="System.Data.SqlClient"
connectionString="myConnectionString" />
</connectionStrings>
<dataConfiguration
defaultDatabase="MSSQL"/>
>
into my web.config file, but I got error - could not find schema
information for the attribute "defaultDatabase"
Does DAAB has its own config file, if it has, where and what's the name
of the config file. Do I need to put this configuration into config
file that DAAB
>
>
Please bear with me since I just upgrade to VS2005 from VS2003
>
Thanks a lot
-rockdale
Aug 29 '06 #8

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

Similar topics

1
by: Amelyan | last post by:
Does anyone know when Enterprise Library is going to release new version for ..Net Framework 2.0? Thanks, Boris
3
by: craig | last post by:
I was just wondering if anyone else may have incorporated the original Microsoft Exception Management Application Block (EMAB) or Data Access Application Block (DAAB) into one of their applications...
0
by: nbs.tag | last post by:
Hey guys, im not sure if this is the proper group or not but im hoping you guys can help. In our current program's, weve just always used a web.config file that was given a value of a registry key...
3
by: binaryster | last post by:
Hi, I seem to remember reading somewhere that the January 06 release has been pulled out and users were instructed to download and use the June 2005 release. Two questions: 1- Is this true (was...
1
by: bytebugs | last post by:
Hello Folks, Can anyone suggest me a good book to learn using the Microsoft Enterprise Library Application Blocks. I can only find two books on the net 1. The Definitive Guide to the...
0
by: Chris Dunaway | last post by:
Enterprise Library January 2006 Visual Studio 2005 Lanugage: C# I am attempting to use the Enterprise Library to read data from an Excel spreadsheet file. I got the following connection...
1
by: dirk.dircksen | last post by:
Hi I'm busy migrating code from the June 2005 Enterprise Library edition to the January 2006 edition. One of the cool things about the June 2005 edition (for me, in any case) was the fact that...
2
by: rockdale | last post by:
Hi, all I am using Enterprise Library for .NET Framework 2.0 - January 2006 to access my backend MS SQL database. As now we are consider migrate sql database to mySQL. What engine (ODBC or...
1
by: GaryDean | last post by:
I now have installed (from the same install) Enterprise Library - January 2006 and Enterprise Library - June 2005. The install for these two was called Enterprise Library for .Net 2.0. (not...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.