我创建了一个无主机的渐进式blazor WebAssembly应用程序。 已遵循URL重写模块,发布后上报错误: Error parsing 'integrity' attribute ('undefined'). The hash algorithm must be one of 'sha256', 'sha384', or 'sha512', followed by a '-' character.
(anonymous) @ blazor.webassembly.js:1
blazor.we
我正试着发表我的blazor wasm项目。当我点击它所在的url时,这个应用程序从未加载,我在控制台中看到了这个错误:
Error: Failed to start platform. Reason: TypeError: NetworkError when attempting to fetch resource.
g https://my-test-server.com/_framework/blazor.webassembly.js:1
s https://my-test-server.com/_framework/blazor.webassembly.js:1
因此,我一直在学习如何使用RenderFragment在Blazor中创建动态html,到目前为止,大多数测试都运行良好,除非生成html,它注入了修改最终结果的javascript。在本例中,我正在为LinkedIn按钮生成脚本
public RenderFragment RenderButton()
{
RenderFragment form = b =>
{
if (this.AddPlatformScript)
{
b.OpenElement(1, "script");
当调用xxxxxxxx.azurewebsites.net时,浏览器控制台中会出现以下内容。有人能帮上忙吗。谢谢。
blazor.webassembly.js:1 System.InvalidOperationException: A suitable constructor for type 'Microsoft.Extensions.Logging.LoggerFactory' could not be located. Ensure the type is concrete and services are registered for all parameters of
我正在尝试使用(v8.4.6Build36)的最新版本创建一个WebAssembly应用程序。
我已经安装了.NET Core3.1SDK。
我还通过运行以下命令安装了最新的WebAssembly 3.2.0预览1:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.2.0-preview1.20073.1。
输出日志显示它已成功安装:
Templates Short Name Language Tags
我正在尝试将MatBlazor添加到我的WASM客户端,但我得到了错误: blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'matBlazor.matButton.init' ('matBlazor' was undefined).
Error: Could
我尝试使用BarcodeScanner组件来实现我的Blazor应用程序:
当我启动我的应用程序时,我总是会遇到一些异常。第一个问题是:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'BlazorBarcodeScanner.listVideoInputDevices' ('BlazorBarcodeScanner' wa
我正在使用Blazor WebAssembly,并尝试使用Microsoft.AspNet.SignalR.Client连接到SignalR服务器(ASP.NET SignalR,而不是ASP.NET核心SignalR)。代码如下所示:
var hubConnection = new HubConnection(url, queryString);
await hubConnection.Start();
我得到了以下异常:
System.PlatformNotSupportedException: Property Credentials is not supported. blazor.w
我试图创建一个Razor Class Library,它公开了一个js函数。我的问题是webpack在最后的包文件中删除了我导出的函数。
index.js
import * as myLib from "someLib"
export function connect(params) {
// function logic omitted for clarity
}
这就是我想使用js代码的方式。
using MyComponent.Common;
using Microsoft.JSInterop;
namespace MyComponent.Services
{
我试图通过单击按钮使用Aspose创建工作簿,但在尝试实例化工作簿时立即遇到错误: Blazor is running in dev mode without IL stripping. To make the bundle size significantly smaller, publish the application or see https://go.microsoft.com/fwlink/?linkid=870414
blazor.webassembly.js:1 WASM: Hello from C#
blazor.webassembly.js:1 WASM:
bla
当从blazor服务器端api方法(类似于天气预报示例)返回对象图时,我希望反序列化我的blazor客户机中的对象图。我需要对基于JsonConverter的自定义转换器使用自己的反序列化方法,因为我的对象图有实现相同接口的复合对象。
所有东西都在我的blazor项目之外工作,如果我将对象图作为字符串返回给客户端,那么它已经被正确地序列化了。反序列化是不起作用的。
blazor.webassembly.js:1 WASM: System.MissingMethodException: Constructor on type 'System.ComponentModel.Referenc
问题描述
当在输入元素上使用bind属性和onblur事件时,会导致Uncaught (in promise) Error: System.ArgumentException: There is no event handler associated with this event. EventId: '4。
样本:
复制过程
运行示例
单击“导航”按钮转到“计数器”页。
然后在TextBox中输入在计数器页面中呈现的任何内容。
现在,按下铬浏览器上的后退按钮。
现在,请参阅控制台中的错误。
截图
误差
Uncaught (in promise) Err
我正在使用jekyll将我的blazor应用程序嵌入到我的github页面站点中。我的blazor应用程序不使用导航。但是,我得到了这个错误:
System.ArgumentException: The URI 'http://localhost:4000/blog/2020/05/01/XamlTemplates' is not contained by the base URI 'http://localhost:4000/blazor/XamlTemplates/'.
这是我的page_blazor.html在_includes文件夹中嵌入到站点的各个页面