Click here to Skip to main content
15,897,891 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Disable Browser back button in FireFox Pin
Sandeep Akhare19-Jun-07 23:52
Sandeep Akhare19-Jun-07 23:52 
GeneralRe: Disable Browser back button in FireFox Pin
dhulipudi20-Jun-07 2:18
dhulipudi20-Jun-07 2:18 
Questionperiodic update of gridview Pin
shafyq19-Jun-07 21:39
shafyq19-Jun-07 21:39 
AnswerRe: periodic update of gridview Pin
shafyq19-Jun-07 21:55
shafyq19-Jun-07 21:55 
Questionasp.net, access database Pin
ling_luv19-Jun-07 21:36
ling_luv19-Jun-07 21:36 
AnswerRe: asp.net, access database Pin
Chetan Ranpariya19-Jun-07 21:50
Chetan Ranpariya19-Jun-07 21:50 
GeneralRe: asp.net, access database Pin
ling_luv19-Jun-07 21:59
ling_luv19-Jun-07 21:59 
QuestionPropagating .NET remoting exception back to the remoting client Pin
Talal Sultan19-Jun-07 21:30
Talal Sultan19-Jun-07 21:30 
Hello people,

I have a system with a windows application, a web service and a remoting application (on another machine.)

The windows application calls the web service to execute some task. The web service references an assembly that will establish contact with the remoting server to execute the task. Everything works fine but if an exception is thrown by the remoting server, I am not able to propagate it back to the remoting client (web service.)

The error is:

Server encountered an internal error. For more information, turn on customErrors in the server's .config file.

Does "server" here mean the web service or the remoting server? I have added the following lines at the end of the web.config of the web service:

<system.runtime.remoting>>
    <debug loadTypes="true" />
    <customErrors mode="off" />
</system.runtime.remoting>


I tried both "on" and "off" for the customErrors but nothing works.

To test this issue, I have deliberately sent corrupted data to the remoting server in order to get an exception. I am using .NET 1.1.
In the remoting object method (the one that is called from the web service) I placed a try-catch and displayed the exception in the console (the remoting server is a console app) and I also rethrew a new application exception back. The console writes the correct exception message but it seems that the throw doesn't propagate back the exception message.

I can always get around the problem by adding a flag property and an exception message property in the remoting object. I would then catch the exception in the remoting object, set the flag to false and the message to the exception message and return. Back on the web service, I would test if the flag is false and continue from there.

I would prefer to be able to propagate the exception in a clean manner so if anyone has any clue, I would appreciate it.

Thanks,
Talal


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook

QuestionPreventing SQL Injection [modified] Pin
ASPnoob19-Jun-07 20:56
ASPnoob19-Jun-07 20:56 
AnswerRe: Preventing SQL Injection Pin
Arun.Immanuel19-Jun-07 21:08
Arun.Immanuel19-Jun-07 21:08 
AnswerRe: Preventing SQL Injection Pin
badgrs19-Jun-07 23:33
badgrs19-Jun-07 23:33 
AnswerThis I too agree badgrs - chk it out here Pin
Sylvester george20-Jun-07 0:06
Sylvester george20-Jun-07 0:06 
Questionquery string Pin
saravanan0519-Jun-07 20:46
saravanan0519-Jun-07 20:46 
AnswerRe: query string Pin
Sylvester george19-Jun-07 21:12
Sylvester george19-Jun-07 21:12 
AnswerRe: query string Pin
Sathesh Sakthivel19-Jun-07 21:13
Sathesh Sakthivel19-Jun-07 21:13 
GeneralRe: query string Pin
Sandeep Akhare19-Jun-07 21:19
Sandeep Akhare19-Jun-07 21:19 
GeneralRe: query string Pin
Sathesh Sakthivel19-Jun-07 21:25
Sathesh Sakthivel19-Jun-07 21:25 
GeneralRe: query string Pin
Sandeep Akhare19-Jun-07 21:33
Sandeep Akhare19-Jun-07 21:33 
AnswerRe: query string Pin
Arun.Immanuel19-Jun-07 21:14
Arun.Immanuel19-Jun-07 21:14 
AnswerRe: query string Pin
Sandeep Akhare19-Jun-07 21:17
Sandeep Akhare19-Jun-07 21:17 
QuestionRe: query string Pin
saravanan0519-Jun-07 22:54
saravanan0519-Jun-07 22:54 
QuestionRe: query string Pin
Sandeep Akhare19-Jun-07 23:23
Sandeep Akhare19-Jun-07 23:23 
QuestionRe: query string Pin
saravanan0520-Jun-07 0:00
saravanan0520-Jun-07 0:00 
AnswerRe: query string Pin
Sandeep Akhare20-Jun-07 0:16
Sandeep Akhare20-Jun-07 0:16 
QuestionWho to Rewrite URL? Pin
chand1019-Jun-07 20:46
chand1019-Jun-07 20:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.