FORUMS

c360 Forums
 Home        Members    Calendar    Who's On

Welcome Guest ( Login | Register )
      



Error in Event LogExpand / Collapse
Message
Posted 2/12/2007 4:29:56 PMPost #1127
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hello,

After installing the c360 Toolkit on our CRM server the following two messages are logged to the Application Event Log quite often. The SDK itself seems to work (we are using the Grid Control primarily). There are no Exceptions visible to the user, however we have some performance issues and unexpected terminations of the app pool used for the c360 SDK. (See message at the end of the post)
The error occurs every 1 to 5 minutes, shortly followed by the warning.

Server is Windows Server 2003, The App Pool uses the Network Service account and runs under .NET 2.0.

Is this a known problem?
Any ideas how to solve this.

Thanks in advance.
Philipp Uihlein


Warning and Error in Application Event Log:

Event Type: Warning
Event Source: Application Error
Event Category: None
Event ID: 0
Date:  12.02.2007
Time:  20:22:50
User:  N/A
Computer: xxxxxx
Description:
The description for Event ID ( 0 ) in Source ( Application Error ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Problem while trying to write to Application/c360.Logging: System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
   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)
   at c360.Toolkit.Utility.Helper.ᜀ(EventLogEntryType A_0, String A_1, String A_2, String A_3)
The Zone of the assembly that failed was:
MyComputer.

Event Type: Error
Event Source: Application Error
Event Category: None
Event ID: 0
Date:  12.02.2007
Time:  20:22:50
User:  N/A
Computer: xxxxxx
Description:
The description for Event ID ( 0 ) in Source ( Application Error ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Error while writing a log entry to log c360: ******[ BEGIN LOG RECORD ]*******

            Message: xxxxxx
          Log Level: 1100: SEVERE
          Timestamp: 2/12/2007 8:22:50 PM

       Source Class: c360.Toolkit.MsCrm.Controls.Grid
      Source Method: ᜀ
    Source Assembly: c360.Toolkit.UI, Version=3.0.7.1025, Culture=neutral, PublicKeyToken=null
               Code:

******[ EXCEPTION ]*******

Exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at c360.Toolkit.Reports.ReportingService.ListChildren(String Item, Boolean Recursive)
   at c360.Toolkit.Reports.ReportsService.ᜀ()
   at c360.Toolkit.Reports.ReportsService.ᜀ(String A_0)
   at c360.Toolkit.Reports.ReportsService.ListEntityReports(String entityType)
   at c360.Toolkit.MsCrm.Controls.Grid.ᜀ(HtmlTextWriter A_0)

******[ EXCEPTION ]*******

Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

******[ CONTEXT DATA ]*******

   Application Name: c360 Toolkit Controls
     Application ID:
            User ID:
     Transaction Id:
           Sequence: 189
       Host IP/Name: xxxxxx
      Instance Name: /LM/W3SVC/1/Root/vDir-1-128157703928443096
         Process ID: 4696
       Process Name: c:\windows\system32\inetsrv\w3wp.exe
   Win 32 Thread ID: 3124
          Thread ID: 3124
Thread Authentication type: Negotiate
    Thread Identity: DOMAIN\USER
Process Authentication type: Kerberos
  Process Identity: DOMAIN\USER
  Screen Resolution: 1280x768
  Web User Identity: DOMAIN\USER
   Is Authenticated: True
Server Machine Name: xxxxxx
  Request Timestamp: 2/12/2007 8:22:48 PM
        HTTP Method: GET
                URL: /vDir/SomeFile.aspx?oId={4A7F73F6-CCBA-DB11-8F81-005056A2135F}
      User Hostname: 53.77.31.11
  Secure Connection: True

*********** HTTP Headers *************

  Connection: Keep-Alive
  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
  Accept-Encoding: gzip, deflate
  Accept-Language: de
  Authorization: Negotiate YIITCwYGKwYBBQUCo  Host: xxxx.yyy.com
  Referer: https://xxxx.yyy.com/sfa/accts/edit.aspx?id={4A7F73F6-CCBA-DB11-8F81-005056A2135F}
  User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; dcdev001; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

**************************************

   Application Path: /vDir
            Browser: System.Web.Mobile.MobileCapabilities
   Content Encoding: utf-8
     Content Length: 0
       Content Type:
Execution File Path: /vDir/ xxxxxx.aspx

*********** HTTP Form Data *************


***********************************

*****[ END LOG RECORD ]*****

System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
   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 source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
   at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type)
   at c360.Toolkit.Logging.Handlers.EventLogHandler.ᜀ(LogRecord A_0)
The Zone of the assembly that failed was:
MyComputer.

Warning in System Event Log:

Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 1009
Date:  12.02.2007
Time:  09:39:38
User:  N/A
Computer: xxxxxx
Description:
A process serving application pool 'C360AppPool' terminated unexpectedly. The process id was '2124'. The process exit code was '0xc0000005'.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Posted 2/12/2007 6:36:51 PMPost #1130
 

c360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expertc360 Product Expert
PhilippU (2/12/2007)
Hello,

After installing the c360 Toolkit on our CRM server the following two messages are logged to the Application Event Log quite often. The SDK itself seems to work (we are using the Grid Control primarily). There are no Exceptions visible to the user, however we have some performance issues and unexpected terminations of the app pool used for the c360 SDK. (See message at the end of the post)
The error occurs every 1 to 5 minutes, shortly followed by the warning.

Server is Windows Server 2003, The App Pool uses the Network Service account and runs under .NET 2.0.

Is this a known problem?
Any ideas how to solve this.

Thanks in advance.
Philipp Uihlein

If I recall correctly I had a similar problem with a "Requested registry access is not allowed." exception.
I think it has to do with c360 SDK trying to add an Eventlog source for the event log and that the user (in your case the Network Service) does not have the permission to do so...
It has to do with the access permissions for some EventLog entries...

Not sure if this is the case but support should be able to help you.
I have had some email conversation with support about this.
They should be able to help you.
(Anyone from support@c360.com reading this? Jeremie?)

If this is also the cause of the app pool "crashing", I do not not now.
Posted 2/13/2007 7:03:10 PMPost #1136
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
Problem while trying to write to Application/c360.Logging: System.Security.SecurityException: Requested registry access is not allowed.

Error while writing a log entry to log c360:

This problem is related to the fact that the logged in user does not have the permissions to write an event to an event log and/or create an event "source". In order to create a new event "source", users need to be able to write to the registry and you probably have restricted access to the registry.

Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

This problem indicates that our SDK is trying to connect to a web service but the URL is incorrect and the expected web service is not present at the configured address. I also notice the following information in the error's stack trace:

   at c360.Toolkit.Reports.ReportsService.ListEntityReports(String entityType)
   at c360.Toolkit.MsCrm.Controls.Grid.ᜀ(HtmlTextWriter A_0)

This tells me that this error occurs when we try to retrieve the list of SRS reports that are configured for an entity. Our SDK is designed to gracefully handle this kind of problem by simply removing the "reports" button instead of displaying an error message to the user. This issue can be easilly fixed by correcting the configured URL for your reporting server. The key that need to me modified is documented in the training guide in the "Post-Installation Configuration" section.

 

Posted 2/14/2007 5:35:16 AMPost #1138
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Jeremie,

thanks for your help so far.

I have now changed the report parameter url in the config file and changed the app pool to use a local administrator account.

We now get the errors listed below. There still seem to be problems with the event source.

I actually don't want to use the administrator account on our production system. What are the recommendations for the app pool identity to ensure that all permissions are available?

Regards
Philipp

The first two are warnings:

Event Type: Warning
Event Source: Application Error
Event Category: None
Event ID: 0
Date:  14.02.2007
Time:  11:15:10
User:  N/A
Computer: DANUBECRM
Description:
The description for Event ID ( 0 ) in Source ( Application Error ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Logging error occured while accessing HttpContext or HttpRequest  Exception Message [Cannot get the query string.] Exception StackTrace [   at System.Web.Hosting.ISAPIWorkerRequest.GetQueryString()
   at System.Web.Hosting.ISAPIWorkerRequest.GetRawUrl()
   at System.Web.HttpRequest.get_RawUrl()
   at c360.Toolkit.Logging.Formatters.TextLogRecordFormatter.ᜀ(HttpRequest A_0)
   at c360.Toolkit.Logging.Formatters.TextLogRecordFormatter.ᜀ(LogRecord A_0)].

Event Type: Warning
Event Source: Application Error
Event Category: None
Event ID: 0
Date:  14.02.2007
Time:  11:15:10
User:  N/A
Computer: DANUBECRM
Description:
The description for Event ID ( 0 ) in Source ( Application Error ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Problem while trying to write to c360/c360.Logging: System.ArgumentException: Log c360 has already been registered as a source on the local computer.
   at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
   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)
   at c360.Toolkit.Utility.Helper.ᜀ(EventLogEntryType A_0, String A_1, String A_2, String A_3).

The third on is an error:

Event Type: Error
Event Source: c360
Event Category: None
Event ID: 0
Date:  14.02.2007
Time:  11:15:10
User:  N/A
Computer: xxxxx
Description:
******[ BEGIN LOG RECORD ]*******

            Message: xxxxx
          Log Level: 1100: SEVERE
          Timestamp: 14.02.2007 11:15:10

       Source Class: c360.Toolkit.MsCrm.Controls.Grid
      Source Method: ᜀ
    Source Assembly: c360.Toolkit.UI, Version=3.0.7.1025, Culture=neutral, PublicKeyToken=null
               Code:

******[ EXCEPTION ]*******

Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at c360.Toolkit.MsCrm.Controls.Grid.ᜀ(HtmlTextWriter A_0)

******[ CONTEXT DATA ]*******

   Application Name: c360 Toolkit Controls
     Application ID:
            User ID:
     Transaction Id:
           Sequence: 2
       Host IP/Name: xxxxx
      Instance Name: /LM/W3SVC/3/Root/vDir-1-128159216819979200
         Process ID: 4308
       Process Name: c:\windows\system32\inetsrv\w3wp.exe
   Win 32 Thread ID: 3904
          Thread ID: 3904
Thread Authentication type: Negotiate
    Thread Identity: DOMAIN\USER
Process Authentication type: Kerberos
  Process Identity: DOMAIN\USER
  Screen Resolution: 1376x935
  Web User Identity: DOMAIN\USER
   Is Authenticated: True
Server Machine Name: xxxxx
  Request Timestamp: 14.02.2007 11:14:42

*****[ END LOG RECORD ]*****


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Posted 2/14/2007 8:35:35 AMPost #1139
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
I have now changed the report parameter url in the config file and changed the app pool to use a local administrator account.

We now get the errors listed below. There still seem to be problems with the event source.

I actually don't want to use the administrator account on our production system. What are the recommendations for the app pool identity to ensure that all permissions are available?

The recommended way to configure your AppPool is to accept the default identity and not change it to a given usr. If I remember correctly, the default identity is "network service".

The root of this problem seems to be:

Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at c360.Toolkit.MsCrm.Controls.Grid.ᜀ(HtmlTextWriter A_0)

However, this is really difficult for me to investigate without looking at your code. Can you post your code so that I can attempt to reproduce the problem?

 

Posted 3/15/2007 6:59:15 AMPost #1286
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Thanks for your help so far.

We could resolve the problem by explicitely removing the reports button from the grid. The problem seems to occur when the grid is based on a custom entity which does not have any reports.

However, I would still like to resolve the problem that every error which is logged to the event log produces two additional error message because there is no registry access for the Network Service account.

As it seems to be recommended to run the c360 toolkit application pool with the Network Service account I'd like to add the necessary permissions to the registry to make that work without problems.

Any recommendations?

Thanks!

Philipp

Posted 3/18/2007 3:30:41 PMPost #1291
 

c360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guruc360 Product Guru
The problem seems to occur when the grid is based on a custom entity which does not have any reports.

Ok, this is the information I needed. I was able to reproduce the problem: there is indeed a problem when you are displaying an entity with not SRS reports defined. Our code loops through an array of reports to list them on the grid's menu bar but this code fails when the array is empty. However, keep in mind that the only side effect of this problem is an annoying entry in the event log. The user does not see any error.

I have reported this issue as defect DE1654.

However, I would still like to resolve the problem that every error which is logged to the event log produces two additional error message because there is no registry access for the Network Service account.

As it seems to be recommended to run the c360 toolkit application pool with the Network Service account I'd like to add the necessary permissions to the registry to make that work without problems.

Have you tried recreating this situation with a local admin account (assuming that local admins have the permission to write to the registry)? Another suggestion would be to use a tool like RegMon to detect which account is trying to write to the event log, which branch it's trying to write to and therefore grant this account the appropriate permission.

I have never experienced this problem myself but you are at least the second customer to complain about this issue so I wonder what can be different in your case. Maybe you are using Small Business Server where the security restrictions are different? Maybe you have applied a domain policy that restricts registry access?

 

Posted 10/1/2007 10:16:41 AMPost #1815
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hi

I have similar problem, so I thought I just kidnap this thread for myself.

I also get application errors, followed by warnings in Event Log. It points a language *.xml file as a source (at least that's what I think it's saying). The number of error-warning pairs varies from 1 to 4 depending on which language file I'm using.

Here's what the entry in Event Log says:

Nie można znaleźć opisu dla identyfikatora zdarzenia ( 0 ) w źródle ( Application Error ). Być może komputer lokalny nie ma wymaganych informacji rejestru lub plików DLL potrzebnych do wyświetlania komunikatów z komputera zdalnego. Możesz użyć flagi /AUXSOURCE= do pobrania tego opisu; więcej informacji można znaleźć w Pomocy i obsłudze technicznej. Następujące informacje są częścią zdarzenia: Error while writing a log entry to log c360: ******[ BEGIN LOG RECORD ]*******

Message: Load translation file [c:\inetpub\wwwroot\c360sdk\Toolkit\Languages\polish.xml]

Log Level: 800: INFO

Timestamp: 2007-10-01 15:56:23

Source Class: c360.Toolkit.Translator

Source Method:

Source Assembly: c360.Toolkit, Version=3.0.8.220, Culture=neutral, PublicKeyToken=null

Code:

******[ CONTEXT DATA ]*******

Application Name: c360 Toolkit

Application ID:

User ID:

Transaction Id:

Sequence: 29

Host IP/Name: serwer

Instance Name: /LM/W3SVC/1/Root/c360sdk-1-128357187828906250

Process ID: 5212

Process Name: c:\windows\system32\inetsrv\w3wp.exe

Win 32 Thread ID: 1648

Thread ID: 1648

Thread Authentication type: Negotiate

Thread Identity: CRM\mareks

Process Authentication type: NTLM

Process Identity: CRM\mareks

Screen Resolution: 1024x768

Web User Identity: CRM\mareks

Is Authenticated: True

Server Machine Name: SERWER

Request Timestamp: 2007-10-01 15:56:21

HTTP Method: GET

URL: /c360sdk/schedulegridview.aspx

User Hostname: 83.13.71.202

Secure Connection: False

*********** HTTP Headers *************

Connection: Keep-Alive

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/msword, */*

Accept-Encoding: gzip, deflate

Accept-Language: pl

Authorization: Negotiate TlRMTVNTUAADAAAAGAAYAG4AAAAYABgAhgAAAAgACABIAAAADAAMAFAAAAASABIAXAAAAAAAAACeAAAABYKIogUBKAoAAAAPRABPAE8AUgBtAGEAcgBlAGsAcwBCAE0AUwBNAEEAUgBFAEsAUwCdwHvSSEiVBgAAAAAAAAAAAAAAAAAAAACli2lfSgwn/q9hyj1aP9Rpc+efE7r62OL=

Cookie: ASP.NET_SessionId=gmqwkqnhse1ua2inkdxkd3ya

Host: crm.door.com.pl

Referer: http://crm.door.com.pl/c360sdk/scheduletableview.aspx

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)

**************************************

Application Path: /c360sdk

Browser: System.Web.Mobile.MobileCapabilities

Content Encoding: utf-8

Content Length: 0

Content Type:

Execution File Path: /c360sdk/schedulegridview.aspx

*********** HTTP Form Data *************

***********************************

*****[ END LOG RECORD ]*****

System.Security.SecurityException: Requested registry access is not allowed.

at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)

at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)

at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)

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 source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)

at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type)

at c360.Toolkit.Logging.Handlers.EventLogHandler.ᜀ(LogRecord A_0)

The Zone of the assembly that failed was:

MyComputer.

Thanks in advance

Marek

Posted 10/1/2007 10:44:50 AMPost #1817
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hello!

I have same problem with registry access and report items on SBS instance. How to resolve it?

Thanks!

Pavel.

Posted 10/1/2007 10:55:49 AMPost #1819