Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
FileNotFoundException on log4net.dll when running inside other application #15
Comments
|
This is an interesting example developing a plug-in because normally people make applications. I'm not a .net expert, but do you need to add the library reference to your solution? I'm assuming it will need to be bundled with your plugin when you build the release. |
|
Thanks for your answer Jason. The references are already added and log4net works when I'm not making use of Loggly functions. I'm also assuming that everything needs to be bundled on release. I posted my question here as well: The structure is Solidworks > SolidDna wrapper (from the link) > my code. Apparently we run inside the SolidWorks appDomain and therefore it looks in the application folder for the log4net dll when referenced by Loggly. It's still unclear why log4net works on itself, but its a start :) |
|
@brinkdinges is this still an issue or was the cause in SolidWorks? |
|
It turned out that SolidDna, that sits between my add-in and SolidWorks, wasn't able to load external DLLs. It does now, so no fault of Loggly or log4net. Thanks for bringing it up though, sorry that I didn't mention this sooner. |
Hi there,
I'm developing an addin for an existing application and I'm currently in the process of adding log4net. I'd love to be able to log to Loggly as well.
From my current understanding, my plugin isn't a complete application and therefore app.config doesn't work for configuring log4net. I got it writing to a text file using this example. Now as soon as I add a reference to log4net.loggly, I get a FileNotFoundException on the log4net dll. It only works when I copy the dll manually to the host application folder.
This my code to initialize the LogglyAppender (plus a "using log4net.loggly;" ):
Can this be caused by the way you handle references? What can I change in your or my code to get this working without copying the dll?
The text was updated successfully, but these errors were encountered: