With reference to
http://www.ideablade.com/forum/forum_posts.asp?TID=1528&KW=TraceFns - http://www.ideablade.com/forum/forum_posts.asp?TID=1528&KW=TraceFns
IdeaBlade.Core.TraceFns throws System.TypeInitializationException just by having the following codes in in WinForm Client program's Main entry:
/// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { IdeaBlade.Core.TraceFns.WriteLine("Hello");
System.TypeInitializationException: The type initializer for 'IdeaBlade.Core.TraceFns' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object. at IdeaBlade.Core.TraceFns.StackWriteLine(StackFrame pStackFrame, String pMessage) at IdeaBlade.Core.TraceFns.StackWriteLineIf(Boolean pCondition, String pMessage) at IdeaBlade.Core.TraceFns.WriteLine(Object value) at IdeaBlade.Core.AuthHelper.LoadRuntimeLicense(Action`1 errorCallback) at IdeaBlade.Core.IdeaBladeConfig.Initialize() at IdeaBlade.Core.IdeaBladeConfig.get_Instance() at IdeaBlade.Core.TraceFns.Initialize() at IdeaBlade.Core.TraceFns..cctor()
Remove the above line and WinForm Client works as usual, IdeaBlade logs written to:
<logging logFile="DebugLog.xml" />
I am still using DevForce v.5.2.3.1, server-side has no such problem. With DevForce supporting SilverLight clients now, is it now not possible to use IdeaBlade.Core.TraceFns in WinForm Client too?
Thanks
Sebastian
http://www.ideablade.com/forum/forum_posts.asp?TID=1528&KW=TraceFns -
|