NLog: Could not load file or assembly
Type
- Bug
NLog version:
- 4…4.3
Platform: .Net 4.6.2
Current NLog config
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<variable name="myvar" value="myvalue"/>
<targets>
<target xsi:type="File" name="logFile" fileName="${basedir}/logs/WebAPI/${shortdate}.log" layout="${longdate} ${uppercase:${level}} ${logger} ${callsite} ${callsite-linenumber} ${message} ${exception} " />
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="logFile" />
</rules>
</nlog>
I have a MVC system running perfectly fine in my developing environment but as soon as I publish the site into my remote server, it gives me this error: Could not load file or assembly ‘NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c’ or one of its dependencies. The system cannot find the file specified.
I doubled check the presence of the DLLs in correspondent folders and I can’t figure it out why I’m having this issue… I also did a thorough check on access and security permission on the project folders.
Any help would be much appreciated!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26 (13 by maintainers)
@304NotModified Not trying spam here. But @kezcwy mentioned as not working, did that got resolved?