Access denied error when update NuGet packages - Access path to Microsoft.Data.SqlClient.SNI.dll' is denied - asp.net-core

When updating Nuget Packages Microsoft.EntityFrameworkCore and Mcirosoft.EntityFrameworkCore.SqlServer to version 7.0.3 I am getting error codes:
Microsoft.Common.CurrentVersion.targets(4862, 5): [MSB3021] Unable to copy file "C:\Users\user\.nuget\packages\microsoft.data.sqlclient.sni.runtime\5.0.1\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll" to "bin\Debug\net7.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll". Access to the path 'C:\WebPortal_new\webportBB\AppOwnsData\bin\Debug\net7.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll' is denied.
but for multiple folders/files.
I have tried disabling Read-only permission to the folders, the specific file etc.
Also tried clearing nuget cache, restarting computer but still getting the same error.

Related

unable to unstage multiple files and directories from git bash and computer's command prompt

so my first attempt into web development, one best forgotten methinks in that -when creating my first html file- I was meant to load the saved file using sublime 3 and git gui. I'm unsure how but ended up loading thousands of files - seemingly entire C: Drive -and directories in one go instead of the html file only. Being a complete novice ( clearly so!) I suspect I may have erred in that it was saved on the desktop to start with and not a folder. Please advice how to unstage all these files and directories and get them off git gui and of course crucially my command prompt so I can start the entire excercise afresh . SEE BELOW how it looks. These all sits in the 'Unstaged changes' in git gui I tried git clean and now trying git--rm (attempted removing one file Jedi/ here). If these are the simplest means to remove it please provide how to script the command correctly . alternatively another simple way to remove them, all in one go
Microsoft Windows [Version 10.0.22000.1098]
(c) Microsoft Corporation. All rights reserved.
C:\Users\user>git status
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Start Menu/': Permission denied
warning: could not open directory 'Templates/': Permission denied
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .ipynb_checkpoints/Untitled3-checkpoint.ipynb
new file: .ipython/profile_default/history.sqlite
new file: .vscode/extensions/ritwickdey.liveserver-5.7.9/package.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
...
.gitconfig
AppData/
Contacts/
Desktop/
Documents/
Downloads/
Favorites/
Jedi/
Links/
Music/
NTUSER.DAT
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.0.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.1.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.2.regtrans-ms
NTUSER.DAT{716b6697-d480-11ec-94d6-a6cb731d3b8d}.TxR.blf
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TM.blf
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{716b6698-d480-11ec-94d6-a6cb731d3b8d}.TMContainer00000000000000000002.regtrans-ms
OneDrive/
Pictures/
PycharmProjects/
Saved Games/
Searches/
Videos/
anaconda3/
coursera-test/
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
C:\Users\user>git rm --cached<file>Jedi/
The system cannot find the file specified.
C:\Users\user>git rm--cached<file>Music/...
The system cannot find the file specified.
C:\Users\user>git rm--cached<file>.ipynb_checkpoints/Untitled3-checkpoint.ipynb
The system cannot find the file specified.
I expected to load the HTML file to git hub and create my first web page, instead uploaded what seems to be my directory from c: drive and now I cannot unstage

Nextflow: permission denied for files in bin with -rwxrwxr-x permissions granted

I've made a fresh install of nextflow in a new computer, and I was trying to test the nf-core/rnaseq pipeline, but I am receiving the following error when executing:
Error executing process > 'NFCORE_RNASEQ:RNASEQ:INPUT_CHECK:SAMPLESHEET_CHECK (samplesheet.csv)'
Command error:
.command.sh: line 3: /media/Data/nextflow-rnaseq/rnaseq/bin/check_samplesheet.py: Permission denied
I've checked the permissions for the file, and has all the executing permissions:-rwxrwxr-x. I've also tried to execute it using both my working environment and singularity, and keep finding the same error.
I've also tested my own pipeline, with another project root folder and its own bin folder with custom scripts in there, and I'm having the same error.
Does anyone know if I'm missing something I should have done to make the scripts in bin accessible to nextflow?
Nextflow version: 22.04.4.5706
As Steve pointed out in a comment, the issue was related to how the filesystem was mounted (noexec), and fixing that solves the problem

Solving path access denied error in windows form app

I used installShield LE 2015 to build my application's installer and is successful. The problem am having now is that there's a Ms access db file in the installation location which i need to restore from the main application, but when i try to restore it, i get an error "Access to the path "C:\Program Files (x86)\RC record system\RecordSystemDb.accdb" is denied. Please someone should tell me how to resolve this issue.

Team city cannot copy pagefile.sys because it is being used by another process

I am trying to get TeamCity up and running for a CI / CD server. So far I have it connected to my Git repo, it pulls the repo and builds. Great.
Now I am trying to publish it. (My web server is also the CI server and agent).
I keep getting this error:
C:\TeamCity\buildAgent\work\f56e1490ff15a5c4\P4P.Web\P4P.Web.csproj(1373, 5): warning MSB3026: Could not copy "\pagefile.sys" to "C:\inetpub\wwwroot\P4P\build\pagefile.sys". Beginning retry 8 in 1000ms. The process cannot access the file '\pagefile.sys' because it is being used by another process.
It ultimately fails and fails the entire publish process.
C:\TeamCity\buildAgent\work\f56e1490ff15a5c4\P4P.Web\P4P.Web.csproj(1373, 5): error MSB3027: Could not copy "\pagefile.sys" to "C:\inetpub\wwwroot\P4P\build\pagefile.sys". Exceeded retry count of 10. Failed.
C:\TeamCity\buildAgent\work\f56e1490ff15a5c4\P4P.Web\P4P.Web.csproj(1373, 5): error MSB3021: Unable to copy file "\pagefile.sys" to "C:\inetpub\wwwroot\P4P\build\pagefile.sys". The process cannot access the file '\pagefile.sys' because it is being used by another process.
I found this ow SO. I tried downgrading the Microsoft.CodeDom.Providers.DotNetCompilerPlatform and Microsoft.Net.Compilers packages to 1.0.0. I have even tried removing them entirely.
I have looked at all csproj files for references to these packages (including the package.config). Nothing.
I have no idea where to even begin to fix this.
My server is running Windows Server 2012 R2. I installed VS professional.
Any ideas?
I encountered the same issue.
The problem starts when you upgrade the DotNetCompilerPlatform to version 1.0.1.
To work around this issue you can downgrade to version 1.0.0 using the NuGet package manager.
EDIT: If you uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform AND Microsoft.Net.Compilers, and then install the DotNetCompilerPlatform (has a dependency on the Microsoft.Net.Compilers package so it will automatically install that) package again the error disappears for good so it seems.
Also check this issue link - error MSB3027: Could not copy "C:\pagefile.sys" to "bin\roslyn\pagefile.sys". Exceeded retry count of 10. Failed

My Debian repository is throwing a "Hash Sum mismatch" error

We maintain a Debian repository for an app and all .deb files are stored on a s3 bucket.
We wrote a script to upload the files and update the Packages.gz file. All went fine until one of the developers found deb-s3 and tried using it.
After the first package upload we started getting this error message:
W: Failed to fetch s3://s3.amazonaws.com/myapp/dists/test/main/binary-amd64/Packages Hash Sum mismatch
I've tried to restore an old version of our Packages.gz file with no success. I've searched for this error and removing the /var/lib/apt/lists/ does not work either.
What would deb-s3 do that could break our entire repo?
Looks like deb-s3 creates a Releases file under dist/test and that conflicts with Packages.gz.
Removing the Release file restored our repository back to what it was.