Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2007

Tip: Looking for answers? Try searching our database.

Problem accessing service on remote machine after client restart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jyri Hujanen - 30 Jan 2007 10:16 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.