By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 879 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

Enterprise Library deployment problem. Why needs to InstallUtil DLLs to the deployment server? If not, Registry Error whould shown.

P: n/a
When i deploy Enterprise library with my application ,i used XCOPY to
deploy it into my test server. But when application runs, shown some error
related registry. (But actually I haven't any method or component to wrote

After I used "InstallUtil" to registry Enterprise Library (those DLLs)
to the deployment server, the application runs smoothly.

Now I wonder why i need to registry those Enterprise Library DLLs into
the server? and XCOPY not?

---The following is the register code-----
@ECHO Installing Services for the Common Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.Common.dll installutil %1

@if errorlevel 1 goto :error

@ECHO Installing Services for the Caching Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.Caching.dll installutil %1

@if errorlevel 1 goto :error
@ECHO Installing Services for the ConfigurationApplication Block

if Exist Microsoft.Practices.EnterpriseLibrary.Configuratio n.dll installutil
%1 Microsoft.Practices.EnterpriseLibrary.Configuratio n.dll

@if errorlevel 1 goto :error

@ECHO Installing Services for the Cryptography Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.dll
installutil %1
Microsoft.Practices.EnterpriseLibrary.Security.Cry ptography.dll

@if errorlevel 1 goto :error

@ECHO Installing Services for the Data Access Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.Data.dll installutil %1

@if errorlevel 1 goto :error

@ECHO Installing Services for the Exception Handling Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll
installutil %1 Microsoft.Practices.EnterpriseLibrary.ExceptionHan dling.dll

@if errorlevel 1 goto :error

@ECHO Installing Services for the Logging and Instrumentation Application

if Exist Microsoft.Practices.EnterpriseLibrary.Logging.dll installutil %1

@if errorlevel 1 goto :error
@ECHO Installing Services for the Security Application Block

if Exist Microsoft.Practices.EnterpriseLibrary.Security.dll installutil %1

@if errorlevel 1 goto :error


@ECHO ----------------------------------------

@ECHO InstallServices.bat Completed

@ECHO ----------------------------------------


Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.