Imports System.Web Imports System.Reflection Namespace Framework Public Class GlobalBase Inherits System.Web.HttpApplication Sub Application_End()So, when a new DLL is being sent, this goes in Application_End(). Then, in there, it goes into my Data.SQLUpdate() method to update a record in the IISApplicationCycle table. This determines the duration the worker process was running for, when it shuted down and the shutdown message.
Using loSQLConnection As New SqlConnection(oApp.aConnection(nConnectionString, 1)) loSQLConnection.Open() oCommand.Connection = loSQLConnection nResult = oDataAdapter.SelectCommand.ExecuteNonQuery() End UsingThe error comes from loSQLConnection.Open(). It seems when the application is shuting down that it requires additional or different priviledges to be able to open a connection to SQL Server. Like I said, I do not have that on six other servers. So, I assume the NT AUTHORITY\NETWORK SERVICE account is probably set up so it does not cause any conflict on those servers. But, I get this error on one server only. Can someone explain me the relation with this account and why I get such an error in one particular environment?