ASP.NET MVC - SWF files not loading

In my mpc asp.net site, I upload flash files using swfobject. These files work fine locally using the Visual Studio 2008 (F5) server. But when deployed to a test server, they do not load at all. My routing table looks like this:

routes.MapRoute(
    "Default",
    "{controller}.aspx/{action}/{id}/{title}",
    new {controller = "Home", action = "Index",id = "",title=""});
routes.MapRoute(
   "Root",
   "",
   new {controller = "Home",action = "Index",id = "",title = ""});

And I load swf as:

<div id="home-container">
    <div id="flash-content" style="outline:none;position:absolute; top:0px">
        <h1>GET THE LATEST FLASH PLAYER TO VIEW THIS SITE.</h1>
        <a href="http://www.adobe.com/go/getflashplayer">
            get it now
        </a>
    </div>        
</div> 
<script type="text/javascript">
    // Embed the SWF
    var flashvars = {}; 
    var attributes = {id: "whole-grains-home", name: "whole-grains-home", style:"outline:none;"};
    var params = { allowscriptaccess: "always", menu: "false", wmode: "transparent", swliveconnect: "true" };
    var flashFile = '<%= Url.Content("~/files/flash/Homepage/R9IN03_PostH&W_Homepage.swf") %>';
    swfobject.embedSWF(flashFile, "flash-content", "990", "538", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>

I suspect the root route is to blame, but I just can't figure out why this works locally, but not on the server.

Does anyone have any idea?

Thanks.

+3
source share
1 answer

, . , , , , , "&". ( ).

, , .

+1

Source: https://habr.com/ru/post/1725091/


All Articles