1. Danish Ahamed LiakathAli
  2. Beta Testing
  3. Monday, 17 May 2021 17:45 PM UTC

Hi,

   When doing the Compile & Run Web API's for both Salesdemo app or our application getting the below error.  

  Any advice how to solve this. 

 

Microsoft Windows [Version 10.0.17763.678]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Appeon\Common\PSCompiler\21.0\NetBuild>C:&cd /&cd C:\Program Files\dotnet&dotnet.exe build "C:\Users\C5076558\source\repos\PowerServer1\ServerAPIs"&exit
Microsoft (R) Build Engine version 16.7.2+b60ddb6f4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
C:\Program Files\dotnet\sdk\3.1.407\NuGet.targets(128,5): error : The process cannot access the file 'C:\Users\C5076558\.nuget\packages\system.security.accesscontrol\4.7.0\runtimes\win\lib\netstandard1.3\System.Security.AccessControl.dll' because it is being used by another process. [C:\Users\C5076558\source\repos\PowerServer1\ServerAPIs\ServerAPIs.csproj]

Build FAILED.

C:\Program Files\dotnet\sdk\3.1.407\NuGet.targets(128,5): error : The process cannot access the file 'C:\Users\C5076558\.nuget\packages\system.security.accesscontrol\4.7.0\runtimes\win\lib\netstandard1.3\System.Security.AccessControl.dll' because it is being used by another process. [C:\Users\C5076558\source\repos\PowerServer1\ServerAPIs\ServerAPIs.csproj]
0 Warning(s)
1 Error(s)

Time Elapsed 00:00:06.36

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 17 May 2021 18:20 PM UTC
  2. Beta Testing
  3. # 1

Hi Danish;

  This looks like it might be a PB / PS 2021 Beta question. If so .. did you install the .NET framework and .NET Core prerequisites during the Beta install?

Regards ... Chris

Comment
There are no comments made yet.
Danish Ahamed LiakathAli Accepted Answer Pending Moderation
  1. Monday, 17 May 2021 18:30 PM UTC
  2. Beta Testing
  3. # 2

Yes I installed. 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 17 May 2021 18:41 PM UTC
Are these errors occurring even after a complete PC "reboot"?
  1. Helpful
  1. Danish Ahamed LiakathAli
  2. Monday, 17 May 2021 18:58 PM UTC
Yes. I rebooted the machine after installation.





  1. Helpful
There are no comments made yet.
Danish Ahamed LiakathAli Accepted Answer Pending Moderation
  1. Monday, 17 May 2021 18:58 PM UTC
  2. Beta Testing
  3. # 3

Comment
  1. Chris Pollach @Appeon
  2. Monday, 17 May 2021 19:38 PM UTC
Hi Danish .. Yes, it looks like it might be related to one or more files in the C# project.

Have you tried deleting the C# project completely and then re-deploying again?

Project should be located underneath ... C:\Users\<YourId>\source\repos\

  1. Helpful
  1. Danish Ahamed LiakathAli
  2. Monday, 17 May 2021 20:51 PM UTC
Yes I did.

I have executed the below command too. But It doesn't fix the error.

dotnet nuget locals all --clear
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 17 May 2021 23:02 PM UTC
Good to know but, that won't clear the entire C# project as I was hinting about.
  1. Helpful
There are no comments made yet.
Francisco Martinez Accepted Answer Pending Moderation
  1. Monday, 17 May 2021 19:41 PM UTC
  2. Beta Testing
  3. # 4

Hi Danish,

You can also try closing SnapDevelop, going into Task Manager and terminating any abnormal processes that should not be running anymore, for example, MSBuild.exe

Also, it might be a good idea to delete the bin\Debug folder inside the project files

Regards,
Francisco

Comment
  1. Danish Ahamed LiakathAli
  2. Monday, 17 May 2021 20:52 PM UTC
I don't see the SnapDevelop in Task manager.

which bin\Debug folder are you referencing. Do you have any specific/path folder for this?
  1. Helpful
There are no comments made yet.
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 18 May 2021 08:27 AM UTC
  2. Beta Testing
  3. # 5

Hi Danish,

Could you delete this NuGet cache folder successfully: C:\Users\C5076558\.nuget\packages\system.security.accesscontrol\4.7.0\

This package can be restored from NuGet automatically once needed the next time.

BTW: Have you ever tried to restart the computer?

Regards,

Logan

Comment
There are no comments made yet.
Danish Ahamed LiakathAli Accepted Answer Pending Moderation
  1. Thursday, 3 June 2021 16:45 PM UTC
  2. Beta Testing
  3. # 6

Apologies for late update.

This is fixed. 

I have clicked the 'Open C# solution in SnapDevelop' and closed the snap develop once it is opened. And tired do the 'Compile & Run WebAPI' it worked. 

 

Thanks!

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.