Dev Env, IIS Hosting, Error when using HMR with ASP.NET CORE 2.0 #229

Closed
opened 2025-08-09 17:15:30 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @sjsingh85 on 1/15/2018

I tried info given on this page
https://blogs.msdn.microsoft.com/webdev/2017/07/13/development-time-iis-support-for-asp-net-core-applications/
to host the react+redux asp.net javascript services solution in my local IIS for development purposes.

Everything is working fine except the error

"EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection."

for HMR.

my virtual directory setup is http://localhost/myApp pointing to root of my project.

I have seen this error come in for people trying to run HMR in production env but this is Dev env with IIS hosting.

Also, I have already tried HotModuleReplacementEndpoint = "/dist/__webpack_hmr" and tried with some permutations of adding virtual directory name etc. but of no use.

I want to know if I am doing something wrong /HMR is not supported while hosting in IIS /Or if is this a bug and can be fixed?

Thanks!

*Originally created by @sjsingh85 on 1/15/2018* I tried info given on this page https://blogs.msdn.microsoft.com/webdev/2017/07/13/development-time-iis-support-for-asp-net-core-applications/ to host the react+redux asp.net javascript services solution in my local IIS for development purposes. Everything is working fine except the error > "EventSource's response has a MIME type ("text/html") that is not "text/event-stream". Aborting the connection." for HMR. my virtual directory setup is `http://localhost/myApp` pointing to root of my project. I have seen this error come in for people trying to run HMR in production env but this is Dev env with IIS hosting. Also, I have already tried `HotModuleReplacementEndpoint = "/dist/__webpack_hmr"` and tried with some permutations of adding virtual directory name etc. but of no use. I want to know if I am doing something wrong /HMR is not supported while hosting in IIS /Or if is this a bug and can be fixed? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#229
No description provided.