Hi,

When I tried to publish a module it gives the following error, kindly help.


Internal Error

An error occurred in task 'Preparing working directories for 'ModuleName'':
The process cannot access the file 'OutSystems.Plugin.Nlog.dll' because it is being used by another process.
Details : System.IO.IOException: The process cannot access the file 'OutSystems.Plugin.Nlog.dll' because it is being used by another process.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#Op.#62b()
   at OutSystems.RuntimeCommon.Retry.<>c__DisplayClass2_0.<DoWithRetries>b__0()
   at OutSystems.RuntimeCommon.Retry.DoWithRetries[T](Func`1 functionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.RuntimeCommon.Retry.DoWithRetries(Action actionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at #WTb.#5Wb.InnerExecute(#3Wb& result)
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

Exception Details:
[1] Internal Error: An error occurred in task 'Preparing working directories for 'ModuleName'':
The process cannot access the file 'OutSystems.Plugin.Nlog.dll' because it is being used by another process.
Details : System.IO.IOException: The process cannot access the file 'OutSystems.Plugin.Nlog.dll' because it is being used by another process.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#Op.#62b()
   at OutSystems.RuntimeCommon.Retry.<>c__DisplayClass2_0.<DoWithRetries>b__0()
   at OutSystems.RuntimeCommon.Retry.DoWithRetries[T](Func`1 functionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.RuntimeCommon.Retry.DoWithRetries(Action actionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at #WTb.#5Wb.InnerExecute(#3Wb& result)
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.Run(InputType context, IMessageBroker messageBroker, OutputType& result)
   at OutSystems.HubEdition.DeploymentController.Tasks.OneClickPublish.PrepareCompileTask.InnerExecute(PrepareCompileOutput& result)
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.Run(InputType context, IMessageBroker messageBroker, OutputType& result)
   at OutSystems.HubEdition.ServerCommon.Tasks.TaskRunner.Run()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at #9Xb.#2Yb.#uo.#N4b()
   at OutSystems.HubEdition.ServerCommon.Tasks.TaskRunner.Run()
   at #9Xb.#2Yb.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()
   at OutSystems.HubEdition.DeploymentController.Compiler.<>c__DisplayClass261_0.<PublishOml>b__0()
   at OutSystems.HubEdition.DeploymentController.Compiler.PublishOml(Object publishContext)
   at #qPb.#Sub.#AQ.#3Cb(Object s)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[2] System.IO.IOException: The process cannot access the file 'OutSystems.Plugin.Nlog.dll' because it is being used by another process.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#Op.#62b()
   at OutSystems.RuntimeCommon.Retry.<>c__DisplayClass2_0.<DoWithRetries>b__0()
   at OutSystems.RuntimeCommon.Retry.DoWithRetries[T](Func`1 functionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.RuntimeCommon.Retry.DoWithRetries(Action actionToExecute, Int32 maxRetries, Int32 delayBetweenRetriesMs, Action`2 logException)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at OutSystems.HubEdition.DeploymentController.CompilerServiceUtils.#LPb(String path)
   at #WTb.#5Wb.InnerExecute(#3Wb& result)
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask`3.InnerExecute()
   at OutSystems.HubEdition.ServerCommon.Tasks.AbstractTask.Execute()

Hi Pratham,

If you are working  On Premises environment restarting your Outsystems services may resolve this issue . If you are working on Outsystems Cloud environment than please contact Outsystems Support (support@outsystems.com) for this.


Regards,

-PJ-