473,507 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Access Block - Pattern & Practice

Hi.
I am trying to use Data Access Application block provided by Microfost in
Enterprise Library June 2005. The application I am devleoping is in ASP.NET.
When I run my application and load up the aspx page first time, the
application works fine. Howeve, When I try to run it second time the aspx
page doesn't load and hangs up. I stepped through the code while running the
application second time and found that the code in the Page load event runs
from start to finish howerver the page wouldn't load.

Any suggestions as to how to resolve this issue will be greatly appreciated.

tshah.
Mar 15 '06 #1
3 1546
Tshah try this:-
InstallUtil.exe against the Enterprise Library dll's in my project \bin\
directory.

The InstallUtil.exe is located in the Windows/Microsoft.NET framework
directory. Usually, this is located in:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
where the version is your latest version.

Open a DOS prompt, and navigate to the application's \bin\ directory, for
example:
C:\Inetpub\wwwroot\MyWebApp1\bin\

Run the InstallUtil.exe against the Enterprise Library dll's in that \bin\
directory. For example:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe
D:\Inetpub\wwwroot\MyWebApp1\bin\Microsoft.Practic es.EnterpriseLibrary.Data.
dll

NOTE: It might be possible that the InstallUtil only needs to be run against
one of the dll's. Afterall, the problem is that the app can't write to the
registry, not that it can't find the dll's. But I don't know this for sure,
because I ran it for all three of my Enterprise Library dll's right off the
bat.

For more information on the InstallUtil.exe, obviously, MSDN has many
articles about it:
http://www.google.com/search?hl=en&q...+InstallUtil.e
xe
Hope that would solve your problem
** This did the trick on some PC's
Patrick

"tshah" <ts***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi.
I am trying to use Data Access Application block provided by Microfost in
Enterprise Library June 2005. The application I am devleoping is in ASP.NET. When I run my application and load up the aspx page first time, the
application works fine. Howeve, When I try to run it second time the aspx
page doesn't load and hangs up. I stepped through the code while running the application second time and found that the code in the Page load event runs from start to finish howerver the page wouldn't load.

Any suggestions as to how to resolve this issue will be greatly appreciated.
tshah.

Mar 15 '06 #2
Patrick,

Thanks for your response.
I tried on two different machines what you said but it still doesn't work.
Second time when I load the aspx page, I have kill the aspnet_wp.exe process
in order to load up the page.

tshah.

"Patrick.O.Ige" wrote:
Tshah try this:-
InstallUtil.exe against the Enterprise Library dll's in my project \bin\
directory.

The InstallUtil.exe is located in the Windows/Microsoft.NET framework
directory. Usually, this is located in:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
where the version is your latest version.

Open a DOS prompt, and navigate to the application's \bin\ directory, for
example:
C:\Inetpub\wwwroot\MyWebApp1\bin\

Run the InstallUtil.exe against the Enterprise Library dll's in that \bin\
directory. For example:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe
D:\Inetpub\wwwroot\MyWebApp1\bin\Microsoft.Practic es.EnterpriseLibrary.Data.
dll

NOTE: It might be possible that the InstallUtil only needs to be run against
one of the dll's. Afterall, the problem is that the app can't write to the
registry, not that it can't find the dll's. But I don't know this for sure,
because I ran it for all three of my Enterprise Library dll's right off the
bat.

For more information on the InstallUtil.exe, obviously, MSDN has many
articles about it:
http://www.google.com/search?hl=en&q...+InstallUtil.e
xe
Hope that would solve your problem
** This did the trick on some PC's
Patrick

"tshah" <ts***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi.
I am trying to use Data Access Application block provided by Microfost in
Enterprise Library June 2005. The application I am devleoping is in

ASP.NET.
When I run my application and load up the aspx page first time, the
application works fine. Howeve, When I try to run it second time the aspx
page doesn't load and hangs up. I stepped through the code while running

the
application second time and found that the code in the Page load event

runs
from start to finish howerver the page wouldn't load.

Any suggestions as to how to resolve this issue will be greatly

appreciated.

tshah.


Mar 20 '06 #3
Patrick,

Thanks for your reply.

I tried on two different machines what you said but the aspx page still
hangs. I responded to your respones before also but it is not showing up in
the thread pane. I am new to the newsgroup so please forgive my ignorance as
to how to use this newsgroup.

Thanks again for your time.

tshah.

"Patrick.O.Ige" wrote:
Tshah try this:-
InstallUtil.exe against the Enterprise Library dll's in my project \bin\
directory.

The InstallUtil.exe is located in the Windows/Microsoft.NET framework
directory. Usually, this is located in:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
where the version is your latest version.

Open a DOS prompt, and navigate to the application's \bin\ directory, for
example:
C:\Inetpub\wwwroot\MyWebApp1\bin\

Run the InstallUtil.exe against the Enterprise Library dll's in that \bin\
directory. For example:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Insta llUtil.exe
D:\Inetpub\wwwroot\MyWebApp1\bin\Microsoft.Practic es.EnterpriseLibrary.Data.
dll

NOTE: It might be possible that the InstallUtil only needs to be run against
one of the dll's. Afterall, the problem is that the app can't write to the
registry, not that it can't find the dll's. But I don't know this for sure,
because I ran it for all three of my Enterprise Library dll's right off the
bat.

For more information on the InstallUtil.exe, obviously, MSDN has many
articles about it:
http://www.google.com/search?hl=en&q...+InstallUtil.e
xe
Hope that would solve your problem
** This did the trick on some PC's
Patrick

"tshah" <ts***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
Hi.
I am trying to use Data Access Application block provided by Microfost in
Enterprise Library June 2005. The application I am devleoping is in

ASP.NET.
When I run my application and load up the aspx page first time, the
application works fine. Howeve, When I try to run it second time the aspx
page doesn't load and hangs up. I stepped through the code while running

the
application second time and found that the code in the Page load event

runs
from start to finish howerver the page wouldn't load.

Any suggestions as to how to resolve this issue will be greatly

appreciated.

tshah.


Mar 20 '06 #4

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

Similar topics

5
2963
by: cksj | last post by:
I'm working on a VB.Net DLL project. It has 6 classes. One of the classes has the properties for the database path, database name and server name. The purpose of this class is so that the DLL can...
0
5365
by: sedefo | last post by:
I ran into this Microsoft Patterns & Practices Enterprise Library while i was researching how i can write a database independent data access layer. In my company we already use Data Access...
2
3640
by: Joe Bloggs | last post by:
I have a general question on best practice regarding data access. I have the code below, a static method defined in a class that I use in a data layer dll. The method takes a string as its...
2
2199
by: headware | last post by:
I'm relatively new to ASP.NET and ADO.NET, but I have a basic design question regarding the use of web services and APS.NET applications. Right now we have an application that uses web services to...
8
3760
by: Art | last post by:
Hi folks, I'm writing a traditional desktop app using VB.NET and am stumbling over what seems like a very basic question: My app does not need to be connected to a server or another computer....
3
3482
by: Dave | last post by:
I trying to determine the best pattern for designing my business and data layers... Can the instance of the business object eventually cause memory leaks in Example 1? If your business class...
30
3354
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
3
2040
by: TarTar | last post by:
Hello, I need to feed UI controls (DataList, GridView etc) using XML or SQL Server. What would be a "good practice" to access these two types of data sources? Is ObjectDataSource a good choice?...
162
10065
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you...
0
7109
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...
0
7372
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...
1
7029
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
7481
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...
1
5039
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.