1

Closed

TracerX with Addin Application

description

Similar with Web Application issued, there are problems with an Adding Application.
 
That is what I can see: (I'm working in a Visio Addin)
 
At private static string FileLogging.GetDefaultDir(), Assembly.GetEntryAssembly() return null, and then this function return GetWebAppDir(), but application is not a Web Application and the inner System.Web.HttpRuntime.AppDomainAppPath call throw a nasty exception
 
 
Regads
Closed Jan 12, 2011 at 1:47 AM by MarkLTX
Fixed in an earlier release (like 4.0).

comments

JoRoPi wrote Apr 23, 2008 at 8:39 AM

Actually, I've implemented this workaround:
private static string GetWebAppDir()
{
string rc = @"\";

try
{
    rc = System.Web.HttpRuntime.AppDomainAppPath;
}
catch 
{
    rc = Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
}
return rc;
}

wrote Jan 12, 2011 at 1:47 AM

wrote Feb 13, 2013 at 10:04 PM

wrote May 16, 2013 at 7:57 AM