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 / December 2005

Tip: Looking for answers? Try searching our database.

Sporadic Web Service Timeout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sabran - 08 Dec 2005 21:07 GMT
Hi all -

I'm in the midst of developing an intranet application using the 1.1
.NET Framework. All of the development is being done in VS.NET 2003 on
Win2k3 boxes using VB.NET. Within certain parts of the application I
make use of Hosted Windows Forms (HWF). These HWFs need to make very
lightweight web service calls to pull down some relevant data.

I have a testing environment set up that hosts the application on
Win2k3 boxes. When I access this application through any of our
development machines (also Win2k3), everything works flawlessly. When I
try to access the application through our testing machines (Windows XP
Pro), it's a different story. I'm noticing sporadic timeout errors.
I've messed around with it for a few hours, but I haven't been able to
determine how to consistently produce this error. It seems sporadic,
and only on our WinXP Pro boxes.

Does anyone have any experience with this sort of thing? I'm having a
lot of difficulty figuring this out.
Sabran - 12 Dec 2005 17:24 GMT
I dug into the IIS log on the web server, and it doesn't look as if the
server actually receives a request from the XP box when I get this
timeout. It's as if the XP box is trying to reuse a thread that has
already timed out on its end, so the request never leaves the machine.
I don't have a lot of experience with networking, so that's just a
guess.

Does anyone out there have any suggestions on how to troubleshoot this
a bit better?

Thanks,
- Keith
Sabran - 13 Dec 2005 18:27 GMT
I'm still at a loss about this issue, but I definitly need a
resolution. Would someone out there be able to provide another message
board where I might be able to get help?

Thanks!
- Keith
m.posseth - 14 Dec 2005 11:33 GMT
create the webservice object on every call ( challenge response scenario ) i
have seen manny people setting one time a refernce during startup of there
app and then polling the webservice methods every time and run in to
severall strange errors   ( same happens with the webclient object )

so my Tip is declare the webservice object type and then in your methods
create them use them and dispose them , with this aproach you should be safe

regards

Michel Posseth [MCP]

> Hi all -
>
[quoted text clipped - 15 lines]
> Does anyone have any experience with this sort of thing? I'm having a
> lot of difficulty figuring this out.
Sabran - 14 Dec 2005 17:49 GMT
Thanks for your response, Michel. We are already following your advice.
Every time we make a webservice call, we are instantiating of the web
service. Do you have any other suggestions?

Thanks

- Keith
m.posseth - 15 Dec 2005 09:21 GMT
well another tip is that you might enable the cache attribute in your
webservice method

like this
<WebMethod(MessageName:="altnameofwebmethod", CacheDuration:=600)> _

Public Function fblnMethod(ByVal testparam As Integer) As Boolean

'dummy method

End Function

if a parameter thrown in the method always returns the same data , and this
service is called frequently this will give you a hughe performance boost

regards

Michel posseth [MCP]

> Thanks for your response, Michel. We are already following your advice.
> Every time we make a webservice call, we are instantiating of the web
[quoted text clipped - 3 lines]
>
> - Keith
Sabran - 15 Dec 2005 14:33 GMT
Thanks for the tip, Michel. I will look into seeing if that will help
with performance in general. Unfortunately, it didn't seem to help with
the timeout errors we're receiving. Since it's isolated to that one
machine, I'm wondering whether or not it has to do with network
connectivity or something of the sort.
m.posseth - 15 Dec 2005 19:58 GMT
You wouldn`t be the first strugling to get a problem solved in his software
, and later turns out it is a problem with the hardware :-)

so if it is isolated to this one machine ,,, i would sure first check the
overall network connectivity ,,, i had in the past some problems with cheap
network cards so i swear with 3com cards ( one time with a SMC card it
worked perfect untill i moved large amounts off data ,, and the connection
was just once in a while broken , changed the card and the problem never
occured )

regards

Michel Posseth [MCP]

> Thanks for the tip, Michel. I will look into seeing if that will help
> with performance in general. Unfortunately, it didn't seem to help with
> the timeout errors we're receiving. Since it's isolated to that one
> machine, I'm wondering whether or not it has to do with network
> connectivity or something of the sort.
Sabran - 20 Dec 2005 22:13 GMT
I think I'm going to try swapping out the network card later this week.
I'll post whether or not that solved the issue.

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.