网站发布后的问题,VS2008

carkiller 2008-09-28 12:57:00
“/VRVREPORT”应用程序中的服务器错误。
--------------------------------------------------------------------------------

未能找到路径“c:\inetpub\wwwroot\Web\Config\PageFlow.xml”的一部分。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.DirectoryNotFoundException: 未能找到路径“c:\inetpub\wwwroot\Web\Config\PageFlow.xml”的一部分。

源错误:


行 30: string strNull ="";
行 31: XmlDocument xmlDoc = new XmlDocument();
行 32: xmlDoc.Load(HttpContext.Current.Request.MapPath("../Web/Config") + @"\PageFlow.xml");//路径
行 33:
行 34: XmlNode pnode = xmlDoc.SelectSingleNode("PageDef");//就是pagedef那个节点


源文件: F:\VRVReport\03_Source\ReportSystem.Common\PageFlow.cs 行: 32

堆栈跟踪:


[DirectoryNotFoundException: 未能找到路径“c:\inetpub\wwwroot\Web\Config\PageFlow.xml”的一部分。]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +492
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1038
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +113
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +78
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +51
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
System.Threading.CompressedStack.runTryCode(Object userData) +54
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +174
System.Xml.XmlTextReaderImpl.OpenUrl() +199
System.Xml.XmlTextReaderImpl.Read() +53
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +145
System.Xml.XmlDocument.Load(XmlReader reader) +96
System.Xml.XmlDocument.Load(String filename) +160
ReportSystem.Common.PageFlow.GetUrl(Int32 code) in F:\VRVReport\03_Source\ReportSystem.Common\PageFlow.cs:32
SystemLogin.btnLogin_Click(Object sender, EventArgs e) +27
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433
...全文
82 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fangsp 2008-09-28
  • 打赏
  • 举报
回复
顶一个
zhxingway 2008-09-28
  • 打赏
  • 举报
回复
1.没有这个文件啊PageFlow.xml

2.或者改成:xmlDoc.Load(HttpContext.Current.Request.MapPath("~/Web/Config") + @"\PageFlow.xml");//路径

把..改成~

62,072

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧