<t>Используем версию для netcore (версия netcore 3.1.200), после обновления через nuget с версии 2019,4,2 до 2020,2,2 появилась ошибка на ViewerEvent <br/>
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at
System.Convert.FromBase64String(String s) at
Stimulsoft.Base.StiEncryption.Decrypt(String src, String password) at
Stimulsoft.Report.Web.StiRequestParamsHelper.Get(HttpContext httpContext) at
Stimulsoft.Report.Mvc.StiNetCoreDesigner.GetRequestParams(HttpContext httpContextCore) at
Stimulsoft.Report.Mvc.StiNetCoreDesigner.GetRequestParams(Controller controller) at
Stimulsoft.Report.Mvc.StiNetCoreDesigner.GetActionReportObject(Controller controller)</t>
The input is not a valid Base-64 string as it contains a non-base 64 character
-
- Posts: 2
- Joined: Mon Mar 30, 2020 10:24 am
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: The input is not a valid Base-64 string as it contains a non-base 64 character
Здравствуйте,
Не получилось воспроизвести, нужно больше информации - какие опции заданы, в каком случае возникает ошибка и т.д.
Спасибо.
Не получилось воспроизвести, нужно больше информации - какие опции заданы, в каком случае возникает ошибка и т.д.
Спасибо.
-
- Posts: 2
- Joined: Mon Mar 30, 2020 10:24 am
Re: The input is not a valid Base-64 string as it contains a non-base 64 character
Нашел ошибку. Она появляется при использовании локализации.
Шаги для воспроизведения.
Берем проект Localizing the Viewer из демо репозитория
.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Stimulsoft.Dashboards.Web.NetCore" Version="2020.2.2" />
<PackageReference Include="Stimulsoft.Reports.Engine.NetCore" Version="2020.2.2" />
<PackageReference Include="Stimulsoft.Reports.Web.NetCore" Version="2020.2.2" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" />
</ItemGroup>
</Project>
Startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Localizing_the_Viewer
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMemoryCache();
services.AddSession();
services.AddMvc(op=> op.EnableEndpointRouting=false);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
//app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Viewer}/{action=Index}/{id?}");
});
}
}
}
Ошибка произойдет в ViewerController метод ViewerEvent
Шаги для воспроизведения.
Берем проект Localizing the Viewer из демо репозитория
.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Stimulsoft.Dashboards.Web.NetCore" Version="2020.2.2" />
<PackageReference Include="Stimulsoft.Reports.Engine.NetCore" Version="2020.2.2" />
<PackageReference Include="Stimulsoft.Reports.Web.NetCore" Version="2020.2.2" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.1" />
</ItemGroup>
</Project>
Startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Localizing_the_Viewer
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMemoryCache();
services.AddSession();
services.AddMvc(op=> op.EnableEndpointRouting=false);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
//app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Viewer}/{action=Index}/{id?}");
});
}
}
}
Ошибка произойдет в ViewerController метод ViewerEvent
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: The input is not a valid Base-64 string as it contains a non-base 64 character
Hello,
The issue is fixed. The fix is available in the 2020.2.2.1 version on the NuGet.
Thank you.
The issue is fixed. The fix is available in the 2020.2.2.1 version on the NuGet.
Thank you.