SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software Kodyaz Development Resources
Development resources, articles, tutorials, samples, codes and tools for .Net, SQL Server, Windows, Windows Phone, SAP and ABAP, like SAP UI5, Screen Personas, etc.

Tuba



"System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security" and "EnterpriseLibrary The Zone of the assembly that failed was: Mycomputer"

These errors both occured in my new project that uses enterprise library logging.

First of all thanks to:http://community.codesmithtools.com/forums/t/2126.aspx

PROBLEM Windows XP: "System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security."

SOLUTION: Add the .NET user, "ASPNET", to the "ADMINISTRATORS" group.

My second thanks goes to: http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/07/27/WCF-Test-Client-svcutil.aspx

Disable strong name signing for svcutil.exe by opening a Visual Studio Command Prompt. At the command prompt run: sn -Vr "<program files>\Microsoft SDKs\Windows\v6.0A\Bin\SvcUtil.exe"  (replace <program files> with your program files path - ex: c:\Program Files)

God knows, we would have to be better developers if google was not invented :P

 

Published Thursday, October 04, 2007 7:56 PM

Comments

 

Deniz said:

Just in case someone stumbles upon this like I did while searching for this Permission-Error.
I got this error using a Windows-Forms-Application because the customer had linked a shortcut to my Application-Exe on his machine with "\\COMPUTERNAME\C$\Application.exe" instead of "C:\Application.exe." - This caused the failure of the System.Security.Permission because of the untrusted intranet use.

See http://www.duelec.de/blog/?p=236 for more Information.
January 26, 2009 7:34 AM
Anonymous comments are disabled
This Blog
Syndication
Copyright © 2004 - 2017 Eralper YILMAZ. All rights reserved.
Community Server by Telligent Systems