Server Error in '/zhigang' Application.
--------------------------------------------------------------------------------Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
[NullReferenceException: Object reference not set to an instance of an object.]
   _Default.count() +59
   _Default.Page_Load(Object sender, EventArgs e) +42
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 
错误点:主页的代码页中有一个写入XML文件访问比函数……在Page_onload()中直接
if(!IspostBack)
count()
}public void count()
{
利用Application对象写入一个当前在线人数的字段//Application["current"]已经在Global文件Session_start()中行处理
对XML文件操作}
本地测试一切正常,可是上传到我的空间里就出现上面的错错误,主页已经引入了XML空间,网站发布完后将Web.config和Bin放到了根目录,可是Global文件,待vs 2005网站发布完后没有了……