Production Deployments of Patterns & Practices Enterprise Libraries#

Here is a tip for anyone out there searching to deal with errors associated with Patterns & Practices Enterprise Library installservices.bat failures. If you are getting tonnes of errors like the following in you event log after attempting to deploy to your test or production server:

Enterprise Library Instrumentation
Failed to fire the WMI event 'DataConnectionOpenedEvent'. Exception: System.Exception: This schema for this assembly has not been registered with WMI.

Basically this caused by the annoying script installservices.bat requiring VS.NET installed on your production machine, it doesn't take much to notice what is wrong with that statement does it. Anyway, after reading on Tom Hollanders P&P evangalist blog you really only need access too installutil to register the common classes with WMI. The bat script below should solve your problems, for this to work you need to copy all the compiled assemblies from you development “C:\Program Files\Microsoft Enterprise Library\bin“ to your production\test servers.

http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspx

Also check out some good pointers on Jans blog http://weblogs.asp.net/jan/archive/2005/02/23/379089.aspx

Finally someone has actually found something useful on my blog =) But have also pointed out some issues, in this batch file you will need to update the base directory to C:\Windows for XP and C:\WINNT for Win2K3. Cheers Hilton Giesenow

cd C:\WINNT\Microsoft.NET\Framework\v1.1.4322

installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Common.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Caching.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Configuration.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Data.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Logging.dll"
installutil "C:\Program Files\Microsoft Enterprise Library\bin\Microsoft.Practices.EnterpriseLibrary.Security.dll"

PAUSE

4/11/2005 12:50:00 PM (New Zealand Standard Time, UTC+12:00) #     | 

 

All content © 2012, Nikolai Blackie
On this page
This site
Calendar
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 1.8.5223.2

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: