I am trying to configure web api using ASP.NET Core in OS X. I have set up my environment correctly (I think) and I can create and run my application using dotnet build from the terminal and I can start debugging from Visual Studio code with breakpoints working as expected. My problem is that I get an error when trying to query the Sqlite database using the EF core. The EF core is not very important here, because when I debug and try to figure out what the error is, I don't get the stack trace. When I go to fault-tolerant code, the debug console prints:
Exception thrown: 'System.InvalidOperationException' in Microsoft.EntityFrameworkCore.dll Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Diagnostics.StackTrace.dll'. Cannot find or open the symbol file. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.Reflection.Metadata.dll'. Cannot find or open the symbol file. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.IO.MemoryMappedFiles.dll'. Cannot find or open the symbol file. Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.0/System.IO.UnmanagedMemoryStream.dll'. Cannot find or open the symbol file.
Many of these Cannot find or open the symbol file. also printed at startup. I checked that the files are in the specified location and that there should not be a problem with access to read (starting with the code using sudo code . And even running sudo chmod 777 * in the corresponding folder).
So, any ideas why the characters are not loading?
debugging asp.net-core debug-symbols visual-studio-code
Erik
source share