I developed a web service to spin thru a dataset of email
addresses and send out an email with a weekly newsletter attached as a pdf attachment. I'm using the built-in SMTP in the .NET framework to do this. I'm running XP Pro and IIS on my dev box and the web service resides at localhost\appname as you might expect. I have built a WinBased.exe as a consumer to call the web service, also sitting on my C: drive.
When I invoke the service (function as boolean) from the VS IDE it runs to completion fine and returns an xml page in the browser as TRUE. When I call the service from the consumer it gets to around the 2000th or so record in the dataset as it loops thru sending out emails and then the debug option pops up telling me the client (consumer) received invalid input (see below) and would I like to debug. The web service never hits the CATCH statements and appears to be happily in the middle of the loop at the time the web server sends the message back to the consumer. The error message from the debugger is below:
An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll
Additional information: Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:
<h1><font face=Verdana color=#ff3300>Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
</b> An error message detailing the cause of this specific request failure can be found in the system event log of the web server. Please review this log entry to discover what caused this error to occur.