Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / December 2004

Tip: Looking for answers? Try searching our database.

Unexplained Remoting error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Long - 16 Dec 2004 00:04 GMT
Hello,
I have an application that I communicate with via .NET remoting. I wrote a
test harness that repeatedly hits the server with requests, one after the
other, in serial. The app does fine until I hit somewhere around 6500
successful returns from the server and then I get this Exception:
"An unhandled exception of type 'System.Runtime.RemotingException' in
mscorlib.dll"

It also wants me to turn on custom errors which I don't know how to do for
remoting.

Does anybody have any suggestions on how I can figure out what might be
causing this? It is, of course, not realistic to step through the thing 6500
time as each request can take several seconds.

Any thoughts are much appreciated.

Steve
Sam Santiago - 16 Dec 2004 03:13 GMT
Sounds like you are deploying in IIS if you are getting a turn on custom
errors message.  Check out the webconfig file and modify the customErrors
element.  Here's the definition:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/g
ngrfCustomerrorsSection.asp


You can trap errors in your remote object and log them to a file, event log,
or whatever is convenient for you and then rethrow the exception.  Make sure
you have a try..catch block around your exposed remote methods to do so.

Thanks,

Sam

Signature

_______________________________
Sam Santiago
ssantiago@n0spam-SoftiTechture.com
http://www.SoftiTechture.com
_______________________________

> Hello,
> I have an application that I communicate with via .NET remoting. I wrote a
[quoted text clipped - 15 lines]
>
> Steve
Steve Long - 16 Dec 2004 17:02 GMT
Sam,
thanks for the reply. It is not an IIS deployment so I added mode="On" in
the customErrors tag  of machine.config. After trapping and error in the
body of the remote function, I'm getting:
"Input string was not in a correct format" Message but the parameters look
correct as I logged them as well. This error doesn't occur on my development
machine, only on a test box. ????
Confused..

Steve

> Sounds like you are deploying in IIS if you are getting a turn on custom
> errors message.  Check out the webconfig file and modify the customErrors
> element.  Here's the definition:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/g
ngrfCustomerrorsSection.asp


> You can trap errors in your remote object and log them to a file, event log,
> or whatever is convenient for you and then rethrow the exception.  Make sure
[quoted text clipped - 23 lines]
> >
> > Steve

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.