-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.AccessViolationException after upgrading to 1.1 stable #7199
Comments
I am dealing with the same problem, after upgrading from v1.0.3 to v1.1. I have tried reinstall v1.1 but i get this error: "App installation failed with error message: Deployment of package Microsoft.WindowsAppRuntime.1.1_1000.516.2156.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package. (0x80073cfb)" after that i tried to uninstall v1.1 and previous versions but i am getting this error message: "Windows cannot remove framework Microsoft.WindowsAppRuntime.1.0_3.469.1654.0_x86__8wekyb3d8bbwe because package(s) 31367ee1-27b2-4b81-8238-23ea1e038636 MicrosoftCorporationII.WindowsAppRuntime.Main.1.0 currently depends on the framework. Removing all packages that depend on the framework automatically removes the framework.". |
Remove the dependant packages first (31367ee1-27b2-4b81-8238-23ea1e038636, ....) |
I hade the same issue and was able to resolve it based on the steps in this comment . |
This may be caused by microsoft/WindowsAppSDK#2592 |
For me I had forgotten to install the matching runtime from here. |
Was able to resolve the issue with Haven't tried to remove all previous runtimes on my computer yet. Have other projects that still need to use the preview 3 SDK. But I still think this is a bug that needs to be resolved without any workaround, or the official document or release note should mention the runtime versions that it's not compatible with. |
Can someone please describe the minimal steps involved to succesfully upgrade from 1.03 tot 1.1.1? Just adding true to the .exe project does not make the AccessViolation go away on my computer. I did the update from Nuget only. |
I was able to upgrade all of the 1.1 builds (Previews 1,2,3, and 1.1.0 Stable) without any issues. I didn't have to remove any packages, all of the upgrades were in-place. Updating 1.1.0 to 1.1.1 (NuGet + official SDK installer) just caused the same crash listed above. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Describe the bug
After upgrading the project from 1.1 preview 3 to 1.1 stable, project cannot be started as unpackaged anymore. The System.AccessViolationException is thrown from AccessWindowsAppSDK(): 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
<WindowsPackageType>None</WindowsPackageType>
is added to the csproj file. 1.1.0 runtime installer (x64) and C# visual studio 2022 extension from https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads have been installed.Steps to reproduce the bug
<WindowsPackageType>None</WindowsPackageType>
to project fileExpected behavior
No response
Screenshots
Exception:
Project file:
NuGet package version
No response
Windows app type
Device form factor
Desktop
Windows version
Windows 10 (21H2): Build 19044
Additional context
Installed appruntime:
The text was updated successfully, but these errors were encountered: