An exception occurs when an application event log is created during WebService call. An exception occurs in webservice.

Source: Internet
Author: User

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"/>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.