Required permission to run front end app - '...use the Microsoft .NET Framework Configuration tool'

(Note: If someone submits a solution please alert me on maraizuamadi@outlook.com)

I installed MS SQL server 2012 on Windows 10 OS. It is running from the backend perfectly. But my frontend app displays the following message each time I try to login:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
   at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
   at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
   at System.Diagnostics.EventLog.VerifyAndCreateSource(String sourceName, String currentMachineName)
   at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
   at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID)
   at NepamsII.SystemFramework.ApplicationLog.WriteErrorToLog(Exception e, Int32 eventID)
   at NepamsII.BusinessFacade.SecuritySystem.AuthenticateUser(String userName, String password)
   at NepamsII.UI.Login.Ok_Click(Object sender, EventArgs e)
   at NepamsII.UI.Login.Password_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The Zone of the assembly that failed was:
MyComputer
************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
UI
    Assembly Version: 1.0.3856.24033
    Win32 Version: 1.0.3856.24033
    CodeBase: file:///C:/Program%20Files%20(x86)/RCM/NEPAMS/UI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
NepamsII.BusinessFacade
    Assembly Version: 1.0.3800.24255
    Win32 Version: 1.0.3800.24255
    CodeBase: file:///C:/Program%20Files%20(x86)/RCM/NEPAMS/NepamsII.BusinessFacade.DLL
----------------------------------------
NepamsII.SystemFramework
    Assembly Version: 1.0.3800.24253
    Win32 Version: 1.0.3800.24253
    CodeBase: file:///C:/Program%20Files%20(x86)/RCM/NEPAMS/NepamsII.SystemFramework.DLL
----------------------------------------
NepamsII.Common
    Assembly Version: 1.0.3800.24254
    Win32 Version: 1.0.3800.24254
    CodeBase: file:///C:/Program%20Files%20(x86)/RCM/NEPAMS/NepamsII.Common.DLL
----------------------------------------
Microsoft.ApplicationBlocks.Data
    Assembly Version: 1.0.3800.24253
    Win32 Version: 1.0.3800.24253
    CodeBase: file:///C:/Program%20Files%20(x86)/RCM/NEPAMS/Microsoft.ApplicationBlocks.Data.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8662 (QFE.050727-8600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
---------------------------------------- ************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled. For example: <configuration>
    <system.windows.forms jitDebugging="true" />
</configuration> When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


August 29th, 2015 7:44am

To give Network Service read permission on the EventLog/Security key (as suggested by Firenzi and royrules22) follow instructions from http://geekswithblogs.net/timh/archive/2005/10/05/56029.aspx

  1. Open the Registry Editor:
    1. Select Start then Run
    2. Enter regedt32 or regedit
  2. Navigate/expand to the following key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security

  3. Right click on this entry and select Permissions

  4. Add the Network Service user

  5. Give it Read permission

Free Windows Admin Tool Kit Click here and download it now
August 29th, 2015 3:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics