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

,报错了

2011-12-31 
紧急求助,报错了ServerErrorin/Application.--------------------------------------------Theprocesscann

紧急求助,报错了
Server   Error   in   '/ '   Application.
--------------------------------------------

The   process   cannot   access   the   file   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\BlogConfig\BB\1B\56\GoT_FoX.xml '   because   it   is   being   used   by   another   process.  
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.IO.IOException:   The   process   cannot   access   the   file   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\BlogConfig\BB\1B\56\GoT_FoX.xml '   because   it   is   being   used   by   another   process.

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:  


[IOException:   The   process   cannot   access   the   file   'D:\CSDN   Web   Site\CSDN   Blog\NewDottext\DottextWeb\HTML\BlogConfig\BB\1B\56\GoT_FoX.xml '   because   it   is   being   used   by   another   process.]
      System.IO.__Error.WinIOError(Int32   errorCode,   String   maybeFullPath)   +2014461
      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,   Int32   bufferSize,   FileOptions   options)   +115
      System.IO.StreamWriter.CreateFile(String   path,   Boolean   append)   +58
      System.IO.StreamWriter..ctor(String   path,   Boolean   append,   Encoding   encoding,   Int32   bufferSize)   +91
      System.IO.StreamWriter..ctor(String   path)   +27
      Dottext.Framework.BuildStaticPage.Helper.WriteConfig(BlogConfig   userConfig)   +75
      Dottext.Framework.BuildStaticPage.ConfigBuilder.Build()   +10
      Dottext.Framework.Data.SqlDataProvider.WriteConfigFile(BlogConfig   config)   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Data   Providers\Dottext.SqlDataProvider\SqlDataProvider.cs:1552
      Dottext.Common.Config.MultipleBlogConfig.BuildConfig(String   host,   String   application,   HttpContext   context)   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Common\Config\MultipleBlogConfig.cs:119


      Dottext.Common.Config.MultipleBlogConfig.GetConfig(HttpContext   context)   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Common\Config\MultipleBlogConfig.cs:64
      Dottext.Framework.Configuration.Config.CurrentBlog(HttpContext   context)   +30
      Dottext.Web.UI.Globals.Skin(HttpContext   context)   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Web\UI\Globals.cs:27
      Dottext.Web.UI.WebControls.MasterPage.get_TemplateFile()   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Web\UI\WebControls\MasterPage.cs:38
      Dottext.Web.UI.WebControls.MasterPage.BuildMasterPage()   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Web\UI\WebControls\MasterPage.cs:66
      Dottext.Web.UI.WebControls.MasterPage.OnInit(EventArgs   e)   in   D:\CSDN   Web   Site\Csdn   Blog\Src\Library\Dottext.Web\UI\WebControls\MasterPage.cs:59
      System.Web.UI.Control.InitRecursive(Control   namingContainer)   +321
      System.Web.UI.Control.InitRecursive(Control   namingContainer)   +198
      System.Web.UI.Control.InitRecursive(Control   namingContainer)   +198
      System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint,   Boolean   includeStagesAfterAsyncPoint)   +692

 


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

[解决办法]
The process cannot access the file 'D:\CSDN Web Site\CSDN Blog\NewDottext\DottextWeb\HTML\BlogConfig\BB\1B\56\GoT_FoX.xml ' because it is being used by another process


这个XML是不是正在被其他进程占用着?
[解决办法]
The process cannot access the file 'D:\CSDN Web Site\CSDN Blog\NewDottext\DottextWeb\HTML\BlogConfig\BB\1B\56\GoT_FoX.xml ' because it is being used by another process

要相信提示,建议你重启一下电脑再运行一些程序
如果open()过,一定要close()

热点排行
Bad Request.