Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc Http2 PushPromise访问被拒绝异常_Asp.net Mvc_Azure_Http2_Azure Web App Service_Push Promise - Fatal编程技术网

Asp.net mvc Http2 PushPromise访问被拒绝异常

Asp.net mvc Http2 PushPromise访问被拒绝异常,asp.net-mvc,azure,http2,azure-web-app-service,push-promise,Asp.net Mvc,Azure,Http2,Azure Web App Service,Push Promise,您好,我有下面一段代码,用于为Http2.0客户端启用PushPromise public static IHtmlString StyleSheet(this HtmlHelper htmlHelper, string contentPath) { UrlHelper urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext); htmlHelper.ViewContext.RequestContext.H

您好,我有下面一段代码,用于为Http2.0客户端启用PushPromise

public static IHtmlString StyleSheet(this HtmlHelper htmlHelper, string contentPath)
{
    UrlHelper urlHelper = new UrlHelper(htmlHelper.ViewContext.RequestContext);

    htmlHelper.ViewContext.RequestContext.HttpContext.Response.PushPromise(contentPath);

    TagBuilder linkTagBuilder = new TagBuilder("link");
    linkTagBuilder.Attributes.Add("rel", "stylesheet");
    linkTagBuilder.Attributes.Add("href", urlHelper.Content(contentPath));

    return new HtmlString(linkTagBuilder.ToString());
}
直到上周五,这一切都很正常,之后我开始得到拒绝访问的异常

我们已经在Azure应用程序服务上托管了我们的网站一年多了

一年后为什么失败了