首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

CSDN的blog刚改版,就出现error,大家分析一下。解决思路

2012-01-21 
CSDN的blog刚改版,就出现error,大家分析一下。出现错误的操作是,编辑和修改完文章之后,按提交按钮出现以下

CSDN的blog刚改版,就出现error,大家分析一下。
出现错误的操作是,编辑和修改完文章之后,按提交按钮出现以下错误。

Server   Error   in   '/ '   Application.
--------------------------------------------

Access   to   the   path   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\SingleColumn\1\thefirstwind.html '   is   denied.  
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.UnauthorizedAccessException:   Access   to   the   path   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\SingleColumn\1\thefirstwind.html '   is   denied.  

ASP.NET   is   not   authorized   to   access   the   requested   resource.   Consider   granting   access   rights   to   the   resource   to   the   ASP.NET   request   identity.   ASP.NET   has   a   base   process   identity   (typically   {MACHINE}\ASPNET   on   IIS   5   or   Network   Service   on   IIS   6)   that   is   used   if   the   application   is   not   impersonating.   If   the   application   is   impersonating   via   <identity   impersonate= "true "/> ,   the   identity   will   be   the   anonymous   user   (typically   IUSR_MACHINENAME)   or   the   authenticated   request   user.  

To   grant   ASP.NET   access   to   a   file,   right-click   the   file   in   Explorer,   choose   "Properties "   and   select   the   Security   tab.   Click   "Add "   to   add   the   appropriate   user   or   group.   Highlight   the   ASP.NET   account,   and   check   the   boxes   for   the   desired   access.

Source   Error:  


Line   572:                                                 }
Line   573:
Line   574:                                                 PostID   =   Entries.Create(entry,   Categories,   GlobalCategories,   config);
Line   575:
Line   576:                                         }
 

Source   File:   d:\CSDN   Web   Site\CSDN   Blog\Src\Web\writeblog.csdn.net\Controls\EntryEditor.ascx.cs         Line:   574  

Stack   Trace:  


[UnauthorizedAccessException:   Access   to   the   path   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\SingleColumn\1\thefirstwind.html '   is   denied.]
      System.IO.__Error.WinIOError(Int32   errorCode,   String   maybeFullPath)   +2013987


      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)   +998
      System.IO.FileStream..ctor(String   path,   FileMode   mode,   FileAccess   access,   FileShare   share)   +114
      Dottext.Framework.BuildStaticPage.Helper.writeToFile(String   fileName,   String   Content)   +53
      Dottext.Framework.BuildStaticPage.CategoryBuilder.Build()   +165
      Dottext.Framework.EntryHandling.BuildStaticPostHandler.Process(Entry   entry)   +100
      Dottext.Framework.EntryHandling.HandlerManager.Process(ProcessState   ps,   Entry   e,   ProcessAction   pa)   +224
      Dottext.Framework.Entries.Create(Entry   entry,   String[]   Categories,   String[]   GlobalCategories,   BlogConfig   config)   +157
      EntryEditor.UpdatePost(Boolean   isSaveAsDraft)   in   d:\CSDN   Web   Site\CSDN   Blog\Src\Web\writeblog.csdn.net\Controls\EntryEditor.ascx.cs:574
      EntryEditor.SaveButton_Click(Object   sender,   EventArgs   e)   in   d:\CSDN   Web   Site\CSDN   Blog\Src\Web\writeblog.csdn.net\Controls\EntryEditor.ascx.cs:685
      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)   +5102

 


--------------------------------------------
Version   Information:   Microsoft   .NET   Framework   Version:2.0.50727.42;   ASP.NET   Version:2.0.50727.210

[解决办法]
你想黑了它?
[解决办法]
可能是生成这个html 时对象没有关系,造成文件被占用.

热点排行