Iis ImageOptimizations\App\u Sprites\blank.gif访问被拒绝

Iis ImageOptimizations\App\u Sprites\blank.gif访问被拒绝,iis,css-sprites,access-denied,image-optimization,Iis,Css Sprites,Access Denied,Image Optimization,要优化图像并自动生成CSSprite,请使用名为 错误 在本地,一切都可以正常工作,但要发布我的网站,会出现以下错误: Access to the path 'D:\Hosting\8399780\html\dev\App_Sprites\blank.gif' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review

要优化图像并自动生成CSSprite,请使用名为

错误 在本地,一切都可以正常工作,但要发布我的网站,会出现以下错误:

Access to the path 'D:\Hosting\8399780\html\dev\App_Sprites\blank.gif' 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:\Hosting\8399780\html\dev\App_Sprites\blank.gif' 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 and IIS 7, and the configured application pool identity on IIS 7.5) 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.
对路径“D:\Hosting\8399780\html\dev\App\u Sprites\blank.gif”的访问被拒绝。
描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源。
异常详细信息:System.UnauthorizedAccessException:对路径“D:\Hosting\8399780\html\dev\App\u Sprites\blank.gif”的访问被拒绝。
ASP.NET无权访问请求的资源。考虑授予对ASP.NET请求标识的资源访问权限。ASP.NET有一个基本进程标识(通常是IIS 5上的{MACHINE}\ASPNET或IIS 6和IIS 7上的网络服务,以及IIS 7.5上配置的应用程序池标识),在应用程序未模拟时使用。如果应用程序是通过模拟的,则标识将是匿名用户(通常是IUSR_MACHINENAME)或经过身份验证的请求用户。
要授予ASP.NET对文件的访问权限,请在资源管理器中右键单击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加相应的用户或组。突出显示ASP.NET帐户,并选中所需访问权限的复选框。
企图 为了解决“App_Sprites”文件夹中的问题,添加了以下web.config:

<?xml version="1.0"?>
<configuration>
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>

  <system.webServer>
    <security>
      <authorization>
        <add accessType="Allow" users="*" />
      </authorization>
    </security>
  </system.webServer>

</configuration>

“blank.gif”图像未在我的应用程序中的任何位置使用!
App_Sprites
文件夹中,只有一个子文件夹名为
hire

我相信此框架正在尝试将一个空白的.gif文件写入该目录。您需要提供IIS应用程序池在windows中运行对该文件夹的写访问权限所使用的帐户