| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.NET Runtime Application Log Error, Server is crashing due to .NET Error
Hello,
I have a load balanced system that consists of 3 production servers. There are about 20 different applications that are used on these boxes. One of my applications in particular is used more than the others. Since updating 2 applications, I have had problems on the event log of the servers, following stopping of the aspnet_ws.exe process. Something is causing the following error in the windows application event log: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.2032- Setup Error: Failed to load resources from resource file This is usually followed by the crashing of the aspnet_ws.exe process, which will crash all users that are in any application on the server. This happens about 3-8 times per day, at random times, with an absolute unknown cause for this. I have searched all over the net for help on this error, and I cannot find a single answer that will fix this. I am thinking it is is something in my code, but what is odd is that this error does NOT happen at anytime on our test server or my local computer that uses the same application. We test the application constantly on the test server, and no matter what, the log never receives this error. It is possible that the reason for this is the higher load on our production servers. There are usually 85 - 100 users simultaneously hitting the box. Here are some examples of the new stuff that has been added since I have been starting to get that error: (Prior to adding this code, I have never seen this error in the log.) Code:
Imports System.Threading
Imports System.Web.SessionState
Imports System.Web.HttpContext
Public Sub PostDocument
Current.Session("Stored_Document_Number") = "12345"
Dim ThreadPost As New Thread(New ThreadStart(AddressOf ExecutePost))
ThreadPost.Priority = ThreadPriority.Lowest
ThreadPost.Start()
End Sub
Public Sub ExecutePost()
'Posting Code is here Nothing fancy
End Sub
But all of this works correctly in test, and production too. I am just wondering if excessive use of any of the above at simultaneous times could cause problems? Is there something I need to do to the server to handle the Threading? Am I forgetting another step that will cause a problem on the server? I am using threading because the response time was very slow on our servers, so I do not wait for a response. Its a new method I chose, and works excellent, however, now the servers are still receiving that above message, and the Memory usage does not even exceed 300K, whereas in the past, it used to go all the way up to 900K when it crashed. Someone please, if you can be of any assistance, it would greatly be appreciated! Thanks in advance to whomever can help! - VinnieT |
|
#2
|
|||
|
|||
|
Additional Information...
In attempt to fix the issue, I have the following code:
Code:
Imports System.Threading
Public Sub PostDocument
Dim ThreadPost As New Thread(New ThreadStart(AddressOf ExecutePost))
ThreadPost.Priority = ThreadPriority.Lowest
ThreadPost.Start()
End Sub
Public Sub ExecutePost()
Dim mut As Mutex = New Mutex
mut.WaitOne()
Try
Dim oHB As New HostBridgeLink(sPassword)
oHB.ExecCmdWithData("PF10", "WEBIND=Y")
oHB.ExecCmd("PF8")
Catch ex As Exception
Finally
mut.ReleaseMutex()
End Try
End Sub
I also updated all my servers with the latest windows update, and Framework Service Pack 3. Now I am still getting an error, but it has changes slightly. Here is the error: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.2032- aspnet_wp.exe - Common Language Runtime Debugging Services: Application has generated an exception that could not be handled. Process id=0x32c8 (13000), Thread id=0x2dc8 (11720). Click OK to terminate the application. Click CANCEL to debug the application. I believe that Threading is causing this problem, but I dont know what to do to fix this issue. The code seems correct. Is there something on the server that I need to do to handle these threads? Thank you |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows OS > .NET Runtime Application Log Error, Server is crashing due to .NET Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|