Hi @ASAD Ali,
Welcome to Microsoft Q&A!
Are you using the latest VS2022 version 17.8.6? Does it occur in other projects?
I created different ASP.NET MVC projects (.NET and .NET Framework) on my side and it has no error.
You can check if the file (D:\...\bin\FirstWebProgram.dll) exists. And try to rename it.
Then, go to Visual Studio Installer and repair the VS.
When creating project, please try to save the project into another location.
If you have any anti-virus or security management software, please temporarily disable them.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.