I'm trying to get the value of the parameters passed in to a method when an Exception is thrown via the StackTrace. An example, Method A calls Method B and Method B calls Method C on a class in the Business Object, Method C throws an exception thats caught by catch block in Method A. In the catch block I want to access the parameters passed into each of Methods A, B and C and then subsequently log them.
I have been able to get to the Parameter Name property using the code below but not to the value of the parameter. Don't know if there's something simple that I am missing. Here's my code, from the exception block catch(Exception ex) { StackTrace trace = new StackTrace(ex,0,true); for(int i=0; i< trace.FrameCount; i++) { StackFrame frame = trace.GetFrame(i); MethodInfo mi = (MethodInfo)frame.GetMethod(); ParameterInfo[] paramInfos = mi.GetParameters(); foreach(ParameterInfo paramInfo in paramInfos) { //paramInfo. textBox2.AppendText(paramInfo.Name); // ideally I would want this to be textBox2.AppendText(paramInfo.Value); } } } Can someone clue me in on what I'm missing TIA, John -----Original Message----- From: Alex Henderson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:25 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Web services authentication... I have a product developed in .Net (WinForm client + WebService server + a number of background Window services to support it) in which the client has worked fine behind various firewall configurations. Recently however we have come across something that has stopped us dead in our tracks within a clients infrastructure. The clients system makes use of an ISA server (which is their only way to contact the internet) - this server expects the user to be authenticated with AD (domain user) accounts. Now as far as I can tell we need to set the credentials to something other then the default (with the default credentials the application throws a 407 error - unauthorised/unknown proxy user) for the WebProxy... I've tried setting it to a NetworkCredentials instance with an active accounts username, password and domain - it now just sits there for 30-60 seconds before eventually timing out.. However if you load the webservices page up in a browser it's instant access... I am sending authentication info within the SOAP header for the webservice as well - I'm unsure if it's even managing to connect to the webservice at all. Has anyone had any experience with web services and accessing them through ISA proxy services that require authentication?? Any help would be great! - Alex You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.