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
Get "Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." in Blazor app with hot reload in .Net 7
#32084
Open
jaytranuts247 opened this issue
Apr 26, 2023
· 0 comments
I got Fatal error AccessViolationException that is kinda similar to the post here. but the difference is that hotreload can recognize the change but when to navigate to other page and navigate back to it, it throw that error. I reinstall the SDK .Net 7.0.203 again but it does not help. I am very curious what cause this issue. and would like to ask for help.
Let me know if you need further info. TIA!!
To Reproduce
Install .Net 7 (7.0.203)
dotnet new Blazorserver -o BlazerApp
cd BlazorApp
dotnet watch
let the page load
edit some character in the page, for example: change from Counter to Counter
wait for hotreload to completed
Click on Home
Click back to Counter
Exceptions (if any)
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
.NET SDK:
Version: 7.0.203
Commit: 5b005c19f5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19044
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.203\
Host:
Version: 7.0.5
Architecture: x64
Commit: 8042d61b17
.NET SDKs installed:
6.0.406 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
Microsoft Visual Studio Enterprise 2022 (2)
Version 17.5.4
VisualStudio.17.Release/17.5.4+33530.505
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Enterprise
ASP.NET and Web Tools 17.5.318.41597
ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.5.318.41597
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 17.5.318.41597
Azure Functions and Web Jobs Tools
Better Comments BetterComments.Omar Rwemi.e985519f-8696-40b7-9400-807054b4ec76
Better Comments is a Visual Studio extension that gives you the ability to customize the font and opacity of your comments independently of the editor's font settings. It also adds four additional comment classifications, each classification with its own customizable foreground.
C# Tools 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
ChatGPT 0.1.0
Introducing the Chat GPT extension for Visual Studio. This powerful tool utilizes the cutting-edge language model of Open AI to make code modifications quickly and easily. Simply type in a command and watch as the extension automatically updates your code to match your specifications. Say goodbye to tedious manual coding and hello to efficient, effective coding with the Chat GPT extension.
Close Tabs 1.0.8
Provides additional options to close tabs in the tab context menu, for instance to close all tabs to the right or left.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
CreateUnitTestBoilerplateCommand Extension 1.0
CreateUnitTestBoilerplateCommand Visual Studio Extension Detailed Info
Fine Code Coverage fcc-f339fe606-9d51-4fca-895c-d50375137b62
Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
GitExtensions 1.0
Git Extensions is a graphical user interface for Git that allows you to control Git without using the command-line
HotCommands Extension 1.0
HotCommands Visual Stuido Extension Detailed Info
ILSpy.AddIn 1.0
Integration of the ILSpy Decompiler into Visual Studio.
JSON Schema Tools 1.0.11
Allows you to easily generate a schema file from a JSON file and generate a JSON file with dummy data based on a schema file.
Menu Extension 1.0
Menu Visual Studio Extension Detailed Info
Microsoft Azure Tools for Visual Studio 2.9
Support for Azure Cloud Services projects
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
NuGet Package Manager 6.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Progress Telerik UI for ASP.NET Core Extension 2023.1.405.45
Progress® Telerik® UI for ASP.NET Core Extension
Progress Telerik UI for Blazor Extension 2023.1.405.45
Progress® Telerik® UI for Blazor Extension
Razor (ASP.NET Core) 17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f
Provides languages services for ASP.NET Core Razor.
Select Next Occurrence 1.4.182
Selects the next occurrence of the current selection and adds multiple cursors for editing.
Smooth Caret 2.0.0
Smooth caret movement effect for the Visual Studio text editor.
SonarLint for Visual Studio 6.15.0.67199
SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.
SQL Server Data Tools 17.2.40120.0
Microsoft SQL Server Data Tools
Toggle Comment 2.1
This is a simple visual studio extension to comment/uncomment the selected lines.
TypeScript Tools 17.0.20105.2003
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 17.5.0-beta.23053.5+794b7c259d9646a7eb685dad865aa27da7940a21
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
Visual Studio Spell Check Everywhere VSSpellCheckEverywhere
An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
https://GitHub.com/EWSoftware/VSSpellChecker
Visual Studio Spell Checker VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
https://GitHub.com/EWSoftware/VSSpellChecker
VisuallChatGPTStudio 1.0
Empty VSIX Project.
VSShortcutsManager Extension 1.0
VSShortcutsManager Visual Studio Extension Detailed Info
The text was updated successfully, but these errors were encountered:
Describe the Issue
I got
Fatal error AccessViolationException
that is kinda similar to the post here. but the difference is that hotreload can recognize the change but when to navigate to other page and navigate back to it, it throw that error. I reinstall the SDK .Net 7.0.203 again but it does not help. I am very curious what cause this issue. and would like to ask for help.Let me know if you need further info. TIA!!
To Reproduce
dotnet new Blazorserver -o BlazerApp
cd BlazorApp
dotnet watch
Counter
toCounter
Home
Counter
Exceptions (if any)
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Call Stack with parameters value
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: