I have a web service that I use to kick off a long-running job that dumps a
lot of data to an XML file (takes about 5 minutes). I need to have ASP.NET
produce the XML file as the web site has the code I need (and extracting it
into a stand-alone EXE would be a LOT of work). The webservice client is a
vb.net app with a vs-generated webservice.
Currently, the webservice seems to timeout after about 120 seconds.
I have been struggling with this for 2 days now... any help would be much
appreciated.
I have set the processModel in the machine.config:
<processModel responseDeadloc kInterval="00:3 0:00"
responseRestart DeadlockInterva l="01:00:00" autoConfig="tru e"/>
and executionTimeou t & debug="false" in web.config:
<httpRuntime executionTimeou t="9000" maxRequestLengt h="1048576" />
<compilation debug="false" defaultLanguage ="vb">
IIS Web Configuration:
keep-alives enabled, connection timeout 120 seconds
and my client has an infinite timeout:
Dim t As New MyWebService
t.Timeout = System.Threadin g.Timeout.Infin ite
EventLog1.Write Entry("start webservice request: " & CStr(DateTime.N ow))
Try
EventLog1.Write Entry("webservi ce returned: " & CStr(DateTime.N ow) &
t.writexml)
Catch ex as exception
EventLog1.Write Entry(ex.messag e)
End Try
I get the following error from ASP.NET on the server logs after about 120
seconds:
Event code: 3001
Event message: The request has been aborted.
Event time: 2006/11/27 08:58:28 AM
Exception type: HttpException
Exception message: Request timed out.
And a general exception on the client:
Exception: request failed with an empty response.
If I restart the Application Pool and the Web site, and immediately call the
WebService it occasionally runs fine - but then only once, sometimes.
Anyone have any further ideas what I can do to fix this? Or a better way to
invoke long-running jobs in ASP.NET.
Thanks
Chris 1 10978
As a follow-on to this:
I think I've found the culprit:
pingFrequency/pingTimeout/PingResponseTim e
What I think is happening is that "Enable Pinging" set on for the
Application Pool, the worker process is being pinged, failing and then being
restarted. PingInterval of 30 seconds + PingResponseTim e of 90 seconds=120
seconds.
Does anyone think this could be what is happening. On the basis of my
slightly haphazard testing so far, it seems to be...
"tudor" wrote:
I have a web service that I use to kick off a long-running job that dumps a
lot of data to an XML file (takes about 5 minutes). I need to have ASP.NET
produce the XML file as the web site has the code I need (and extracting it
into a stand-alone EXE would be a LOT of work). The webservice client is a
vb.net app with a vs-generated webservice.
Currently, the webservice seems to timeout after about 120 seconds.
I have been struggling with this for 2 days now... any help would be much
appreciated.
I have set the processModel in the machine.config:
<processModel responseDeadloc kInterval="00:3 0:00"
responseRestart DeadlockInterva l="01:00:00" autoConfig="tru e"/>
and executionTimeou t & debug="false" in web.config:
<httpRuntime executionTimeou t="9000" maxRequestLengt h="1048576" />
<compilation debug="false" defaultLanguage ="vb">
IIS Web Configuration:
keep-alives enabled, connection timeout 120 seconds
and my client has an infinite timeout:
Dim t As New MyWebService
t.Timeout = System.Threadin g.Timeout.Infin ite
EventLog1.Write Entry("start webservice request: " & CStr(DateTime.N ow))
Try
EventLog1.Write Entry("webservi ce returned: " & CStr(DateTime.N ow) &
t.writexml)
Catch ex as exception
EventLog1.Write Entry(ex.messag e)
End Try
I get the following error from ASP.NET on the server logs after about 120
seconds:
Event code: 3001
Event message: The request has been aborted.
Event time: 2006/11/27 08:58:28 AM
Exception type: HttpException
Exception message: Request timed out.
And a general exception on the client:
Exception: request failed with an empty response.
If I restart the Application Pool and the Web site, and immediately call the
WebService it occasionally runs fine - but then only once, sometimes.
Anyone have any further ideas what I can do to fix this? Or a better way to
invoke long-running jobs in ASP.NET.
Thanks
Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jo |
last post by:
Hi,
I've got a win app in vb.net that's calling a webservice
method in a thread. All webservice functions are carried
out on that thread - there's no communication required
back to the calling thread. The problem occurs when the
web method runs for a longer period of time - example 10
minutes. All functions are carried out correctly and the
web method completes but it returns an
error "QueryInterface for interface
|
by: cyberstrike |
last post by:
Hi guys, my company was wondering if it's possible to develop
ASP.NET/Webservices easily using a IIS installed on a server instead of
installing IIS locally on the development boxes. Can you develop for
ASP.NET/Webservices without IIS installed on your local box without having to
resort to more difficult debugging or using notepad for development?
Thanks for the help!!
|
by: Hudson Mendes |
last post by:
I'm not believing in results of many tests I did, but they justify this Post
title.
How may I setup my WebServices or ASPNET Processo to process more than one
call per time???
Look:
<processModel enable="true" timeout="Infinite" idleTimeout="Infinite"
shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000"
|
by: Lloyd Dupont |
last post by:
Hi, I'm new to WebService but had to investigate as we will have a java
server part and a .NET client.
I read through and tested this Sun's tutorial:
http://java.sun.com/developer/technicalArticles/J2EE/j2ee_ws/
I finally make it work but while I could see the WSDL file with something
like
http://localhost:8080/math-service/math?WSDL
|
by: Antuane |
last post by:
any one have any idea how transactions could be enabled in webservices.
i.e., suppose i've got 2 methods - one to add a contact, & the other to set
some miscellaneous details for the contact, in a webservice.
Now the client uses the above two methods & if the client is happy with the
return values of the above two methdos, ONLY then are the changes made on
the server to be commited. (there'd be three other methods,
begin-transaction,...
| |
by: Mike |
last post by:
Hi all,
I have written a webservice which I am using in my smartphone applicaiton.
I have tried the webservice with a WinForms client and it works time and time
again perfectly. When I include it in my smartphone application, it will
work the first time and return ther query set, however when i try it again i
get the following error :
"Server found request content type to be 'text/html; charset=Windows-1252',
but expected 'text/xml'."
|
by: Komandur Kannan |
last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The
backend is Oracle and a middle tier web services development done in Vb.net.
We use pessimistic Locking due to specific business needs
When such a lock is made for a transaction (this code is in the web service)
and the handhelds are terminated abnormally (cold booted or battery low),
the lock still remains. The Web service's connection to oracle is still...
|
by: WSE with SSL and large amount of data |
last post by:
Hi there,
What's the better strategy for uploading large files trough webservices?
I can use Dime/WS-Attachments but for files with over 5MB in size, maybe I
got some timeout/refuse problems in my server. Is it a good idea upload the
files in chucks? In this case, how can I control and validate the
transfering, and ensure the security? As a matter of fact, I have to use
standarts for EDI processes.
Thanks in advanced.
|
by: failfaizan |
last post by:
I made a webservice but i got the following error:
Custom tool error:Unable to import WebService/Schema.Unable to import binding.
Is there any problem in my WSDL.Here is my WSDL file.Plz help me i am new one in making webservices.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s1="http://www.smarttrust.com/mdm/clientprovisioning_1.0/initiator-types" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |