IIS服务器应用报错,Event code: 3005,版主来救火!事件查看器里频繁出现这个警告,请问事什么原因,有什么影响?怎么解决???
事件查看器里频繁出现这个警告,请问事什么原因,有什么影响?怎么解决???
事件类型: 警告
事件来源: ASP.NET 2.0.50727.0
事件种类: Web Event
事件 ID: 1309
日期: 2011-5-5
事件: 9:17:53
用户: N/A
计算机: 3dfdsdfe
描述:
Event code: 3005
Event message: 发生了未处理的异常。
Event time: 5/5/2011 9:17:53 AM
Event time (UTC): 5/5/2011 1:17:53 PM
Event ID: bbc26d73d5ff480a8f1f88d9d8dc20ff
Event sequence: 17
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/Management-1-129490750298437500
Trust level: Full
Application Virtual Path: /WghManagement
Application Path: E:\web\Management\
Machine name: ANJIANJU
Process information:
Process ID: 2616
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: NullReferenceException
Exception message: 未将对象引用设置到对象的实例。
Request information:
Request URL: http://Management/ajax/common.ashx
Request path: /WghManagement/ajax/common.ashx
User host address: 164.165.4.19
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 11
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: 在 Ajax.AjaxProcessor.RenderCommonScript()
在 Ajax.AjaxRequestProcessor.Run()
在 Ajax.AjaxHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。
这是common.ashx的内容
var requests = new Array();
if(typeof(XMLHttpRequest) == 'undefined')
var XMLHttpRequest = function()
{
var request = null;
try
{
request = new ActiveXObject('Msxml2.XMLHTTP');
}
catch(e)
{
try
{
request = new ActiveXObject('Microsoft.XMLHTTP');
}
catch(ee)
{}
}
return request;
}
function ajax_stop()
{
for(var i=0; i<requests.length; i++)
{
if(requests[i] != null)
requests[i].abort();
}
}
function ajax_create_request(context)
{
for(var i=0; i<requests.length; i++)
{
if(requests[i].readyState == 4)
{
requests[i].abort();
requests[i].context = context;
return requests[i];
}
}
var pos = requests.length;
requests[pos] = Object();
requests[pos].obj = new XMLHttpRequest();
requests[pos].context = context;
return requests[pos];
}
function ajax_request(url, data, callback, context)
{
var request = ajax_create_request(context);
var async = typeof(callback) == 'function';
if(async) request.obj.onreadystatechange = function()
{
if(request.obj.readyState == 4)
callback(new ajax_response(request));
}
request.obj.open('POST', url, async);
request.obj.send(data);
if(!async)
return new ajax_response(request);
}
function ajax_response(request)
{
this.request = request.obj;
this.error = null;
this.value = null;
this.context = request.context;
if(request.obj.status == 200)
{
try
{
this.value = object_from_json(request);
if(this.value && this.value.error)
{
this.error = this.value.error;
this.value = null;
}
}
catch(e)
{
this.error = new ajax_error(e.name, e.description, e.number);
}
}
else
{
this.error = new ajax_error('HTTP request failed with status: ' + request.obj.status, request.obj.status);
}
return this;
}
function enc(s)
{
return s.toString().replace(/\%/g, "%26").replace(/=/g, "%3D");
}
function object_from_json(request)
{
if(request.obj.responseXML != null && request.obj.responseXML.xml != null && request.obj.responseXML.xml != '')
return request.obj.responseXML;
var r = null;
eval('r=' + request.obj.responseText + ';');
return r;
}
function ajax_error(name, description, number)
{
this.name = name;
this.description = description;
this.number = number;
return this;
}
ajax_error.prototype.toString = function()
{
return this.name + " " + this.description;
}
function json_from_object(o)
{
if(o == null)
return 'null';
switch(typeof(o))
{
case 'object':
if(o.constructor == Array) // checks if it is an array [,,,]
{
var s = '';
for(var i=0; i<o.length; ++i)
{
s += json_from_object(o[i]);
if(i < o.length -1)
s += ',';
}
return '[' + s + ']';
}
break;
case 'string':
return '"' + o.replace(/(["\\])/g, '\\$1') + '"';
default:
return String(o);
}
}var ajaxVersion = '5.7.22.2';