BrowserLink icon indicating copy to clipboard operation
BrowserLink copied to clipboard

Browserlink & React template

Open wh1sp3r opened this issue 7 years ago • 3 comments

Hi,

I found a problem with browserlink. Using browserlink shows "System.ObjectDisposedException: The response has been aborted due to an unhandled application exception. ---> System.FormatException: Invalid ETag name"

Repo:

  1. Create Asp net core website
  2. Select React template
  3. Install browserlink from nugget
  4. Add app.UseBrowserlink() into configure method
  5. Run and access the page.

wh1sp3r avatar Dec 03 '18 08:12 wh1sp3r

I can confirm. Weak ETags are not handled correctly. Here is the stack trace.

Microsoft.Net.Http.Headers.dll!Microsoft.Net.Http.Headers.EntityTagHeaderValue.EntityTagHeaderValue(Microsoft.Extensions.Primitives.StringSegment tag, bool isWeak) Line 57 Microsoft.Net.Http.Headers.dll!Microsoft.Net.Http.Headers.EntityTagHeaderValue.EntityTagHeaderValue(Microsoft.Extensions.Primitives.StringSegment tag) Line 37 Microsoft.VisualStudio.Web.BrowserLink.dll!Microsoft.VisualStudio.Web.BrowserLink.BrowserLinkMiddleWareUtil.AddToETag(Microsoft.AspNetCore.Http.Headers.ResponseHeaders responseHeader, int port) Line 82 Microsoft.VisualStudio.Web.BrowserLink.dll!Microsoft.VisualStudio.Web.BrowserLink.BrowserLinkMiddleware.ExecuteWithFilter.AnonymousMethod__0() Line 109

nesherhh avatar Apr 17 '19 11:04 nesherhh

I can confirm I had the same problem with the .Net 5.0 "ASP.Net Core + Angular" template with BrowserLink in VS2019.

swythan avatar Feb 10 '21 10:02 swythan

I'm also running into the same issue in ASP.Net Core + Angular. Is there a workaround available yet?

mrjfalk avatar Oct 27 '21 20:10 mrjfalk