cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

I am getting the following error when trying to deploy the solution NINTEXWORKFLOW2016CORE.WSP   in SharePoint 2016.

Error: The copying of this file failed: Bin\NintexWorkflowStart\Autofac.dll.
The process cannot access the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\Bin\NintexWorkflowStart\Autofac.dll' because it is being used by another process.

I have 2 App servers and 2 WFEs.   The error is only on the server that houses central admin.  It deployes to the other three servers successfully.

TIA,

Emily

Reply
8 Replies
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Most of the time the SharePoint Timer Service is keeping hold on the files. You can try the following:

  1. stop SharePoint Timer Services on both WFEs
  2. perform IISRESET on both WFEs
  3. redo the deployment
  4. If successful restart the SharePoint Timer Services on both WFEs
0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

This didn't work. 

I have more detail now too.

I have 4 farms, F02 Test, F02 Prod, F04 Test, F04 Prod.  The test/prod environments should mirror each other.

On F02 & Test/Prod the following solutions were not deployed

NintexForms2016core.wsp

Last Operation Details:Server Name : The solution has not been upgraded.

Nintexworkflow2016core.wsp

Reason: 

Server1: Error: The copying of this file failed: Bin\NintexWorkflowStart\Autofac.dll.
The process cannot access the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\Bin\NintexWorkflowStart\Autofac.dll' because it is being used by another process.
Server2: Error: The copying of this file failed: Bin\NintexWorkflowStart\Autofac.dll.
The process cannot access the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\Bin\NintexWorkflowStart\Autofac.dll' because it is being used by another process.

Server3: Error: The copying of this file failed: Bin\NintexWorkflowStart\Autofac.dll.
The process cannot access the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\Bin\NintexWorkflowStart\Autofac.dll' because it is being used by another process.
Server4: Error: The copying of this file failed: Bin\NintexWorkflowStart\Autofac.dll.
The process cannot access the file 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\Bin\NintexWorkflowStart\Autofac.dll' because it is being used by another process.

F02 also can't deploy nintexexternalconnection.wsp to the app server for the following reason:

C:\Windows\Temp\solution-0ba88400-31ea-462c-8603-6e4b34d70fec\nintexexternalconnection.wsp could not be created because the contents could not be found under id 18a1869d-dd59-4c8f-8526-b946a649022a in the configuration database

These are in addition to the errors I noted in the first post. 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Was this issue encountered on a fresh installation? If not, ensure all the older DB created for Nintex be deleted from the SQL and try again after an IISREST.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

You could use "unlocker" tool or process explorer to see what process is blocking the file.

Process Explorer 

Unlocker Download | ZDNet.de 

Kind regards,

Enrico

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Just to give an update - yes this was a fresh installation.  After working with a Nintex engineer we discovered I needed to turn off the Nintex services on my app and web servers then redeploy the solutions.  This resolved the problem.

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Great to hear! Can you mark your question as answered to let other people see the problem has been resoved?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Could you clarify the solution? Do you mean you stopped the Nintex service within windows services on your WFE and APP servers?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Error when trying to deploy nintexworkflow2016core.wsp in SharePoint 2016

Jump to solution

Just confirming I also have to manually stop the Nintex services every time I do the upgrade deployment. I receive the same "process in use" error every time I try to deploy, and this happens in every farm, every time.

 

Solution: manually go into services.msc and stop all the Ninex services, before performing any installations/upgrades.

Then manually start the services after the upgrade.

0 Kudos
Reply