Thursday 11 August, 2005 (.Net | Bugs | Fixes)
I have been experiencing a lot of weird problems when running the Data Block from a Web service on a Windows 2003 server. Googling around the web a bit revealed that I am not the only person experience these exact problems. My main problem has been with the following message:
System.InvalidOperationException: Cannot open log for source 'Enterprise Library Data Service'.You may not have write access.
I have tried all the proposed solutions with varying degrees of success most of the time the fix will work for a while or for a specific testing scenario but will stop working when the source changes. I think our problem is worsened by the fact that we are running everything through Visual Studio 2005 and Team Build with automated tests. Maybe the proposed solutions (installutil and registry permissions) would work when we go into production but I just don't feel confident that the system will run smoothly. As a last resort I have removed all the instrumentation stuff and recompiled it.
For anyone else who is searching for a resolution these are links to the sources I have used: Tom Hollands blog about instrumentation in Enterprise Library:http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspxInstall util fix:http://codebetter.com/blogs/eric.wise/archive/2005/03/21/60163.aspxGive ASPNET user write access to the Enterprise Library logs:http://objectsharp.com/blogs/bruce/archive/2003/11/03/180.aspxRemove instrumentation:http://dotnetjunkies.com/WebLog/sskokku/archive/2005/03/25/61376.aspx
The fixes didn't work for us in the automated build, perhaps it would work if i added a task to the MSBuild in Team Build that ran the installutil script after each compilation of the web site and set the right registry permissions but for now I am just going to go with disabled instrumentation. We aren't planning on using it but I know it could be good to have in the future!
« My first entry! | Latest | .Net 2 - DataTable internal index is corru... »
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Sign In
.Net (25) About (1) Agile (2) AJAX (1) Architecture (4) BizTalk (4) Blogging (12) Bugs (11) Business (2) dasBlog (9) EDA (1) Fixes (12) FlexWiki (1) Games (1) Geek (4) GTD (2) Humor (4) Interviews (1) Java (2) Office (1) Ramblings (8) Reviews (7) Scrum (2) Security (1) SharePoint (6) SOA (4) Speaking (2) Team System (10) Tech Ed 2008 (1) TechEd 2006 (5) Tips (4) Vista (1) Visual Studio (2) Web (11) Web2.0 (1) XP (1)