473,834 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Acess aplication block

Hi

I have Microsoft Enterprise Library 2005 installed on my local system.
I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql
Server 2000.

I am developing a web application in which i am using data Access
Application Block for data access.

I have a remote web n data server with asp.net 1.1 support

the application is working fine here on the local server(web & data).

when i change the data server path to the remote server it also working
fine but
When I uploaded the application on the remote server n tested there it
gives me the following err
ex.message was

>>>>>The type initializer for
>"Microsoft .Practices.Ente rpriseLibrary.D ata.Instrumenta tion.DataConnec tionFailedEvent "
>threw an exception.
ex.Source was

.............Mi crosoft.Practic es.EnterpriseLi brary.Data

ex.trace was

at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataConnectionFa iledEvent.Fire( String
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataInstrumentat ionFacade.Conne ctionFailed(Str ing
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.OpenConn ection() at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.ExecuteR eader(DBCommand Wrapper
command) at property.m4.But ton2_Click(Obje ct sender, EventArgs e)
Plz help me why this is happening...... .....

Mukesh Kumar agarwal
Delhi
India

Sep 9 '06 #1
6 4155
Mukesh,

Are you sure that the user that ASP.NET is running under has access to
the database you are trying to reach? It seems as if this is an error on
connecting.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mukesh" <ef*****@newsgr oups.nospamwrot e in message
news:u6******** ******@TK2MSFTN GP05.phx.gbl...
Hi

I have Microsoft Enterprise Library 2005 installed on my local system.
I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql
Server 2000.

I am developing a web application in which i am using data Access
Application Block for data access.

I have a remote web n data server with asp.net 1.1 support

the application is working fine here on the local server(web & data).

when i change the data server path to the remote server it also working
fine but
When I uploaded the application on the remote server n tested there it
gives me the following err
ex.message was

>>>>The type initializer for
"Microsoft. Practices.Enter priseLibrary.Da ta.Instrumentat ion.DataConnect ionFailedEvent"
threw an exception.

ex.Source was

............Mic rosoft.Practice s.EnterpriseLib rary.Data

ex.trace was

at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataConnectionFa iledEvent.Fire( String
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataInstrumentat ionFacade.Conne ctionFailed(Str ing
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.OpenConn ection() at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.ExecuteR eader(DBCommand Wrapper
command) at property.m4.But ton2_Click(Obje ct sender, EventArgs e)
Plz help me why this is happening...... .....

Mukesh Kumar agarwal
Delhi
India



Sep 9 '06 #2
The error you are getting is because the enterprise library wants to write
events to the event log and setting this up requires registry permissions.
You need to installutil the dlls for the enterprise library (this is covered
in the docs somewhere). The reason it is writing to the event log is because
the connection failed. If you setup the event log access correctly then you
will have an eventlog entry telling you why the connection failed.

HTH

Ciaran O'Donnell

"Mukesh" wrote:
Hi

I have Microsoft Enterprise Library 2005 installed on my local system.
I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql
Server 2000.

I am developing a web application in which i am using data Access
Application Block for data access.

I have a remote web n data server with asp.net 1.1 support

the application is working fine here on the local server(web & data).

when i change the data server path to the remote server it also working
fine but
When I uploaded the application on the remote server n tested there it
gives me the following err
ex.message was

>>>>>The type initializer for
>>>>>"Microsoft .Practices.Ente rpriseLibrary.D ata.Instrumenta tion.DataConnec tionFailedEvent "
>>>>>threw an exception.

ex.Source was

.............Mi crosoft.Practic es.EnterpriseLi brary.Data

ex.trace was

at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataConnectionFa iledEvent.Fire( String
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.In strumentation.D ataInstrumentat ionFacade.Conne ctionFailed(Str ing
connectionStrin g) at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.OpenConn ection() at
Microsoft.Pract ices.Enterprise Library.Data.Da tabase.ExecuteR eader(DBCommand Wrapper
command) at property.m4.But ton2_Click(Obje ct sender, EventArgs e)
Plz help me why this is happening...... .....

Mukesh Kumar agarwal
Delhi
India

Sep 9 '06 #3
Hello Mukesh,

I think Ciaran's suggestion is reasonable since the enterprise library will
perform instrumentatino and log data into multiple event storages(such as
eventlog, WMI category...). Have you tried manually installing the
instrumentation on the problem server to see whether it helps?

BTW, if convenient, would you provide us the complete exception message+
call stack since that can be helpful to trace the complete code path.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.
Sep 11 '06 #4
Hi all

As per my earlier conversation with Ciaran (thx for reply) I have
installed the MS APplication block on the server , when i ran Build
Enterprise Library file and Install Services from (batch files )
programme files menu it was asking for visual studio 2003 , I have only
.net framework on the server how can i use the MS application block
data access library on my server plz help...

Mukesh Agarwal
mu*********@gma il.com
Delhi India

Ciaran O''Donnell wrote:
The error you are getting is because the enterprise library wants to write
events to the event log and setting this up requires registry permissions.
You need to installutil the dlls for the enterprise library (this is covered
in the docs somewhere). The reason it is writing to the event log is because
the connection failed. If you setup the event log access correctly then you
will have an eventlog entry telling you why the connection failed.

HTH

Ciaran O'Donnell

"Mukesh" wrote:
>Hi

I have Microsoft Enterprise Library 2005 installed on my local system.
I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql
Server 2000.

I am developing a web application in which i am using data Access
Application Block for data access.

I have a remote web n data server with asp.net 1.1 support

the application is working fine here on the local server(web & data).

when i change the data server path to the remote server it also working
fine but
When I uploaded the application on the remote server n tested there it
gives me the following err
ex.message was

> >>>>>The type initializer for
>>"Microsoft .Practices.Ente rpriseLibrary.D ata.Instrumenta tion.DataConnec tionFailedEvent "
>>threw an exception.

ex.Source was

.............M icrosoft.Practi ces.EnterpriseL ibrary.Data

ex.trace was

at
Microsoft.Prac tices.Enterpris eLibrary.Data.I nstrumentation. DataConnectionF ailedEvent.Fire (String
connectionStri ng) at
Microsoft.Prac tices.Enterpris eLibrary.Data.I nstrumentation. DataInstrumenta tionFacade.Conn ectionFailed(St ring
connectionStri ng) at
Microsoft.Prac tices.Enterpris eLibrary.Data.D atabase.OpenCon nection() at
Microsoft.Prac tices.Enterpris eLibrary.Data.D atabase.Execute Reader(DBComman dWrapper
command) at property.m4.But ton2_Click(Obje ct sender, EventArgs e)
Plz help me why this is happening...... .....

Mukesh Kumar agarwal
Delhi
India

Sep 11 '06 #5
Hi Mukesh,

As for the Enterprise Library(2005) for .net framework 1.1, the
instrumentation services does need to be installed separately. And the
"install services" bat file does require the VS 2003 IDE installed on the
machine. Actually this is because instrumetation feature is mainly used in
development environment. For production environment, generally we do not
use them and can disable the setting at compilation time(through some build
flags).

Therefore, for your scenario, you can consider the following options:

1. Build a product version of the enterprise library which disable the
instrumentation in the build options(some conditional compile variables).

2. Instead of using the "Install Services" bat file, use the
InstallUtil.exe utility(shipped with .net framework 1.1 rather than vs
2003) to register the instrumentation service against each enterprise
library assembly (you will use in your application).

Here is a blog article from the product manager of enterprise library
(pattern&practi ce team) which has provide a complete description on the
instrumentation services of Enterprise library 2005(.net 1.1) and how to
disable it in custom build or install the service without VS 2003 IDE:

#Instrumentatio n in Enterprise Library
http://blogs.msdn.com/tomholl/archiv...18/376187.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 12 '06 #6
Hello Mukesh,

Have you got any progress on the enterprise library instrumentation issue
or does the information in my last reply helps some? Please feel free to
post here if there is anything else we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 14 '06 #7

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

Similar topics

1
1853
by: Özgür Aytekin | last post by:
Hello NG Is DAAB 3.1 the offical replacement of Microsoft Data Access Application Block 2.0? DAAB 3.1 download: http://www.gotdotnet.com/Community/Workspaces/viewuploads.aspx?id=c20d12b0-af52-402b-9b7c-aaeb21d1f431 We'll use for our online stock exchange game (www.borsagame.com) a data access application block with source code. But, we are not sure, which one is better. DAAB 3.1 or MS Data Access Application Block 2.0?
4
1910
by: ad | last post by:
I want to develop DataBase application. How about Data Access Application Block? Is it useful?
0
2231
by: ad | last post by:
I have used Data Application Access Block2 in my web application. Now I download the Library Data Access Application Block. and read the document. May be I am stupid, I can't migrate it to Enterprise Library Data Access Application Block. The code below is the Data Application Access Block 2, How can I modified them? //---------------using Data Application Access Block
1
1933
by: EO | last post by:
I am trying to use the MSFT data access application block on 3 machines. Machine 1: Sandbox environment; I installed the application block with the msi. The Sqlhelper class compiles & runs great! (Also the SqlhelperParameterCache class; I'll refer to them collectively as the SqlHelper class.) I'm using unmodified application block code in all cases. Machine 2: Development environment, different project
0
1115
by: Fernando Lopes | last post by:
Hi there. I'm using the DAAB in my app. So, if I need to fill a dataset, using a SQL Server database, I use the following code helper.FillDataset(conn, "GetCustomersByID", ds, new string { "Customers" }, new string { "ALFKI" }); Parameters: conn = Connection
3
1905
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
3
1732
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
1
1303
by: Mukesh | last post by:
Hi I have Microsoft Enterprise Library 2005 installed on my local system. I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql Server 2000. I am developing a web application in which i am using data Access Application Block for data access. I have a remote web n data server with asp.net 1.1 support
3
1820
by: Mukesh | last post by:
Hi all As per my earlier conversation with Ciaran (thx for reply) I have installed the MS APplication block on the server , when i ran Build Enterprise Library file and Install Services from (batch files ) programme files menu it was asking for visual studio 2003 , I have only .net framework on the server how can i use the MS application block data access library on my server plz help... Mukesh Agarwal
0
9796
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9643
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10545
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7755
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5624
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.