467,879 Members | 1,242 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

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
  • viewed: 2379
Share:
7 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Amelyan | last post: by
reply views Thread by nbs.tag | last post: by
3 posts views Thread by binaryster | last post: by
reply views Thread by Chris Dunaway | last post: by
1 post views Thread by dirk.dircksen | last post: by
2 posts views Thread by rockdale | last post: by
1 post views Thread by GaryDean | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.