UnauthorizedAccessException: Access to the path “C:\Users------\Desktop\gamename.sln” is denied.

I’ve never had this error before, Also, I never needed to run the program as Admin, since it worked fine before getting this error.

Any help available?

Edit: I’ve found a Temp folder, there’s a file called UnityLockFile and 20 UnityTempFile files. Does this have anything to do with the problem?

I think the IDE you are using might haven put a lock on the solution and then somehow crashed without being able to release the lock. I am not sure how locking works on Windows, but on Linux I recall having to remove a .lock file or something similar.