Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flash播放器可以';找不到XML配置文件_Flash_Configuration_Iis 7.5_Access Denied - Fatal编程技术网

Flash播放器可以';找不到XML配置文件

Flash播放器可以';找不到XML配置文件,flash,configuration,iis-7.5,access-denied,Flash,Configuration,Iis 7.5,Access Denied,我们有一个网站,客户在不久前决定将其外包给印度后,正在将其带回我们的服务器 其中一个页面使用SWF播放器播放一些视频。页面中的SWF对象显然是使用XML文件配置的。以下是ASPX页面中的SWF代码: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v

我们有一个网站,客户在不久前决定将其外包给印度后,正在将其带回我们的服务器

其中一个页面使用SWF播放器播放一些视频。页面中的SWF对象显然是使用XML文件配置的。以下是ASPX页面中的SWF代码:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="900" height="600" id="tech" align="middle">
    <param name="allowFullScreen" value="true" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="/Images/flv/simple.swf?xml_path=/Client/XML/NFLNews.xml" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent">
    <embed src="/Images/flv/simple.swf?xml_path=/Client/XML/NFLNews.xml" quality="high"
        wmode="transparent" width="900" height="600" name="tech" align="middle" 
        allowscriptaccess="sameDomain" allowfullscreen="true" 
        type="application/x-shockwave-flash" 
        pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
我假设SWF对象必须在与IIS不同的安全上下文下运行? 还是这里发生了什么事?我们从来没有真正处理过Flash的东西,所以我对这一切都是新手

Windows 2008 R2、ASP.NET 4、IIS 7.5


更新:我通过先给
每个人
然后修改访问XML文件的权限,确定SWF实际上正在修改XML文件。显然,我不想让每个人都有权访问这个文件,所以我在文件中添加了一个审计条目“EVERYONE fail anything”,试图找出SWF文件在哪个用户下运行。。。但是,即使从所有人删除写入权限确实导致它再次失败,它也没有写入安全审核事件。所以我想现在我必须让每个人都有这个文件的写权限,除非有人能告诉我如何确定SWF在哪个用户下运行

一些帮助排除故障的想法:可能需要使用HTTP嗅探器、Firebug等来验证Flash用于访问该XML的路径。确保您使用的是FlashPlayer的调试版本(运行时发生的out-it异常将在没有任何指示的情况下无声地失败)。当尝试下载XML时,web服务器日志显示了什么?也许SWF使用ExternalInterface并依赖于一些Javascript来解析xml路径?谢谢提示。它实际上是在寻找正确的文件。。。错误中显示的IIS物理路径正确。我已经将范围缩小到SWF正在修改文件,因此需要写访问权限。现在,我不得不给每个人这个文件的写权限。
Server Error in '/' Application.
Access to the path 'F:\inetpub\wwwroot\lijsoccer.com\Client\XML\NFLNews.xml' 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 'F:\inetpub\wwwroot\lijsoccer.com\Client\XML\NFLNews.xml' 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 File 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.