Код: Выделить всё
System.InvalidOperationException: Invalid non-ASCII or control character in header: 0x0417
в Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.ThrowInvalidHeaderCharacter(Char ch)
в Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.ValidateHeaderCharacters(String headerCharacters)
в Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.ValidateHeaderCharacters(StringValues& headerValues)
в Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseHeaders.SetValueFast(String key, StringValues& value)
в Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.Microsoft.AspNetCore.Http.IHeaderDictionary.set_Item(String key, StringValues value)
в Microsoft.AspNetCore.Http.Internal.ParsingHelpers.SetHeaderUnmodified(IHeaderDictionary headers, String key, Nullable`1 values)
в Microsoft.AspNetCore.Http.Internal.ParsingHelpers.AppendHeaderUnmodified(IHeaderDictionary headers, String key, StringValues values)
в Stimulsoft.System.Web.HttpResponseBase.AppendHeader(String name, String value)
в Stimulsoft.Report.Mvc.StiNetCoreActionResult.ExecuteResult(ActionContext context)
Код: Выделить всё
if (result is StiNetCoreActionResult stiResult && stiResult.FileName != null) return this.File(stiResult.Data, stiResult.ContentType, stiResult.FileName);