开发者

MVCContrib Portable Areas Swf Embedded Resource

开发者 https://www.devze.com 2023-03-03 05:31 出处:网络
I\'m getting the error \"The given key was not present in the dictionary.\" with a swf as an embedded resource in a MVCContrib portable area. When I remove the file from the assembly entirely I get a

I'm getting the error "The given key was not present in the dictionary." with a swf as an embedded resource in a MVCContrib portable area. When I remove the file from the assembly entirely I get a standard 404, so I'm pretty sure it's开发者_如何转开发 finding the file, just having issues returning it.

Images, scripts, styles, etc are working fine, even those in the same directory as the swf.

Do I need to specify the .swf file type somewhere to allow it to be retrieved from the assembly?


I got this to work by modifying the MVCContrib source code. The embedded resources controller limits the types of resources allowed by mime type. I had to add the .swf mime type, now it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消