请问请求因HTTP状态404失败是什么错误,怎么解决呢?
我使用的是vb.net,我按例子做了一个简单的webservice。我又做了一个小程序,在我的机器上都可以从webservice掉用一个函数取得数据,但我放到居域网的一个机器里就不行,出现“因HTTP状态404失败”这个错误 ,但我在浏览器里可以打开http://192.1192.0.1/mywebserver/Service1.asmx啊,请问怎么解决?急~~~解决马上结帖 问题点数:50、回复次数:8Top
1 楼icecsdn(问到懂为止!~)回复于 2005-05-25 09:38:06 得分 0
打错了,是http://192.112.0.1/mywebserver/Service1.asmxTop
2 楼net_lover(【孟子E章】)回复于 2005-05-25 10:24:25 得分 0
404就是文件未找到错误呀Top
3 楼icecsdn(问到懂为止!~)回复于 2005-05-25 10:26:22 得分 0
什么文件没找到呢?我在浏览器里能打开啊Top
4 楼icecsdn(问到懂为止!~)回复于 2005-05-25 11:18:30 得分 0
顶啊,谁来帮解决一下,没经验做起来费劲,找资料也找不到~Top
5 楼net_lover(【孟子E章】)回复于 2005-05-25 12:04:24 得分 50
http://192.1192.0.1/mywebserver/能访问吗?》Top
6 楼icecsdn(问到懂为止!~)回复于 2005-05-25 13:22:51 得分 0
能的啊,http://192.112.0.1/mywebserver/Service1.asmx就这个,我是在局域网的另一个机器的浏览器里能打开的。是不是IIS什么没有配置对?我就建了个虚拟目录,然后把路径指到我做的WEBSERVICE这个文件夹上了Top
7 楼icecsdn(问到懂为止!~)回复于 2005-05-25 13:48:14 得分 0
我点详细信息,有如下信息提示:
有关调用实时 (JIT) 调试而不是此对话框的详细信息,
请参阅此消息的结尾。
************** 异常文本 **************
System.Net.WebException: 请求因 HTTP 状态 404 失败:Not Found。
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Client.localhost.Service1.getdata()
at Client.Form1.Button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
Client
程序集版本:1.0.1970.24578
Win32 版本:1.0.1970.24578
基本代码:file:///E:/aa/Client.exe
----------------------------------------
System.Windows.Forms
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Web.Services
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.web.services/1.0.3300.0__b03f5f7f11d50a3a/system.web.services.dll
----------------------------------------
System.Data
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.data/1.0.3300.0__b77a5c561934e089/system.data.dll
----------------------------------------
Microsoft.VisualBasic
程序集版本:7.0.3300.0
Win32 版本:7.00.9466
基本代码:file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Web
程序集版本:1.0.3300.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system.web/1.0.3300.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------
ysd9b8rd
程序集版本:0.0.0.0
Win32 版本:1.0.3705.0
基本代码:file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.resources
程序集版本:1.0.3300.0
Win32 版本:1.0.3300.0
基本代码:file:///c:/winnt/assembly/gac/system.resources/1.0.3300.0_zh-chs_b77a5c561934e089/system.resources.dll
----------------------------------------
System.Web.Services.resources
程序集版本:1.0.3300.0
Win32 版本:1.0.3300.0
基本代码:file:///c:/winnt/assembly/gac/system.web.services.resources/1.0.3300.0_zh-chs_b03f5f7f11d50a3a/system.web.services.resources.dll
----------------------------------------
System.Windows.Forms.resources
程序集版本:1.0.3300.0
Win32 版本:1.0.3300.0
基本代码:file:///c:/winnt/assembly/gac/system.windows.forms.resources/1.0.3300.0_zh-chs_b77a5c561934e089/system.windows.forms.resources.dll
----------------------------------------
************** JIT 调试 **************
若要启用实时 (JIT) 调试,此
应用程序或计算机的配置文件 (machine.config) 的
system.windows.forms 节中必须设置 jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
启用 JIT 调试后,任何未处理的异常
将被发送到此计算机上注册的 JIT 调试器,
而不是由此对话框处理。Top
8 楼icecsdn(问到懂为止!~)回复于 2005-05-25 14:23:58 得分 0
我知道错在哪了,定义这里dim service1 as new 服务器名.web服务名 ,我程序里写的是dim service1 as new localhost.Service1(),可我客户端和webservice不在一个机器上,我要是通过IP定义这个service1应该怎么写,我写了都不对,dim service1 as new后边该怎么写才是正确的呢?Top
相关问题
- 请求因 HTTP 状态 404 失败:Not Found。
- http重定向请求失败??????????
- 请求因 HTTP 状态 404 失败?????????????
- 请求因 HTTP 状态 401 失败:Access Denied。
- 请求因 HTTP 状态 401 失败:Access Denied。急,在线等待!
- 请求因 HTTP 状态 401 失败:Access Denied
- 请求因HTTP状态407失败:Proxy Authentication Required.如何解决?
- ASSERT 错误,请求解答
- 请求订阅失败
- 本地请求失败信息如“请求因 HTTP 状态 401 失败”但是在另一台机器是好的为什么?




