行 37: String filepath = EntryFilePath+"\\"+filename; 行 38: //open the file... 行 39: FileStream file = new FileStream(filepath,FileMode.Open); 行 40: 行 41: //creat a serializer...
[UnauthorizedAccessException: 对路径“c:\inetpub\wwwroot\Weblog\Entries\Entry.xml”的访问被拒绝。] System.IO.__Error.WinIOError(Int32 errorCode, String str) +393 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) +888 System.IO.FileStream..ctor(String path, FileMode mode) +52 Weblog.Global.LoadEntry(String filename) in c:\inetpub\wwwroot\weblog\global.asax.cs:39 Weblog.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\weblog\default.aspx.cs:37 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain()
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18