当Flash尝试将dato发布到我的asp.net mvc应用程序时,未处理的安全异常 [英] unhandled security exception when flash try to post dato to my asp.net mvc application
问题描述
我正在构建一个基本上处理从Flash应用程序接收帖子数据的操作,但是当Flash使帖子(带有长xml字符串)使它看起来像mvc frakework阻止帖子时,我得到了以下输出: /p>
响应头:
POST http://mysite.com/mycontroller 找到302
获取 http://mysite.com/Error/Generic?aspxerrorpath=/mycontroller 200 OK
事件查看器:
事件消息:发生未处理的安全异常.
我尝试过:
在我的控制器上[AcceptVerbs(HttpVerbs.Post),ValidateInput(false)] 在我看来:ValidateRequest ="false"
在应用程序根目录中的crossdomain.xml.
.net配置的低信任级别.
我已经在本地进行了测试并可以工作,但是当上传到生产服务器时,我得到了:
发生未处理的安全异常.
在代码中存在一个生成异常的问题,它不是闪存. de flash和mvc的唯一问题是Flash发布后,任何重定向,redirectoaction,o其他视图返回均不起作用.
I'm building an action that basically handles receiving post data from a flash app, but when the flash make the post (with a long xml string) its seem like mvc frakework block the post and i get the folowing outputs:
Response headers:
POST http://mysite.com/mycontroller 302 Found
GET http://mysite.com/Error/Generic?aspxerrorpath=/mycontroller 200 OK
Event Viewer:
Event message: An unhandled security exception has occurred.
I have tried :
On my controller [AcceptVerbs(HttpVerbs.Post), ValidateInput(false)] On my view : ValidateRequest="false"
crossdomain.xml in the root of the application.
low level of trust in .net configuraction.
I have tested locally and works it, but when upload to production server i get :
An unhandled security exception has occurred.
there was a problem in the code that generated the exception, it was not the flash. The only problem with de flash and mvc is that any redirect, redirectoaction, o return other view does not work after the flash post.
这篇关于当Flash尝试将dato发布到我的asp.net mvc应用程序时,未处理的安全异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!