System.UnauthorizedAccessException: 对路径“”的访问被拒绝。

Yijavakevin 2008-09-10 02:17:58
UnauthorizedAccessException: 对路径“D:\NewImageCity.Manage\ipcount”的访问被拒绝。]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2017827
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) +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() +50
System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space) +206
System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space) +18
System.Xml.Xsl.XsltOld.Compiler.LoadDocument(XmlTextReaderImpl reader) +71
System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver) +114
System.Xml.Xsl.XslTransform.Load(String url) +25
ipcount_ipcount_download.SendResults(HttpContext context, DataSet ds, String parafieldName) +590
ipcount_ipcount_download.btnDownLoad_Click(Object sender, EventArgs e) +177
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +105
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.LinkButton.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) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
...全文
2861 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
m554623385 2012-11-02
  • 打赏
  • 举报
回复
弱弱的问一句,怎么改呢?[Quote=引用 2 楼 的回复:]

修改 Web.Config 中<authentication mode="Windows"/>
[/Quote]
lee211722 2012-04-16
  • 打赏
  • 举报
回复
修改 Web.Config 中<authentication mode="Windows"/>


njms1984 2008-09-10
  • 打赏
  • 举报
回复
是不是因为, 没有目录ASPNET的访问权限啊???试试设置一下.ASPNET的权限!

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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