C# – ASP NET – How To Fix Error – The Process Cannot Access The File Because It Is Being Used

An exception of type ‘System.IO.IOException’ occurred in mscorlib.dll but was not handled in user code

Additional information: The process cannot access the file because it is being used by another process.

More info with ready to copy and paste code: