473,396 Members | 2,140 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,396 software developers and data experts.

Data Acess aplication block __How to use it on server without MicrosoftVisual Studio 2003

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*********@gmail.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.EnterpriseLibrary.Data.I nstrumentation.DataConnectionFailedEvent"
>threw an exception.

ex.Source was

.............Microsoft.Practices.EnterpriseLibrar y.Data

ex.trace was

at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataConnectionFailedEvent.Fire(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataInstrumentationFacade.ConnectionFaile d(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection() at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandWrapper
command) at property.m4.Button2_Click(Object sender, EventArgs e)
>>

Plz help me why this is happening...........

Mukesh Kumar agarwal
Delhi
India

Sep 11 '06 #1
3 1790
The build file calls devenv.exe, which is Visual Studio 2003. You best
option now is a command line compilation of the library. Follow the docs on
the csc.exe (C#) or vbc.exe (VB.NET) compilers.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
"Mukesh" <ef*****@newsgroups.nospamwrote in message
news:45**************@newsgroups.nospam...
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*********@gmail.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.EnterpriseLibrary.Data.In strumentation.DataConnectionFailedEvent"
>>>>>threw an exception.

ex.Source was

.............Microsoft.Practices.EnterpriseLibrary .Data

ex.trace was

at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataConnectionFailedEvent.Fire(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataInstrumentationFacade.ConnectionFaile d(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection() at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandWrapper
command) at property.m4.Button2_Click(Object sender, EventArgs e)
>

Plz help me why this is happening...........

Mukesh Kumar agarwal
Delhi
India


Sep 11 '06 #2
I didnt mean install the enterprise library with the MSI file.
I mean't for each dll in the EL you use:
call InstallUtil.exe passing in the name of the dll. This will invoke the
custominstaller classes inside the dll's to register them selves in teh event
log and things.

Ciaran O'Donnell

"Mukesh" wrote:
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*********@gmail.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.EnterpriseLibrary.Data.I nstrumentation.DataConnectionFailedEvent"
>>>>>threw an exception.
>>
>ex.Source was
>>
>.............Microsoft.Practices.EnterpriseLibrar y.Data
>>
>ex.trace was
>>
>at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataConnectionFailedEvent.Fire(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataInstrumentationFacade.ConnectionFaile d(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection() at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandWrapper
command) at property.m4.Button2_Click(Object sender, EventArgs e)
>>
>>
>Plz help me why this is happening...........
>>
>Mukesh Kumar agarwal
>Delhi
>India
>>
>>
>>
>>
>>
>>
Sep 11 '06 #3

Install the .msi on a development machine with VS2003.

Look at the .bat files.

You need to not find the compile code (csc or dev.exe), but rather the code
that installs the services.

You need the rights to install services , especially on a Server Machine.

Make sure the framework (free download) is installed on the server also.

"Mukesh" <ef*****@newsgroups.nospamwrote in message
news:45**************@newsgroups.nospam...
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*********@gmail.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.EnterpriseLibrary.Data.I nstrumentation.DataConnect
ionFailedEvent"
>>>>>threw an exception.
>>
>ex.Source was
>>
>.............Microsoft.Practices.EnterpriseLibrar y.Data
>>
>ex.trace was
>>
>at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataConnectionFai
ledEvent.Fire(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Instrum entation.DataInstrumentati
onFacade.ConnectionFailed(String
connectionString) at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.OpenConnection() at
Microsoft.Practices.EnterpriseLibrary.Data.Databas e.ExecuteReader(DBCommandW
rapper
command) at property.m4.Button2_Click(Object sender, EventArgs e)
>>
>>
>Plz help me why this is happening...........
>>
>Mukesh Kumar agarwal
>Delhi
>India
>>
>>
>>
>>
>>
>>

Sep 11 '06 #4

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

Similar topics

7
by: Marek | last post by:
Whe i'm running my .net aplication from share on other server, i've got an error. Can someone explain what i must do? Unhandle exception:System.Security.SecurityException: Permission demand type...
2
by: vidya | last post by:
Hi, I wrote a stored procdure in SQL Server which calculates some metrics. This procedure always returns only one row with 11 columns of integer values. I ran it in SQL Server Query Analyzer...
4
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
1
by: gerr | last post by:
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer XP Pro/IIS 5.1. Everything worked fine prior to installing...
6
by: Jonathan Crawford | last post by:
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473 Hi I have installed the enterprise library on a development machine and created a project on our webserver. When...
4
by: Thomas Eichner | last post by:
Hi, does anybody know a public website which offers a service that displays all data send by a browser (or an app calling the website), especially HTTP GET and POST data, browser data etc.? I...
6
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...
3
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...
3
by: SAL | last post by:
Hi, I have Microsoft Enterprise Library 2005 installed on my local system. I'm developing in C# using Visual Studio 2003 IDE with framework 1.1. I am automating a process that will use a DLL...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.