简体   繁体   English

EventSource 的响应具有不是“text/event-stream”的 MIME 类型(“text/plain”)。 中止连接 Azure SignalR

[英]EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection Azure SignalR

EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". EventSource 的响应具有不是“text/event-stream”的 MIME 类型(“text/plain”)。 Aborting the connection Azure SignalR中止连接 Azure SignalR

I am Getting the error continuously in MVC c# project, How to resolve the same我在 MVC c# 项目中不断收到错误,如何解决相同的问题

On Startup.cs在启动.cs

` `

public void ConfigureAuth(IAppBuilder app)
        {
            app.MapAzureSignalR(this.GetType().FullName);
            app.Map("/EnableDetailedErrors", map =>
            {
                HubConfiguration hubConfiguration = new HubConfiguration
                {
                    EnableDetailedErrors = true,
                    EnableJavaScriptProxies = false
                };
                map.MapAzureSignalR(this.GetType().FullName, hubConfiguration);
                //map.MapSignalR(hubConfiguration);
            });
        }

` `

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EventSource的响应具有不是“ text / event-stream”的MIME类型(“ text / html”) - EventSource's response has a MIME type (“text/html”) that is not “text/event-stream” 使用 C# 监听文本/事件流 - Listening to text/event-stream using C# C# HttpClient 将 MIME“text/plain”的响应保存为 UTF-8 字符串 - C# HttpClient save response with MIME "text/plain" as an UTF-8 string 响应消息的内容类型文本/纯文本与绑定的内容类型不匹配(文本/ xml; charset = utf-8) - The content type text/plain of the response message does not match the content type of the binding (text/xml; charset=utf-8) 此资源不支持请求实体的媒体类型“text/plain” - The request entity's media type 'text/plain' is not supported for this resource .NET Web服务客户端-客户端发现响应内容类型为“文本/纯文本”,但预期为“文本/ xml” - .NET Web Service Client - Client found response content type of 'text/plain', but expected 'text/xml' 从具有混合XML和纯文本的流中读取 - Reading from a stream with mixed XML and plain text 纯文本和配置文件中的连接字符串 - Connection string in plain text and config file Web服务XML响应作为“text / plain”接收。 (还有另一种内容类型错误。) - Web Service XML response being received as “text/plain”. (Yet another content type error.) 如何将内容类型设置为html和纯文本 - How to set content type to html and plain text
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM