迁移asp.net网站到另一台服务器时出现XmlException: 缺少根元素错误
我打算把老服务器上的asp.net网站迁移到另外一台新服务器上。
老服务器上的程序都是好的。
新服务器装好操作系统,iis6,以及.net4.0。和老的一样。
然后把相应的网站目录全部拷贝到新服务器上,配置iis。
在新服务器上运行首页时,提示XmlException: 缺少根元素错误。
麻烦大家帮我看看。下面是错误代码。
--------------
ERROR ApplicationInfoLog [(null)] <(null)> - System.Xml.XmlException: 缺少根元素。
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
在 System.Xml.XmlDocument.Load(XmlReader reader)
在 System.Xml.XmlDocument.Load(String filename)
在 Index.GetViewThumbnails()
在 Index.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--------------
如果不够的话,还可以加分