I wrote a web service whose only purpose is to update a field in a table (sql
server). And everything works except for the browser window that opens up
with "The page cannot be displayed" error instead of displaying the text in
XML.
Here's more or less what I have:
[WebMethod(Description = "Stores data to DB and reports results.")]
public string checkAsciiFileCheck()
{
businessLogic bLogic = new businessLogic();
bLogic.processAsciiFile("test"); // If I comment this, I'll see the
"complete" in the new browser window in XML format. Otherwise, I get the IE
error.
return "complete";
}
If I eliminate the second line of code, I see the "complete". If I leave it,
I'll get the error. I call one SP during execution and none of the methods
returns anything (all void). Everything runs since the table is successfully
updated. The web service does nothing else.
What could the problem be? I don't have much experience with web services.
Thanks.