Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web service problem

Web service problem

Scheduled Pinned Locked Moved ASP.NET
csharphelpsysadmindata-structuresdebugging
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yoyosh 0
    wrote on last edited by
    #1

    I tried to make as simple example using web service as possible: - I created a web service project from the templated installed in VS2005 - I mark it as a virtual directory and put it under C:\Inetpub\wwwroot directory - I created a windows application, and added web reference to http://83.175.131.18/MartinezService/Service.asmx (you may try that yourself) - Then I tested it with: privatevoid Form1_Load(object sender, EventArgs e) { MartinezService.Service s = new WindowsApplication1.MartinezService.Service(); MessageBox.Show(s.HelloWorld()); } It worked perfectly. But when I send this windows application to my friend and ask him to execute it, he got the following error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: Próba przeprowadzenia operacji, wykonywanej przez gniazdo, na nieosi¹galnym hoœcie (try to perform an operation on non-reachable host) at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at WindowsApplication1.MartinezService.Service.HelloWorld() in D:\C# WORKSPACE\WindowsApplication1\WindowsApplication1\Web References\MartinezService\Reference.cs:line 78 at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in D:\C# WORKSPACE\WindowsApplication1\WindowsApplication1\Form1.cs:line 21 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups