473,322 Members | 1,345 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,322 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 1262
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...
3
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 ...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.