blazor

System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.'

我的梦境 提交于 2020-04-07 07:08:47
问题 I've download new blazor webassembly project template with dotnet new --install Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview3.20168.3 Next I created in Visual Studio 2019 new Blazor WebAssembly project with enabled "Asp.Net Core hosted" and "authenthication". I named it "27MarchTemplate" Now I Run project and get System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.' at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientCollection.get

System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.'

寵の児 提交于 2020-04-07 07:08:00
问题 I've download new blazor webassembly project template with dotnet new --install Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview3.20168.3 Next I created in Visual Studio 2019 new Blazor WebAssembly project with enabled "Asp.Net Core hosted" and "authenthication". I named it "27MarchTemplate" Now I Run project and get System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.' at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientCollection.get

System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.'

余生颓废 提交于 2020-04-07 07:07:22
问题 I've download new blazor webassembly project template with dotnet new --install Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview3.20168.3 Next I created in Visual Studio 2019 new Blazor WebAssembly project with enabled "Asp.Net Core hosted" and "authenthication". I named it "27MarchTemplate" Now I Run project and get System.InvalidOperationException: 'Client '27MarchTemplate.Client' not found.' at Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ClientCollection.get

.NET 5.0 Preview 2发布解析

给你一囗甜甜゛ 提交于 2020-04-06 09:43:30
2020年4月2日微软.NET 团队的项目经理 Richard 在博客上 发布了.NET 5 Preview 2: https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-2/ ,3月16号,Scott Hunter 在博客中发布了.NET 5 Preview 1 第一个预览版发布。 https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-1/ , 博文中,Scott Hunter说:“.NET Core 3 has become the fastest adopted version of .NET ever and we’ve gained another million more users in just the last year(“ NET Core 3成为有史以来最快采用的.NET版本,而仅仅在去年,我们 又获得了100万用户 。”),也就是2周后(一个迭代)就发布了这个新版本。这两个版本都没有什么新特性,主要是整合.NET Core 3.1 和Mono功能到一起, 很多同学开玩笑的说.NET 5 这两个版本的发布,开发团队都在划水,打酱油。事实肯定不是这样的了,这两个版本的发布是为了在新的版本中为大家提供期待的新特性

.NET 5.0 Preview 2发布解析

依然范特西╮ 提交于 2020-04-05 23:06:25
2020年4月2日微软.NET 团队的项目经理 Richard 在博客上 发布了.NET 5 Preview 2: https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-2/ ,3月16号,Scott Hunter 在博客中发布了.NET 5 Preview 1 第一个预览版发布。 https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-1/ , 博文中,Scott Hunter说:“.NET Core 3 has become the fastest adopted version of .NET ever and we’ve gained another million more users in just the last year(“ NET Core 3成为有史以来最快采用的.NET版本,而仅仅在去年,我们 又获得了100万用户 。”),也就是2周后(一个迭代)就发布了这个新版本。这两个版本都没有什么新特性,主要是整合.NET Core 3.1 和Mono功能到一起, 很多同学开玩笑的说.NET 5 这两个版本的发布,开发团队都在划水,打酱油。事实肯定不是这样的了,这两个版本的发布是为了在新的版本中为大家提供期待的新特性

Blazor Before Render Call Function

泪湿孤枕 提交于 2020-03-28 06:55:11
问题 I am running an Blazor Server-Side client, which contacts an api gets a token and saves it in local storage. When i route to a second page i want to check if token is there so !null. I can't find the right place to check this or where. I tried on a layout and with overriding OnInitialized and it works but you get this horrid flicker where the ui is loaded and then the check is finished so it redirects, basically the user partially sees the page they shouldnt have access too. Where should i be

Blazor Grid with master-detail

﹥>﹥吖頭↗ 提交于 2020-03-26 07:25:19
问题 I am doing some project for college in Blazor(.net wasm) and have some page that should implement master-detail view of students. For table look and pagination I used BlazorGrid and it was great but now am stuck because i cannot insert new row in table when name of student is clicked. Does anyone have idea how to do this or some other way of doing pagination in Blazor. Link on BlazorGrid git https://github.com/AnkitSharma-007/BlazorGrid and this is pic of my screen, after clicked on name i

How can I stop IDisposable invokes while render the page in blazor server-side?

我怕爱的太早我们不能终老 提交于 2020-03-26 03:53:57
问题 Here is my code: @page "/" @using Microsoft.AspNetCore.Components.Server.Circuits @inject CircuitHandler circuitHandler @implements IDisposable <h1>Hello, world!</h1> Welcome to your new app. @code{ protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { Console.WriteLine("123");//do something } } #region//circuitHandler protected override void OnInitialized() { // Subscribe to the event handler (circuitHandler as CircuitHandlerService).CircuitsChanged +=

Convert WebAssembly Blazor to a Hosted one

岁酱吖の 提交于 2020-03-25 19:22:04
问题 I'm testing out Blazor.net but immediately fell short on the lack of debugging in WebAssembly (.net Core 3.1). Is there a fast & easy way to reconfigure my WebAssembly app to a hosted app, so that I can debug the .net code as I develop my samples? 回答1: I just watched this video and it shows a nice trick: Add 2 projects to your solution, ServerApp and WasmApp. in your ServerApp, add a reference to WasmApp in ServerApp._Host.cshtml , change this line to use WasmApp.App : <component type="typeof

How to trigger Blazor's EditForm submit from a button that is outside of it?

非 Y 不嫁゛ 提交于 2020-03-25 17:56:30
问题 I want to make a component that have a EditForm and encapsulate the form and the validation inside of the component. And I want to reuse this component anywhere in my application and submit it using any button. How can I submit a EditForm from a button that is outside of it? Observation : I have searched for other answers like this one but the answer that is marked as accepted doesn't answer the question and that is why I'm making this new question. 回答1: Instead of including the EditForm in