An exception occurs when an application event log is created during WebService call. An exception occurs in webservice.
I recently upgraded my old project. net1.1 to. net4.5. When I upgraded my WebService, an exception occurred in the content.
1 System. Web. Services. Protocols. SoapException: the server cannot process the request. ---> System. security. securityException: The event source ExceptionManagerInternalException does not exist and cannot be created with the current permissions. ---> System. security. securityException: the source is not found, but some or all Event Logs cannot be searched. Inaccessible logs: Security. 2 in System. diagnostics. eventLog. findSourceRegistration (String source, String machineName, Boolean readOnly, Boolean wantToCreate) 3 in System. diagnostics. eventLog. sourceExists (String source, String machineName, Boolean wantToCreate) 4 in System. diagnostics. eventLog. sourceExists (String source) 5 in Microsoft. applicationBlocks. predictionmanagement. defaultPublisher. verifyValidSource () Location d: \ UJS2.0 \ PrceduLMS \ SystemFramwork \ Microsoft. applicationBlocks. exceptionManagement \ ExceptionManager. cs: row number 659 6 --- end of internal exception stack trace --- 7 at Microsoft. applicationBlocks. predictionmanagement. defaultPublisher. verifyValidSource () Location d: \ UJS2.0 \ PrceduLMS \ SystemFramwork \ Microsoft. applicationBlocks. exceptionManagement \ ExceptionManager. cs: row number 666 8 in Microsoft. applicationBlocks. predictionmanagement. defaultPublisher. publish (Exception exception, NameValueCollection additionalInfo, NameValueCollection configSettings) Location d: \ UJS2.0 \ PrceduLMS \ SystemFramwork \ Microsoft. applicationBlocks. exceptionManagement \ ExceptionManager. cs: row number 535 9 in Microsoft. applicationBlocks. predictionmanagement. predictionmanager. publishInternalException (Exception exception, NameValueCollection additionalInfo) Location d: \ UJS2.0 \ PrceduLMS \ SystemFramwork \ Microsoft. applicationBlocks. exceptionManagement \ ExceptionManager. cs: the row number 30110 is in Microsoft. applicationBlocks. predictionmanagement. predictionmanager. publish (Exception exception, NameValueCollection additionalInfo) Location d: \ UJS2.0 \ PrceduLMS \ SystemFramwork \ Microsoft. applicationBlocks. exceptionManagement \ ExceptionManager. cs: row number 22911 in Prcedu. solutions. dedu. LMS. systemFramwork. LMSAppExceptionAdmin. predictionmanager. publish (Exception ex, NameValueCollection addInfo) 12 in Prcedu. solutions. dedu. LMS. DEEWebService. ADModify. modifyADPassword (String strUserName, String strPassword, String & strMessage) 13 --- end of an internal exception stack trace ---
After viewing the stack trace information, it is found that this problem occurs in the System. Diagnostics. EventLog class, which is the event log operation class of the local computer. This script can be correctly executed only with the administrator privilege.
Solution: in the Web. Config file of the website, add the node and value in <system. web> </system. web>.
<Identity impersonate = "true" userName = "Administrator Account" password = "administrator password"/>