0

I've tried using the standard Blazor template app to remote debug on an Azure app service and I get the following error:(the app run fine if a compile to release, though not debugging of course.) enter image description here

I compile to debug any CPU.

Mike
  • 1,059
  • 1
  • 8
  • 10

1 Answers1

0

UPDATE

I can debugger in my .razor pages.

enter image description here

PRIVIOUS

Judging from your error message, the problem may be caused by unsuccessful release of some files and other factors when the program was released.

In order to solve your problem, you can tell us the version of Visual Studio you are using and how you created the project. This problem is mostly related to your development tool environment configuration.

Here is a suggestion, test it by yourself and it runs normally.

  1. Visual Studio 2019 Enterprise Edition (other versions should also be normal)

  2. Configuration before project release

enter image description here

  1. Start remote debugging

enter image description here

enter image description here

  1. The final result

enter image description here

enter image description here

Jason Pan
  • 15,263
  • 1
  • 14
  • 29
  • Microsoft Visual Studio Community 2019 Version 16.7.1 I got it to work with the standard template project, but still getting the errors on my much larger project. Also, the debugger would only allow breakpoints in the controller, not the pages (symbol not attached). Are you able to have breakpoints on pages when remote debug? – Mike Aug 18 '20 at 20:02
  • @Mike Yes, I can debug in my razor pages. My VS Version is `Microsoft Visual Studio Enterprise 2019 Version 16.7.1`. – Jason Pan Aug 19 '20 at 01:32