Deploy asp.net enterprise library application

B

bjhogan

Hi,

I have built an c# asp.net application on my laptop, it uses the
Enterprise Library blocks -
Data Access Application Block,
Configuration Application Block.

I now want to deploy my application on a server. It does not have the
Enterprise Library installed.

I have the following files referenced in my project -
Microsoft.Practices.EnterpriseLibrary.Common.dll,
Microsoft.Practices.EnterpriseLibrary.Configuration.dll,
Microsoft.Practices.EnterpriseLibrary.Data.dll

The reference for each points to C:\Program Files\Microsoft Enterprise
Library June 2005\bin\...
I have the "Copy Local" property set to true.

Each of the above files appear in the bin directory of my project.


The question :
To deploy my project to the server (which does not have the enterprise
library) can I :

1. just copy the bin directory of my project and .aspx files to the
server.

2. Do I _HAVE TO_ install and build the enterprise library on the
server.

3. Some other option?

Thanks,

Bryan
 
M

Manohar Kamath

Bryan,

Copying the files to the destination should work -- just like any other .NET
application where the assemblies are private. If you have access to the
server, and have many deployments of projects involving Ent Lib, then an
install of Ent Lib on the destination would be appropriate.
 
B

bjhogan

Hi Manohar,

Thanks for the reply. After deployment I got the following error -
System.Security.SecurityException: Requested registry access is not
allowed.

Fixed it by running installutil.exe on each of the Enterprise Library
dlls.

Not a great solution, but this is what has worked for most other
people.

Bryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top