IO错误和流错误是什么意思(Flash)

发布于 2024-07-26 08:04:02 字数 365 浏览 5 评论 0原文

我正在尝试从网站上的 flash 向控制器中的方法发送 http post(我的网站位于 Asp.Net MVC 上),但收到此错误:

错误 #2044:未处理的 ioError:。 text=错误#2032:流错误。 网址:http://www.mysite.com/Home/DoSomething 在 Main/postToMyWebsite()

关于为什么会发生这些错误以及如何防止它们有什么想法吗?

如果您需要更多信息,请告诉我,

谢谢,
马特

I'm trying to do an http post from flash on my website to a method in a controller (My site is on Asp.Net MVC) and I'm getting this error:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.mysite.com/Home/DoSomething
at Main/postToMyWebsite()

Any ideas of why these errors happen and how to prevent them?

Please let me know if you require any more info

Thanks,
Matt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦太阳 2024-08-02 08:04:02

请检查此链接

http://curtismorley.com/2008/02/08 /actionscript-error-2032/

当使用错误的 URL 时,您可能会遇到这些类型的错误!!!!

Please check this link

http://curtismorley.com/2008/02/08/actionscript-error-2032/

These types of error you can expect when the wrong URL is used!!!!.

故事和酒 2024-08-02 08:04:02

如果使用标准 HTML 表单制作您的 POST 是否有效? 如果没有,我不希望它在 Flash 中工作,所以您必须检查您的 ASP 代码。

ASP 页面是否回显任何内容? 如果该页面没有标题或根本没有输出,您可能会收到错误。 尝试输出一些东西。

另外,监听 httpStatus 事件可能会有所帮助。 这可能会让您对正在发生的事情有所了解。 要添加 httpStatus 侦听器,您可以执行以下操作:

myUrlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
private function httpStatusHandler(event:HTTPStatusEvent):void {
    trace("HTTP status recieved: " + event.status);
}

如果这些都不起作用,请发布代码。 很难猜测那里会发生什么。

Does your POST work, if made from a standard HTML form? If not, I wouldn't expect it to work in Flash, so you'll have to check your ASP code.

Does the ASP page echo anything? You could be getting an error if there are no headers or no output at all from that page. Try to output something.

Also, it might help to listen to the httpStatus events. That might give you some insight on what's going on. To add a httpStatus listener, you do something like:

myUrlLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
private function httpStatusHandler(event:HTTPStatusEvent):void {
    trace("HTTP status recieved: " + event.status);
}

Please post the code if none of theese work. It's quite hard to guess what could be going on there..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文