iis - Enterprise library logging blocks Web Deploy from Visual Studio because the log file is locked -
any idea how fix this? have defined:
<loggingconfiguration name="" tracingenabled="true" defaultcategory="general"> <listeners> <add name="listener1" type="microsoft.practices.enterpriselibrary.logging.tracelisteners.formattedeventlogtracelistener, microsoft.practices.enterpriselibrary.logging, version=6.0.0.0, culture=neutral, publickeytoken=11bf3356af364e15" listenerdatatype="microsoft.practices.enterpriselibrary.logging.configuration.formattedeventlogtracelistenerdata, microsoft.practices.enterpriselibrary.logging, version=6.0.0.0, culture=neutral, publickeytoken=11bf3356af364e15" source="enterprise library logging" formatter="text formatter" log="" machinename="." traceoutputoptions="none" /> <add name="listener2" type="microsoft.practices.enterpriselibrary.logging.tracelisteners.rollingflatfiletracelistener, microsoft.practices.enterpriselibrary.logging, version=6.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" listenerdatatype="microsoft.practices.enterpriselibrary.logging.configuration.rollingflatfiletracelistenerdata, microsoft.practices.enterpriselibrary.logging, version=6.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" filename="mylog.log" /> </listeners>
web deployment task failed. (web deploy cannot modify file 'mylog.log' on destination because locked external process. in order allow publish operation succeed, may need either restart application release lock, or use appoffline rule handler .net applications on next publish attempt.
i want one-click publish. there way mitigate issue? have expected web deploy stop site , release lock, perhaps else affecting it?
edit: tried adding
<enablemsdeployappoffline>true</enablemsdeployappoffline>
to pubxml still same error.
Comments
Post a Comment