473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Double Processing within C# asmx

Hello.

If have written a webservice within C# that is called from
an aspx and processes incoming data correctly. The problem
is that the ASMX runs twice before returning. I have
debugged the application and can see the ASMX duplicate
the processing effort. In debug I can see it hit the
return method, but instead of returning to the caller
immediately it reprocesses the data a second time before
properly returning to aspx caller.

Is there a dispose or close method that I need to call in
addition to or instead of simply returning from the main
method?

Any help appreciated.

Nov 15 '05 #1
1 1881
No, there are no additional methods that need to be called in this scenario.
Since you mentioned the caller is an aspx page, check there first to
determine that you aren't actually calling the service more than once. This
happens often by accident with aspx pages due to forgetting a postback
check, event handler doing the same thing, etc....

If you can definitively rule out aspx as the culprit, try to view the http
request coming in to the web service. Alternately, to absolve the service
as the problem, try writing a 'lastaccessed.txt' file that stamps the time
and a guid to each request when the method in question is acessed. If you
only find one request and two executions, then yes, I'd agree something is
recursive in the process (but maybe a not .NET issue -- network, iis,
etc...)

Trebek

"Stevenson" <gm************@hotmail.com> wrote in message
news:67****************************@phx.gbl...
Hello.

If have written a webservice within C# that is called from
an aspx and processes incoming data correctly. The problem
is that the ASMX runs twice before returning. I have
debugged the application and can see the ASMX duplicate
the processing effort. In debug I can see it hit the
return method, but instead of returning to the caller
immediately it reprocesses the data a second time before
properly returning to aspx caller.

Is there a dispose or close method that I need to call in
addition to or instead of simply returning from the main
method?

Any help appreciated.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your...
4
by: Thomas Miskiewicz | last post by:
Hi! Is using of a double quotation mark with a URL a problem? For example: http://myserver.com/query?field1=something&field2=test&params="field1=test1"+"field2=test2" Regards Thomas
12
by: Assaf | last post by:
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to...
3
by: SAL | last post by:
I’m fairly new to .NET. I’ve been developing in .NET for about 6 months. I have over 10 years experience with VB in general. Here’s what I have done so far: 1. Project is entirely .NET...
8
by: SK | last post by:
Hello all, I need to pass a string to a sql procedure in this fashion <DateParam> <BeginDate="2007-01-25" BeginTime="08:30 AM" EndTime="09:45AM"/> </DateParam> If you notice the date and time...
7
by: =?Utf-8?B?TWlrZSBMb2dhbg==?= | last post by:
My environment. .Net 2.0 VS2k5 SP1, IE6 (6.0.2900.2180) I have a web content page. The page will post back twice if I am running in debug mode. However if I run through the breakpoints fast...
1
by: Spam Catcher | last post by:
Hi all, In an ASP.NET web service, is there a way I can centralize processing of SOAP Headers? Currently I need to nput my header logic into each webmethod - is there an event, mechanism,...
0
by: tavares | last post by:
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co- workers and colleagues.) ...
6
by: dang57 | last post by:
I had written a vb.net app for clients that wanted to use a datagrid like a spreadsheet. Rather than edit one line at a time, they wanted all lines available at all times. That seemed to work...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.