我有各种运行相同asp.net站点的服务器(dev,2 x test,2 x prod).
测试和prod服务器采用负载平衡对(prod1与prod2,test1与test2).
测试服务器对在大约十分之一页面加载期间表现出某种(超级)减速或冻结.有时,页面顶部会出现一行文字,如下所示:
00 OK Date: Thu, 01 Apr 2010 01:50:09 GMT Server: Microsoft-IIS/6.0 X-Powered_By: ASP.NET X-AspNet-Version:2.0.50727 Cache-Control:private Content-Type:text/html; charset=ut
Run Code Online (Sandbox Code Playgroud)
(开头和结尾都是"切断".)
以前有人见过这样的事吗?知道这意味着什么或是什么导致它?
编辑: 我经常在点击某些内容时看到这一点 - 它在黄页上显示为红色文字:
XML Parsing Error: not well-formed
Location: http://203.111.46.211/3DSS/CompanyCompliance.aspx?cid=14
Line Number 1, Column 24:2mMTehON9OUNKySVaJ3ROpN" />
-----------------------^
如果我返回并再次单击,它可以工作(我看到我点击的页面,而不是上面的错误消息).
更新:
...而且,有时我只是得到一个带有黑色文本的白色屏幕(看起来很像上面的文字),而不是页面加载:
HTTP/1.1 302发现日期:2010年4月21日星期三04:53:39 GMT服务器:Microsoft-IIS/6.0 X-Powered-By:ASP.NET X-AspNet-版本:2.0.50727位置:/ 3DSS/EditSections. aspx?id = 3&siteId = 56§ionId = 46 Set-Cookie:.3DSS = A6CAC223D0F2517D77C7C68EEF069ABA85E9HFYV64F&FA4209E2621B8DCE38174AD699C9F0221D30D49E108CAB8A828408CF214549A949501DAFAF59F080375A50162361E4AA94E08874BF0945B2EF; 路径= /; HttpOnly Cache-Control:private Content-Type:text/html; charset = utf-8内容长度:184
其中"here"是一个指向URL的链接就像我要求的那个,除了里面有一个额外的文件夹,意思是:http:
//123.1.2.3/MySite//MySite/Page.aspx?选项= 1
而不是:http: …
我无法让 Gzip 压缩中间件在 asp.net core 2.0(或 2.1)中工作。我使用“Blank”Web 应用程序模板创建了一个新项目,并在 Startup.cs 中有以下代码:
public void ConfigureServices(IServiceCollection services)
{
services.AddResponseCompression();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseResponseCompression();
app.Run(async (context) =>
{
context.Response.Headers.Add("Content-Type", "text/plain");
await context.Response.WriteAsync("Hello World!");
});
}
Run Code Online (Sandbox Code Playgroud)
我确认 Chrome 在请求中发送了“Accept-Encoding: gzip, deflate, br”。
但是,服务器不会对响应进行 gzip 编码:
我究竟做错了什么?
我找到了这个讨论,并从那里尝试了一切,但没有帮助。
我正在努力建立一个店面.
StoreViewModel
公共类StoreViewModel
{
public IEnumerable<GetStoreFrontItems_Result> StoreFrontItems { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
的Index.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<StoreViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
..:: Gods Creation Taxidermy :: Store ::..
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="maintext">
<h2 class="sectionHeader2">:: Gods Creation Taxidermy : Store Items ::</h2>
<br />
At times I end up with items and mounts that the owner never came to pick up, so I put them up for sale to help generate
some revenue for Gods …Run Code Online (Sandbox Code Playgroud)