手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >ASP.NET拒绝访问临时目录的解决方法
ASP.NET拒绝访问临时目录的解决方法
摘要:今天把博客程序部署到一台阿里云Windows主机上,通过浏览器访问时出现下面的错误:复制代码代码如下:创建BlogConfiguration...

今天把博客程序部署到一台阿里云Windows主机上,通过浏览器访问时出现下面的错误:

复制代码 代码如下:

创建 BlogConfigurationSettings 的配置节处理程序时出错: 拒绝访问临时目录。以其运行 XmlSerializer 的身份“IIS APPPOOLwww.cnblogs.com”没有足够的权限访问临时目录。CodeDom 将使用此进程用于进行编译的用户帐户,因此如果用户对系统临时目录没有访问权限,则将无法编译。使用 Path.GetTempPath() API 可找到临时目录位置。

Access to the temp directory is denied. Identity 'IIS APPPOOLwww.cnblogs.com' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location.

CS0016: 未能写入输出文件“c:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot946055b892eead15App_global.asax.qakaesxx.dll”--“拒绝访问。 ”

开始以为是“C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files”文件夹权限的问题,但怎么设置这个权限也解决不了问题。

后来在应用程序池设置中将“加载用户配置文件”(Load User Profile)设置为true,问题就解决。

ASP.NET拒绝访问临时目录的解决方法1

【ASP.NET拒绝访问临时目录的解决方法】相关文章:

ASP.NET抓取网页内容的实现方法

ASP.NET中 Execl导出的六种方法实例

ASP.NET动态加载用户控件的实现方法

ASP.NET创建动态缩略图的方法

ASP.NET 多次提交的解决办法

ASP.NET数据库编程之处理文件访问许可

ASP.NET输出PNG图片时出现GDI+一般性错误的解决方法

ASP.NET页面之间传递参数的几种方法

ASP.NET 页面刷新的实现方法

ASP.NET MVC3 实现全站重定向的简单方法

精品推荐
分类导航