You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using VS 2022 17.13.6 version and trying to upgrade projects from .NET framework 4.8.1 to .NET 9.0.
If I try to upgrade any project, I keep getting this error for project files which I couldn't figure out why the UnauthorizedAccess exception is thrown though I am running VS as Administrator. Posting here as I couldn't find this issue reported by any one over the communities.
System.UnauthorizedAccessException, at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at Microsoft.UpgradeAssistant.Transformers.ProjectSdkStyleTransformerBase.d__3.MoveNext() in D:\a_work\1\s\src\engine\Transformers\Project\ProjectSdkStyleTransformerBase.cs:line 47
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.UpgradeAssistant.Transformers.ProjectSdkStyleTransformer.d__0.MoveNext() in D:\a_work\1\s\src\engine\Transformers\Project\ProjectSdkStyleTransformer.cs:line 32
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.UpgradeAssistant.Operations.Operation.d__13.MoveNext() in D:\a_work\1\s\src\engine\Operations\Operation.cs:line 448
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.UpgradeAssistant.Operations.Operation.d__10.MoveNext() in D:\a_work\1\s\src\engine\Operations\Operation.cs:line 305
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using VS 2022 17.13.6 version and trying to upgrade projects from .NET framework 4.8.1 to .NET 9.0.
If I try to upgrade any project, I keep getting this error for project files which I couldn't figure out why the UnauthorizedAccess exception is thrown though I am running VS as Administrator. Posting here as I couldn't find this issue reported by any one over the communities.
System.UnauthorizedAccessException, at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at Microsoft.UpgradeAssistant.Transformers.ProjectSdkStyleTransformerBase.d__3.MoveNext() in D:\a_work\1\s\src\engine\Transformers\Project\ProjectSdkStyleTransformerBase.cs:line 47
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.UpgradeAssistant.Transformers.ProjectSdkStyleTransformer.d__0.MoveNext() in D:\a_work\1\s\src\engine\Transformers\Project\ProjectSdkStyleTransformer.cs:line 32
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.UpgradeAssistant.Operations.Operation.d__13.MoveNext() in D:\a_work\1\s\src\engine\Operations\Operation.cs:line 448
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.UpgradeAssistant.Operations.Operation.d__10.MoveNext() in D:\a_work\1\s\src\engine\Operations\Operation.cs:line 305
Beta Was this translation helpful? Give feedback.
All reactions