CES4848

HI,

I am sure there is something minor I am missing but I cannot for the life of me figure out how to connect to a web service that I have created in my local iis.

  1. I have created a basic web service and it is running under iis. I can connect to it no problem if I create a console application and add a web referenec.
  2. I have created a Windows mobile pocket pc project and cannot connect to the web service.
  3. I can connect to the internet through the device emulator.
  4. I cannot browse to the web service or anything else on my local machine. To browse to the web service I am trying to use http://192.168.15.100/MyWebService/Service.asmx

I am solutely loosing my mind here....I have seen a other posts with the same problem but no solution has corrected the issue.

Also My lacal machine is connect to a workgroup....do I need to join and if so, how do I do that

Anyone have any idea

CES



Re: Device Emulator General Cannot connect to web service on my local machine...

Mohit Gogia

Please see if this helps http://blogs.msdn.com/mohitgog/archive/2006/04/20/579641.aspx.

-Thanks,

Mohit





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Thank you for the reply.

After restarting my PC I was able to get it going with some issues. Do you need to disable/enable the network card after you turn off the firewall or restart the computer This is my best guess as to why it wouldn't work and now it works a bit.

Anyhow, there seems to be a problem when adding the web reference...when I go to add a reference the "Add Web Reference" dialog will search for a very very very long time before gviing me a "Unable to connect to remote server" error message. Does this symptym sound like anything familiar....I even get the same response from typing http://192.168.15.100:8608/WebService/Service.asmx into the address bar of IE on my desktop computer. I have also tried to add the service to a virtual directory under the Default Website in IIS 5. My OS is XP Pro.

I have a pentium processor 2.4 GHz with 1.5 GB of DDR 400 RAM and during this time I have half or more of the RAM available....is a virus possible

Any suggestions would be very much appreciated.

CES





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Just wanted to mention, that it did work momentarily and then just stopped again



Re: Device Emulator General Cannot connect to web service on my local machine...

Mohit Gogia

Please make sure you have not enabled NE2000 card and cradled at the same time.

-Thanks,

Mohit





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

The device is connected and cradled. As for the NE2000 card, I have not changed any default settings on the emulator.

The problem seems to not be exclusively with the emulator itself because as I mentioned, I get the same problem when trying to browse to the web service through IE on my desktop as well.

Any idea what could cause this sort of intermitant problem where at one point it will connect and then it will not and yet at another point it will connect but it will take a very very long time to do so

I am being clear enough

Really stuck here.





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

I should also mention that when I run the web service project in VS it comes up no problem (it of course uses lcaolhost in the url), at least the first time. But when I try to use the same URL in IE on my desktop using the IP address of my computer...it doesn't work.



Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Sorry for all the posts...

At the risk of going down the wrong path, it appears as though the IP address could be where the problem is. I can access the web service with seemingly no problem through IE on my desktop computer using the url http://localhost:8608/WebService/Service.asmx but when I try to acces the service with the IP(changing "localhost" to 192.168.15.100), that is where the issue sems to come up...

Does that help at all

Thanks





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Am I missing something here

I have tried two other machines and they are able to browse to the web service using localhost(http://localhost:8608/WebService/Service.asmx) but non of them are able to browse to the service using the ip address...Sounds like I am missing something basic but I have no idea what the problem is..

I have even just created a new web service with the Hello World and get the same results....something tells me that I am going to have egg on my face after this but I spent all afternoon looking into this and I am really stuck here.

Can you offer any ideas





Re: Device Emulator General Cannot connect to web service on my local machine...

Zero Dai - MSFT

Dear friend,

Would you please check if the IP address is the right one

If 192.168.15.100 is the right IP address, you are supposed to access the web service using http://192.168.15.100:8608/WebService/Service.asmx on both desktop PC and mobile device if the network has been configured correctly. (we should use IP address instead of Localhost in your device application.)

Furthermore, you need to check if the IP address assigned to your desktop PC is static or dynamic. If it is dynamic, that is, it will change when you restart your machine. In that case, you cannot use you IP address with hardcoding. Thanks!

Regards,

Zero Dai - MSFT






Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Hi thanks for the reply.

Yes the ip address is correct...it is just the ip address of my local machine (for testing) and it is dynamic but this is the current ip address.

As I have mentioned before, if I use localhost in place of the ip address and browse to the service with IE it works.

If I use the ip address and try to browse to IE, it just says waiting for http://192.168.15.100/WebService/Service.asmx in the status bar and never gets there.

Just to reiterate, I am using:

- IIS 5.1

- Windows XP Professional

- .NET Framework 2.0

- Internet Exporer 7

Any other suggestions

Thanks,

CES





Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

I just tested with the ip address and if I let the browser try to connect for a few MINUTES, it will eventually connect...obviously that are far too long...

I also checked it using the loopback address 127.0.0.1 and this seems to work at a good speed.

Does that give anyone any ideas what might be wrong

There is nothing running on the machine when I tested this.





Re: Device Emulator General Cannot connect to web service on my local machine...

Zero Dai - MSFT

Dear friend,

If you set a proxy configuration in your Internet Explorer, this problem will be raised. So, try to remove the proxy settings and then use you IP address again. Thanks!

Regards,

Zero Dai - MSFT






Re: Device Emulator General Cannot connect to web service on my local machine...

CES4848

Thanks for another reply but I am afraid that I have set set a proxy configuration. It is just the default settings.

Any other suggestions





Re: Device Emulator General Cannot connect to web service on my local machine...

Zero Dai - MSFT

Dear friend,

Did you add the port number after IP address

In my opinion, there's no possible that it cannot be accessed even through desktop IE in such a case.

So, I just recommend that you may post your question to other forum where you can get more chances of getting your question answered.

Thanks!

Zero Dai - MSFT