“/”应用程序中的服务器错误。

对路径“e:\wxjy\prompt\showerror.aspx”的访问被拒绝。

说明: 执行当前 web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: system.unauthorizedaccessexception: 对路径“e:\wxjy\prompt\showerror.aspx”的访问被拒绝。

asp.net 未被授权访问所请求的资源。请考虑授予 asp.net 请求标识访问此资源的权限。asp.net 有一个在应用程序没有模拟时使用的基进程标识(通常,在 iis 5 上为 {machine}\aspnet,在 iis 6 上为网络服务)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 iusr_machinename)或经过身份验证的请求用户。

要将 asp.net 访问权限授予某个文件,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 asp.net 帐户,选中所需访问权限对应的框。

源错误:

执行当前 web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[unauthorizedaccessexception: 对路径“e:\wxjy\prompt\showerror.aspx”的访问被拒绝。]
   system.io.__error.winioerror(int32 errorcode, string maybefullpath) +7717551
   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) +1162
   system.io.filestream..ctor(string path, filemode mode, fileaccess access, fileshare share) +66
   system.web.hosting.mappathbasedvirtualfile.open() +75
   system.web.hosting.virtualpathprovider.openfile(string virtualpath) +28
   system.web.ui.templateparser.parsefile(string physicalpath, virtualpath virtualpath) +123
   system.web.ui.templateparser.parseinternal() +58
   system.web.ui.templateparser.parse() +167
   system.web.ui.templateparser.parse(icollection referencedassemblies, virtualpath virtualpath) +34
   system.web.compilation.basetemplatebuildprovider.get_codecompilertype() +85
   system.web.compilation.buildprovider.getcompilertypefrombuildprovider(buildprovider buildprovider) +62
   system.web.compilation.buildproviderscompiler.processbuildproviders() +199
   system.web.compilation.buildproviderscompiler.performbuild() +42
   system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath) +298
   system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile) +261
   system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile) +101
   system.web.compilation.buildmanager.getvirtualpathobjectfactory(virtualpath virtualpath, httpcontext context, boolean allowcrossapp, boolean noassert) +126
   system.web.compilation.buildmanager.createinstancefromvirtualpath(virtualpath virtualpath, type requiredbasetype, httpcontext context, boolean allowcrossapp, boolean noassert) +62
   system.web.ui.pagehandlerfactory.gethandlerhelper(httpcontext context, string requesttype, virtualpath virtualpath, string physicalpath) +33
   system.web.ui.pagehandlerfactory.system.web.ihttphandlerfactory2.gethandler(httpcontext context, string requesttype, virtualpath virtualpath, string physicalpath) +40
   system.web.httpapplication.maphttphandler(httpcontext context, string requesttype, virtualpath path, string pathtranslated, boolean useappconfig) +160
   system.web.httpserverutility.execute(string path, textwriter writer, boolean preserveform) +485[httpexception (0x80004005): 为 ~/prompt/showerror.aspx 执行子请求时出错。]
   system.web.httpserverutility.execute(string path, textwriter writer, boolean preserveform) +784
   system.web.httpserverutility.transfer(string path, boolean preserveform) +57
   system.web.httpserverutility.transfer(string path) +35
   powereasy.foundation.web.ui.basepage.writeerrmsg(string errormessage, string returnurl) +177
   powereasy.module.general.website.item.oninittemplatepage(eventargs e) +356
   powereasy.foundation.web.ui.templatepage.onpreinit(eventargs e) +29
   system.web.ui.page.performpreinit() +31
   system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +282


版本信息: microsoft .net framework 版本:2.0.50727.4984; asp.net 版本:2.0.50727.4971