unhandled security exception when flash try to post dato to my asp.net mvc application

你离开我真会死。 提交于 2019-12-25 03:48:35

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6129162/unhandled-security-exception-when-flash-try-to-post-dato-to-my-asp-net-mvc-appli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!