Aspnetcore: An error occurred while starting the application.

Created on 15 Feb 2018  路  9Comments  路  Source: dotnet/aspnetcore

Hello,

I got the following exception when trying to run the StandaloneApp :

image

area-blazor

All 9 comments

@MaherJendoubi a silly question, your not running the project in release?

@grahamehorner no, I'm running the project in debug.

image

@MaherJendoubi another silly question tried running VS as Administrator? I'm sure you would have, but just thought id ask. oh are you running under IIS or as StandaloneApp ?

@MaherJendoubi try deleting the netcoreapp2.0 directory, fixed mine by doing that. If I recall the aspnet team switched from netcore to netstandard on the project type for Blazor.

I'd guess that netcoreapp directory is a remnant of a past build before the change.

See https://github.com/aspnet/Blazor/commit/a79775a28e9bc4bda8a05658985617fbc0b3c82b

Do a "git clean -xdf" on your local copy if you get runtime errors after
updating to this.

@grahamehorner There is no silly question.

image

@RyoukoKonpaku By deleting the netcoreapp2.0 directory, it works now! Thanks a lot.

image

It's also fixed in the source code thanks to @SteveSandersonMS : https://github.com/aspnet/Blazor/commit/4f0330b1f10798fcdd625541db952e5380e7867c

Was this page helpful?
0 / 5 - 0 ratings