Access Denied: lpk.dll

  
Hi everyone,

I have a problem regarding my One-Click Publish. I cannot use the 1-Click Publish because of the following exception, and it points to lpk.dll.

Internal Error

Access to the path 'lpk.dll' is denied.
Details : System.UnauthorizedAccessException: Access to the path 'lpk.dll' is denied.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
   at #8Yd.#u3.#p2d(#Z6d callType, String eSpaceName, String& espaceTemporaryPath, String& espacePublicationPath, String testAreaName, Boolean partial, Boolean cleanCode, String uniqueId)
   at #8Yd.#u3.#91d(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId, Boolean fromSS)

Exception Details:
[1] Internal Error: Access to the path 'lpk.dll' is denied.
Details : System.UnauthorizedAccessException: Access to the path 'lpk.dll' is denied.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
   at #8Yd.#u3.#p2d(#Z6d callType, String eSpaceName, String& espaceTemporaryPath, String& espacePublicationPath, String testAreaName, Boolean partial, Boolean cleanCode, String uniqueId)
   at #8Yd.#u3.#91d(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId, Boolean fromSS)
at #8Yd.#u3.#H1d(Exception ex)
   at #8Yd.#u3.#91d(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId, Boolean fromSS)
   at #8Yd.#u3.#C1d(Object operation)
   at #8Yd.#vZd.#zN.#t9d(Object s)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
[2] System.UnauthorizedAccessException: Access to the path 'lpk.dll' is denied.
   at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
   at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
   at #8Yd.#u3.#p2d(#Z6d callType, String eSpaceName, String& espaceTemporaryPath, String& espacePublicationPath, String testAreaName, Boolean partial, Boolean cleanCode, String uniqueId)
   at #8Yd.#u3.#91d(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId, Boolean fromSS)
Hi Jun,

Access denied problems are usually caused by antivirus locking files in the platform folders.
If you have an antivirus make sure you turn add exclusion rules to the outsystems platform directory.

If the problem continues, try to use some program (like process explorer) to find out what program is locking your file.

Regards,
João Rosado