Web服务“对象已移动"错误 [英] WebService "object moved" error

查看:95
本文介绍了Web服务“对象已移动"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我创建了一个供正在开发的移动应用程序使用的Web服务.
如果我从IE甚至从移动IE使用它,Web服务就可以正常工作,但是当我尝试从应用程序中使用它时,我得到了"WebException"错误,没有更多信息

排除我的移动应用程序存在某种问题的选项,我构建了一个小型Windows应用程序-只是带有调用Web方法的按钮的表单,并且出现以下错误

hi all.

I created a web service to be used by a mobile app I''m developing.
the web service works fine if i consume it from IE or even from the mobile IE but when i try to consume it from the application i get "WebException" error with no more info

to exclude the option that there is some kind of problem with my mobile app I build a small windows app - just a form with a button that call the web method and I get the following error

The request failed with the error message:\r\n--\r\n<html><head><title>Object moved</title></head><body>\r\n<h2>Object moved to <a href=\"%2fSAPChassisWS%2fChassisWService.asmx%3fAspxAutoDetectCookieSupport%3d1\">here</a>.</h2>\r\n</body></html>\r\n\r\n--.




就像我说的那样,如果我从Internet Explorer调用相同的方法,也可以正常工作-在笔记本电脑和移动设备中

Web配置未定义为表单身份验证:




and as I said the same methos works fine if I call it from the internet explorer - in my laptop and in the mobile

web config is defined not as form authentication:

<authentication mode="Windows" />



服务器是带有IIS 7的Server2008.

有任何想法吗?

感谢



the server is server 2008 with IIS 7

any Ideas ?

thanks

推荐答案

墨菲定律:)
我已经在这个问题上工作了一天,现在我在这里提交了它,而现在我做了30分钟-我找到了答案

我只是按照帖子解决了这个问题:
http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/a9dffd4a-e4bd-4028-b4f2-7967c2cc09a4/
murfy''s law :)
I''ve been working on this problem for a day now before i submitted it here and now 30 minutes after i did - I found the answer

I just following post solved the problem:
http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/a9dffd4a-e4bd-4028-b4f2-7967c2cc09a4/


这篇关于Web服务“对象已移动"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆