从asp.net订阅webservice时出错 [英] Error when subscribing to webservice from asp.net

查看:95
本文介绍了从asp.net订阅webservice时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。

我写了一个asp.net / c #Web应用程序订阅了一个Web服务,一切正常。

如果我随后附上页面AJAX选项卡和手风琴控件中的网页功能,然后我收到类型的错误:
--------------------- -------------------------------------------------- ------

'/ ClientApp''应用程序中的服务器错误。

------------- -------------------------------------------------- -----------------

请求失败,HTTP状态为404:未找到。

描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.Net.WebException:请求失败,HTTP状态为404:Not Found。

-------------- -------------------------------------------------- ----------------------------


我还需要做些额外的事情要在AJAX控件中使用相同的功能吗?


谢谢。


M:)

解决方案

我认为您需要将此装饰添加到Web服务:

展开 | 选择 | Wrap | 行号

如果您向我们展示您如何调用Web服务,这将有所帮助。

您是将其称为客户端还是服务器端?


感谢您的帮助。


我有使用该属性的web服务,并且Web服务的示例如下(为了便于阅读而减少):

展开 | 选择 | Wrap | 行号


Hi there.
I have written an asp.net / c# web application that subscribes to a web service and all works fine.
If I then enclose the page functionality of the web page within AJAX tab and accordion controls, I am then receiving an error of the type:
-----------------------------------------------------------------------------
Server Error in ''/ClientApp'' Application.
--------------------------------------------------------------------------------
The request failed with HTTP status 404: Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 404: Not Found.
--------------------------------------------------------------------------------------------

Is there anything additional I need to do in order to make the same functionality work from within AJAX controls please?

Thank you.

M :)

解决方案

I think that you need to add this decoration to the webservice:

Expand|Select|Wrap|Line Numbers


It would help if you showed us how you were calling the web service.
Are you calling it client side or server side?


Thank you for the help.

I have the webservice using the attribute and an example of the web service is as follows (cut down for readability):

Expand|Select|Wrap|Line Numbers


这篇关于从asp.net订阅webservice时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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