Skip to content

because it is being used by another process. #63066

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:2022 preview visual studio. ]
The process cannot access the file 'C:\Users\Egitim10\Desktop\Egitim10\6-E10_MVC\5-MVC_VIEW_COMPONENTS_AJAX\E10. MVC.PARTILA. VIEWS. AJAX\obj\Debug\net10.0\compressed\3spz0qraha-{0}-cosvhxvwiu-cosvhxvwiu.gz' because it is being used by another process. The process cannot access the file 'C:\Users\Egitim10\Desktop\Egitim10\6-E10_MVC\5-MVC_VIEW_COMPONENTS_AJAX\E10. MVC.PARTILA. VIEWS. AJAX\obj\Debug\net10.0\compressed\ee7yyrxgst-{0}-b7pk76d08c-b7pk76d08c.gz' because it is being used by another process. The process cannot access the file 'C:\Users\Egitim10\Desktop\Egitim10\6-E10_MVC\5-MVC_VIEW_COMPONENTS_AJAX\E10. MVC.PARTILA. VIEWS. AJAX\obj\Debug\net10.0\compressed\kljtzjq62d-{0}-c2oey78nd0-c2oey78nd0.gz' because it is being used by another process. The process cannot access the file 'C:\Users\Egitim10\Desktop\Egitim10\6-E10_MVC\5-MVC_VIEW_COMPONENTS_AJAX\E10. MVC.PARTILA. VIEWS. AJAX\obj\Debug\net10.0\compressed\wsfztrjyef-{0}-6i1pd6ltct-6i1pd6ltct.gz' because it is being used by another process. The process cannot access the file 'C:\Users\Egitim10\Desktop\Egitim10\6-E10_MVC\5-MVC_VIEW_COMPONENTS_AJAX\E10. MVC.PARTILA. VIEWS. AJAX\obj\Debug\net10.0\compressed\yz8j23upk4-{0}-s35ty4nyc5-s35ty4nyc5.gz' because it is being used by another process.

AI answer
This error indicates that the build process is trying to access (read/write) certain compressed files in your obj\Debug\net10.0\compressed\ directory, but those files are currently locked by another process. This is a common issue during development, especially with Razor Pages projects using static web asset compression.

• Preview versions are not as stable as official releases and may contain unresolved bugs, especially in new or experimental features like static web asset compression.
• The integration between Visual Studio, MSBuild, and the .NET SDK is still being refined in preview builds, which can lead to race conditions or file locks during parallel builds, hot reload, or background analysis.
• File locking issues are a known class of problems in .NET SDK previews and Visual Studio previews, especially when working with static assets and Razor Pages.
What you can do:
• Restart Visual Studio and ensure only one instance is running.
• Delete the bin and obj folders before rebuilding.
• Check for background processes (like dotnet.exe, msbuild.exe, or antivirus) that may be locking files.
• Try the same project in the latest stable Visual Studio and .NET SDK to see if the issue persists.
• Monitor for updates: Preview builds are updated frequently, and such issues are often fixed in later previews or stable releases.


Original Comments

Feedback Bot on 6/11/2025, 09:08 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Author: Migration Bot 🤖The issue was created by a issue mover bot. The author may not be the actual author.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions