Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File locking issue uploading against FileSystemFileStorageService #919

Closed
TimLovellSmith opened this issue Mar 19, 2013 · 0 comments
Closed
Assignees

Comments

@TimLovellSmith
Copy link
Member

This is in the postback to /packages/verify-upload

System.IO.IOException: The process cannot access the file 'C:\Users\tilovell\repo\NuGetGallery\Website\App_Data\Files\uploads\1.nupkg' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at NuGetGallery.FileSystemService.DeleteFile(String path) in c:\Users\tilovell\repo\NuGetGallery\Website\Services\FileSystemService.cs:line 15
at NuGetGallery.FileSystemFileStorageService.DeleteFileAsync(String folderName, String fileName) in c:\Users\tilovell\repo\NuGetGallery\Website\Services\FileSystemFileStorageService.cs:line 60
at NuGetGallery.UploadFileService.DeleteUploadFileAsync(Int32 userKey) in c:\Users\tilovell\repo\NuGetGallery\Website\Services\UploadFileService.cs:line 26
at NuGetGallery.PackagesController.d__23.MoveNext() in c:\Users\tilovell\repo\NuGetGallery\Website\Controllers\PackagesController.cs:line 635
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at lambda_method(Closure , Task )

@ghost ghost assigned TimLovellSmith Mar 19, 2013
TimLovellSmith added a commit that referenced this issue Mar 19, 2013
Fix #919 - file locking exception sometimes seen when testing upload pac...
joelverhagen pushed a commit that referenced this issue Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant