Hi. I'm going to develop a service which will run on a different server than
the web server. So I thought about hosting it in Windows service.
Everything went fine running it on local machine as Windows service. But
when I put that service running in different machine.
First time I started the client it worked well and it could call the service
repeatedly.
So the I close the client and start it again.
It's not working anymore. No error messages but client just hangs in proxy
class method invoke. I finally let it stay there for half hour. No change.
OK. So I get the Web Services Enhancements 3.0 Hands On Lab - Messaging
samples and do the CS\Basic\Part2\before. And create a TcpStockService.
It runs nicely on my local machine. I can close the client and start it
again no problem.
Then I change the service address to remote machine IP and rebuild the
TcpStockService. Copy it to remote machine. Start the client again and use
this time the remote service. On first run it works.
On second run it hangs. At this point I'm feeling slightly frustrated, but
on the happy side, it seems it's not me at fault ;) (hopefully).
So I close the kill the client, browse through this forum and I didn't see
anything similar. So I started the client again. Now it works ???. So I close
it and start again, it doesn't work.
Okay something happened. I kill the client again wait for 10-15 minutes.
start it and it works. If I close it and try immediately again, it's not
working.
I would appreciate if someone can explain to me what is happening.
Thanks,
Jyri
Jyri Hujanen - 01 Feb 2007 09:09 GMT
Update.
So the server is running under Virtual server 2005 on my laptop.
Finally I tried running the client from different computer. Thre it works.
So I thought something is wrong with my installation. And therefore wen't
and nuked my installation. Now after installing OS and all software back. :(
IT still doesn't work.
So then I took the service to the other machine and tried to use it from my
computer. Now it works. I can close the client and start it again.
Conclusion. Somehow that I had the service running on the same machine, but
under Virtual Server, and client on the host machine just didn't work.
I will try hosting it under VMware and tell what happens.
Jyri
Jyri Hujanen - 01 Feb 2007 11:22 GMT
OK. Just finished installing everything under VMware. And now everything
works just fine.
So I'm going to use that for virtualization for now. sigh.
Jyri