Culprit is the following method :
[Conditional("TRACE")] static public void Assert(bool condition, string msg)
{
if (condition == false)
{
Trace.WriteLine(msg);
Trace.Assert(condition, msg);}
}
I have commented Trace.Assert(condition, msg); for the time being.
Any other way to skip this ?
----- Original Message ----
From: Kulvinder Singh <[EMAIL PROTECTED]>
To: Google API <[email protected]>
Sent: Wednesday, May 23, 2007 10:11:07 AM
Subject: How to handle Trace.Assert statement ? - Avoid popus due to Trace.Assert
From: Kulvinder Singh <[EMAIL PROTECTED]>
To: Google API <[email protected]>
Sent: Wednesday, May 23, 2007 10:11:07 AM
Subject: How to handle Trace.Assert statement ? - Avoid popus due to Trace.Assert
Hi,
I am using Google Calendar C# API 1.0.9.6. I have delpoyed it on a testing machine but it is giving me a pop up as shown .

When i debugged to look into the reason, i found that this testing machine didnt have an Internet Connection enabled. Also, the statement responsible for this to happen is :
Tracing
.Assert(authToken != null, "did not find an auth token in QueryAuthToken");
in protected string QueryAuthToken(NetworkCredential nc) method
in public class GDataGAuthRequest : GDataRequest
Can anybody tell me what should i do so that i dont get these popups ?
I had deployed my code on using a "Release" build on testing machine.
Thanks
Kulvinder Singh
