472,780 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

"The page cannot be displayed" when running web service

VMI
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.
Apr 26 '06 #1
1 2551
VMI,
try this:
businessLogic bLogic = new businessLogic();
try{
bLogic.processAsciiFile("test");
return "complete";
}
catch(Exception ex)
{
return ex.Message+ex.StackTrace;
}
}
if you get into the habit of wrapping your code in exception handling
blocks, you'll spend less time posting to newsgroups!

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"VMI" wrote:
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.

Apr 26 '06 #2

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

Similar topics

7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
14
by: VMI | last post by:
Everytime I open my machine's MSDN and look for a subject, when I double-click on anything, I get "The page cannot be displayed" . What's wrong?
1
by: JohnZing | last post by:
i tried to install asp.net forums all went ok, but after login i always get "Object moved to here." in firefox or "The page cannot be displayed" in IE when i hit refresh, the page loads fine. ...
1
by: emon.haider | last post by:
Hi guys, I just made a web application using ASP.Net and C#. The application compiles and works fine from my workstation, but after I uploaded it to my webserver, I am getting an error of "the...
9
by: Martin Eyles | last post by:
Hi, I have set up an asp.net website on another PC in order to test it. The site was fine on my PC, but on the new PC all the pages give the error "The Page Cannot Be Found". Some legacy pages...
2
by: spam1 | last post by:
Hi all, I'm not new to ASP.NET but I'm trying to get a simple Hello World page going on IIS 6.0 on Windows 2003. I'm connecting from the local machine. It comes back with the standard "The...
5
by: David Thielen | last post by:
Hi; We have our app up on a beta server. Sometimes people from outside the firewall get "The page cannot be displayed" when they try to access it. A couple of weird things about this: 1) If...
2
by: jhaxo | last post by:
I have a web page that I installed to IIS 6.0 from a web deployment project successfully. I am trying to deploy the same application to laptops that are running IIS 5.0. I am getting an error...
4
by: Peter | last post by:
I have the following code which works fine in IE6 and IE7 and FireFox, but when I run IE6 on Citrix I get "The page cannot be displayed" in the iframe. We don't have IE7 on Citrix so I can't try...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.