Документация Майкрософт — новейшие статьи
Теперь техническая документация Майкрософт размещена на сайте docs.microsoft.com. Мы модернизировали не только веб-интерфейс, но и методы создания и поддержки материалов, которые помогают вам обучаться, развертывать решения и управлять ими. Это централизованное расположение для всего содержимого, связанного с технологиями Майкрософт. Чтобы вы не пропустили самые актуальные новости и интересные публикации на сайте docs.microsoft.com, мы предусмотрели для вас возможность выбрать требуемый веб-канал.
Selected Feed: ASP.NET
angular loop form problem - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194640/angular-loop-form-problem HI so i am trying to develop an attendance system in asp.net core web api and angular as front end now ill provide the code first First the form: after that the form in ts file and also the method now the problem is when i post the form it submits ispresent value to ever student by the value later added for example if i select present button(true) for studentA and absent button(false) for StudentB and then submit the form the isPresent value for both the students is set to false i tried but cannot come up with a solutionPublished Date : 31 марта 2023 г.
ASP net core cors put method problem - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/622655/asp-net-core-cors-put-method-problem Hello, I have a problem i wrote a Controler and a website. The website is under the main domain https://abc.com, my services are in subdomains https://subdomain.abc.com. I configured cors, GET and POST methods are working, but PUT makes problems: Access to XMLHttpRequest at 'https://subdomain.abc.com/public/api/customers' from origin 'https://abc.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. After a second try i get an addional error 405 method not allowed: Controller startup: I tried a lot, i have no idea what can i do. I hope you can helpPublished Date : 31 марта 2023 г.
Asp.net 6 web api giving 404 after publishing - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1195191/asp-net-6-web-api-giving-404-after-publishing Hi Guys,Published Date : 31 марта 2023 г.
Swagger UI How to generate documentation - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1195143/swagger-ui-how-to-generate-documentation Hi there, In my ASP.NET Core 6 Web API application I am using Swagger UI. I wonder if I can somehow generate a PDF document from Swagger? Or any other ways to do it? Thank you.Published Date : 31 марта 2023 г.
How to achieve non-blocking processing in a Web API method? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194669/how-to-achieve-non-blocking-processing-in-a-web-ap I have a Web API with the MyWebApiMethod in it. Inside this method I want the following to happen: How do I achieve this behavior in the most convenient way? Should I use dreaded async void? Should I use threading? Should I utilize a message queue? What would be a simple an good solution?Published Date : 31 марта 2023 г.
Visual Studio with outdated AzureFunctionsCli - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193492/visual-studio-with-outdated-azurefunctionscli We develop lots of Azure Functions Apps. Recently, we onboarded a new junior developer, who was tasked with debugging some new functions. The developers machine was setup with Visual Studio 2022 downloaded from the official site and installed for funning Azure Functions development. Unfortunately the developer was not able to debug the function, and the error was something like: [2023-03-24T15:01:51.102Z] A host error has occurred during startup operation '7bb9656f-036b-48ee-9bbd-0c3db50612ab'. [2023-03-24T15:01:51.104Z] Microsoft.Azure.WebJobs.Extensions.Storage.Blobs: Could not load type 'Microsoft.Azure.WebJobs.ParameterBindingData' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.34.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The code worked well on 2 other developers installation and after some digging, it turned out, that it was the runtime version of Azure Function Core Tools that was the issue. The tricky part was, how to update the Azure Function Core Tools. Digging around on the internets lead to this article: https://weblogs.asp.net/sfeldman/updating-azure-functions-tools - The junior developer had never created a new function, so that was the first thing to try. Unfortunately that did not update the Azure Function Core Tools. Instead the developer downloaded the newest zip file referenced in feed-v<sequence-number>.json, unzipped it and replaced the content in C:\Users\UID\AppData\Local\AzureFunctionsTools\Releases\4.34.0\cli_x64 with the contents of the zipfile. That did the trick! Now the debugger in visual studio runs as expected. The question is: Isn't there a better way to force an update of Azure Function Core Tools then this? This manual approact or braying that a new function creation will update the tools seems a bit brittle.Published Date : 31 марта 2023 г.
ASP.NET Compilation Error on Windows Server 2019 with .NET 4.8 and IIS10 - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1195088/asp-net-compilation-error-on-windows-server-2019-w Hello folks, I have strange behavior when migrating from ws2016 to ws2019. Both servers are supposed to host a WCF service, but the service is not running on the 2019. Error output is also not particularly informative. We already did a clean install (2019) but it didn't help. Thanks!Published Date : 31 марта 2023 г.
we are develping a new asp.net core webapi project to access data from Dataverse what is the recommend way to connect Dataverse dataverse webapi or connectionstring? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1195038/we-are-develping-a-new-asp-net-core-webapi-project Hi , we are develping a new asp.net core webapi project to access data from Dataverse what is the recommend way to connect Dataverse Entity , dataverse webapi or connectionstring?Published Date : 31 марта 2023 г.
How to create query builder from dynamic multiple tables by ASP. Net Core? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194180/how-to-create-query-builder-from-dynamic-multiple I want to build a dynamic report by Asp.net core -EF-, that is received tables and columns names from user, and then create SQL query depended on theses inputs, to generate dynamic report, I searched how can create SQL query, but most ways were with one table,, but in my project, there is must multiple tables (inner join),, My question is how can create SQL query with multiple tables from DB? I mean how to write inner join SQL query after receiving the selected table and columns, (example: [table1{column1, .....}, table2{columns2,....},....]) ,, Thank you for your attention. I am waiting for your guidePublished Date : 31 марта 2023 г.
Required Query String Parameters in ASP.NET Core - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194678/required-query-string-parameters-in-asp-net-core Hello guys, I am trying to set the query string parameters required like below; Here is the DTO; But I am getting 500 instead of 400 Bad request. How can I fix this so that it validates the query string parameters? I think it is due to this; When I remove this code above the response is like this; But I just want to display errors not the type, title traceId.Published Date : 31 марта 2023 г.
Can no longer swap staging and production with unexpected error - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194906/can-no-longer-swap-staging-and-production-with-une Hi: I have been running a particular web app forever. I made a few css changes, published to staging and now I get the error below when I try to swap. I find it impossible to actually create a support incident with Microsoft. I am supposed to view some analysis and click next. There is no next button. I am the owner, admin, etc. of my Subscription. So can anyone suggest a next step given this error? I would be eternally grateful! Failed to complete swap between slot 'Staging' and slot 'production'. Error: {"_body":"{"Code":"InternalServerError","Message":"There was an unexpected error swapping slots 'Staging' and 'production' for site 'WTAB(Staging)'. Please try to cancel your swap operation.","Target":null,"Details":[{"Message":"There was an unexpected error swapping slots 'Staging' and 'production' for site 'WTAB(Staging)'. Please try to cancel your swap operation."},{"Code":"InternalServerError"},{"ErrorEntity":{"ExtendedCode":"04093","MessageTemplate":"There was an unexpected error swapping slots '{0}' and '{1}' for site '{2}'. Please try to cancel your swap operation.","Parameters":["Staging","production","WTAB(Staging)"],"Code":"InternalServerError","Message":"There was an unexpected error swapping slots 'Staging' and 'production' for site 'WTAB(Staging)'. Please try to cancel your swap operation."}}],"Innererror":null}","status":500,"ok":false,"statusText":"OK","headers":{"cache-control":["no-cache"],"content-length":["826"],"content-type":["application/json; charset=utf-8"],"date":["Fri"," 31 Mar 2023 00:07:18 GMT"],"etag":[""1D963620E7DA380""],"expires":["-1"],"pragma":["no-cache"],"server":["Microsoft-IIS/10.0"],"strict-transport-security":["max-age=31536000; includeSubDomains"],"x-aspnet-version":["4.0.30319"],"x-ms-correlation-request-id":["823cbf7a-2845-4573-b259-af7bd9704b09"],"x-ms-failure-cause":["service"],"x-ms-ratelimit-remaining-subscription-writes":["1198"],"x-ms-request-id":["823cbf7a-2845-4573-b259-af7bd9704b09"],"x-ms-routing-request-id":["WESTUS2:20230331T000718Z:823cbf7a-2845-4573-b259-af7bd9704b09"],"x-powered-by":["ASP.NET"]},"type":2,"url":"https://management.azure.com/subscriptions/21d2adce-0039-4a2d-8a8c-10f17d7fe139/resourceGroups/wtab/providers/Microsoft.Web/sites/WTAB/slots/Staging/slotsswap?api-version=2018-11-01"}Published Date : 31 марта 2023 г.
Why does ASP.NET Web API incoming request have the br encoding removed from the header - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194902/why-does-asp-net-web-api-incoming-request-have-the Hi, I am sending a request (in this case happens to be via an Angular client - but I think that is irrelevant) to my ASP.NET Web API server (running on .NET Framework 4.8). Both client and server are running on my Windows 11 dev machine. When I look at this in the browser (Chrome) devtools, it has Accept-Encoding: gzip, deflate, br However, if I put a break point in my server's controller, and look at it's Request object in the debugger, the br seems to be gone I was looking at adding a Brotli compression for my responses, but if the header is not asking for it, then no point. Does anyone know why this is missing form the header once it gets to the server? Thanks in advancePublished Date : 30 марта 2023 г.
SCEPInstall.exe upgrade - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1191912/scepinstall-exe-upgrade Hello, Thanks, DomPublished Date : 30 марта 2023 г.
how use web api pagination, sorting and search in jquery datatable - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/898164/how-use-web-api-pagination-sorting-and-search-in-j Hi: I want to provide paging, sorting and search to a jquery datatable via a WEB API in Asp.net core. I came acrossed with the link 1 which is what I want to do with the only difference that I don't want to put an API Controller inside my Web Application. On the contrary.......I want to develop a WEB API similar like the project in link 2 that can be used by any application. including the jquery datatable. My problem is that I don't know how to pass the parameters to the WEB API when I post the datatable data, search and sort parameters in my web application. I have been searching for a while but I haven't found how an application, in this case, a jquery datatable consumes a WEB API during posting link1=> https://www.freecodespot.com/blog/datatable-server-side-processing-in-asp-net-core/#VIII_Create_an_API_Controller link2=> https://codewithmukesh.com/blog/pagination-in-aspnet-core-webapi/ Thanking you in advance.Published Date : 30 марта 2023 г.
How to add example value to 200 OK response in ASP.NET Core 6 Web API? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194159/how-to-add-example-value-to-200-ok-response-in-asp Hi, I have an ASP.NET Core 6 Web API, I am using Swagger UI. Is it possible to add an example value to 200 like the one in the 400? I want to add an example like this; Here is SwaggerGen on Program.cs: Here is the sample code:Published Date : 30 марта 2023 г.
ASP.NET Design Template with Bootstrap - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194131/asp-net-design-template-with-bootstrap I am developing many web application using ASP.NET. For that, i used Ajax,CSS,HTML,etc. We were not used in depth Bootstrap and other technologies with ASP.NET. I have the requirement and want to develop .NET Web application with Rich and user friendly design template using BootStrap and Angular JS. for engineering domain, where we could find the rich Bootstrap design and template .. pls. help me to how to design the rich template like bootstrap in ASP.NETPublished Date : 29 марта 2023 г.
Read WebApp connection string credentials from Keyvault - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194009/read-webapp-connection-string-credentials-from-key I have hosted an ASP.Net web form webapp in Azure. Right now the password of the backend DB is being exposed in the connection string. Is there a way to read it through Azure Keyvault ? Please share your recommendations. Thanks in advance.Published Date : 29 марта 2023 г.
Request cancellation is not forwarded to a backend through Azure Front Door - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1192153/request-cancellation-is-not-forwarded-to-a-backend We have a problem with a request canceling for Azure App Service behind a Front Door instance. We have long-running AJAX requests from a frontend to a backend part. After initiating request cancellation with AbortController in JS, our backend part, ASP.NET Web API 2, handles the exception and stops further request processing. It works fine with an app on a local machine or Azure App Service. However, while using a proxy (such as Postman or Fiddler), request cancellation is not forwarded to the backend. Our Azure Front Door Standard instance has similar behavior. After a deeper investigation, we have found that sometimes request cancellation is handled correctly. It seems to depend on which Front Door POP takes requests. According to Front Door access logs, the following POPs do not handle our request cancellation: MNZ, MAA, FRA, and BUD. At the same time, with the same configuration, DUS POP take them as expected. Please suggest if we can do anything to forward the request cancellation on all Front Door POPs. Or is the issue connected to the Front Door's internal mechanisms?Published Date : 29 марта 2023 г.
How to create a .net framework 4.8 web project using visual studio - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/919704/how-to-create-a-net-framework-4-8-web-project-usin I have .net framework 4.8 installed but when i start up visual studio and try to create a project using it, it seems to want to force me to use .net core 6. How can I create a .net framework 4.8 web project? Or can .net core 6 run the .net framwork 4.8?Published Date : 29 марта 2023 г.
Invoking azure functions server SignalR group functions from ASP.NET Core Client - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1183130/invoking-azure-functions-server-signalr-group-func I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C# client in ASP.NET Core that actually invokes the functions in the aforementioned article. I have only landed upon javascript clients that work against other types of hub servers. I tried creating this server side code: And invoking it with the following to no avail: Can someone fill me in on how to invoke server side SignalR azure functions using an ASP.NET Core client?Published Date : 29 марта 2023 г.
Multiple Column Pull Down Menu - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193972/multiple-column-pull-down-menu How do I program the pull down menu below to display multiple columns? GitHub: https://github.com/DeanEverhart/ContosoUniversity1 Tutorial: https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro?view=aspnetcore-6.0 Environment: Net Core 6, Visual Studio Community 2022 (64 bit), WIndows 11Published Date : 29 марта 2023 г.
Send email via Graph and Exchange Online not delivery message : Access denied, traffic not accepted from this IP (5.7.708) - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/302065/send-email-via-graph-and-exchange-online-not-deliv Hi, Everything working fine to send email via Graph by ASP.NET Core 5.0 Application. Big problem, Exchange Online won't delivery the message like title said. I read documentation and follow instructions to get it working, but it is not working. Someone already have problem like that ? Thank you !Published Date : 29 марта 2023 г.
Any sample .net websites with authentication & authorization? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1192847/any-sample-net-websites-with-authentication-author I would like to create a web portal with the following features. It would be the best where I can have a sample solutions project where i can do modification. I am using VS 2022 at the moment and i would prefer a c# language. Thanks in advance for any feedback.Published Date : 29 марта 2023 г.
Mail functionality breaks in Azure Web Apps - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193756/mail-functionality-breaks-in-azure-web-apps Hello! I have recently started working on an ASP.NET Core application that is to be deployed as an Azure Web App. As part of the App, we need some sort of mailing functionality in order to notify customers upon purchases. However, every part of code that I write that handles mailing works while building locally, and breaks upon deploying the actual App Service. Is there something I am missing? Between System.Net.Mail, Sendgrid, Sendgrid's API as well as Mimekit/Mailkit, I have not been able to send SMTP-Emails at all, even with just "This is a test" as the most barebone implementation possible. The idea I had was that, as we are using the Microsoft Identity Platform to authenticate user access to our app, maybe that ahs something to do with it? But I'm not sure how to remedy the problem.Published Date : 29 марта 2023 г.
Reporting Services Open Link In New Window and Issue with Closing Speechmark Being Converted to HTML - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1191690/reporting-services-open-link-in-new-window-and-iss Hello I have a report where I want to embed a hyperlink to link to another system and I have tried various approaches but with everything I try either both the starting and ending speechmarks/tick marks/back ticks are automatically converted to the equivalent HTML character code which is then passed to the URL being opened resulting in an error. An example URL I want to open is: [http://SERVER/ProMonitor/ilp/meetingscomments/meetings.aspx?academicyearid=2223&pmstudentid=kYtgI8P%2b9GA%3d] This should be able to be achieved with the following: However it gets inserted as (from hovering over the link or right-clicking and selecting the copy link option): This passes a spurious %27 on the end which then causes the record it should load not to be found. If I remove the speechmark then the link does not work and nothing happens. If I replace the ' with " then I end up with %22 at the start and the end. If I replace with the back tick then I end up with %60 at the start and the end. I have tried: Whatever I try, the output is identical and at least the closing speechmark is converted to its HTML equivalent and passed to the URL This is an example of a user defined function I created: Any help would be appreciated as I feel I have exhausted all options on what I thought would be something really quick and easy. EDIT I had a further idea which was to add & to the end of the URL so the pmstudentid parameter ends up intact and then it ends with &%27 however this still errored Upon further checking, if I disable my internet connection (as the URL results in an instant redirect to an error page on the target application) I end up with the code at the end being translated from: To So it would appear this is actually the real issue although if I copy and paste the URL in Edge it still shows the + as %2B as it should. I just need it not to convert back and forth between HTML character codes and ASCII codes This is the reference I used to double check the character encoding: https://www.w3schools.com/tags/ref_urlencode.ASP Thanks RobinPublished Date : 29 марта 2023 г.
Microsoft OLE DB Provider for ODBC Drivers error '80004005' when I click on a asp web link. - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193976/microsoft-ole-db-provider-for-odbc-drivers-error-8 Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Microsoft Access Driver] Your network access was interrupted. To continue, close the database, and then open it again. /AGSafety/AGSafetydbconn.inc, line 5Published Date : 29 марта 2023 г.
get a connection from an already running Database server - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193966/get-a-connection-from-an-already-running-database Hi, I have been working on visual studio with SQL perfectly for like a week. For some background, I am using Parallels on MacOS which is basically a virtual machine on mac that helps me run windows. I am using Visual Studio 2022, SQL server 2014. It worked perfectly for a week, I was able to make .dbo file for database using my computer name. The problem occurred yesterday when I accidently deleted Visual Studio now the Database name would not appear ( it earlier was). Also. I went to configuration manager for SQL MSSQLServer and Browser are both running and automatic. And, when I go to SQL studio management Database and server are both working perfectly there but it's just visual studio which would not show database names now, I don't know why. Any help would be appreciated. Looking forward to help.Published Date : 29 марта 2023 г.
asp.net תקלה - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193840/asp-net היי הורדתי visual studio 2022 אני מחפשת ליצור פרויקט של asp.net enpty web site ואני לא מוצאת זה נותן לי רק asp.net core מה לעשות? תודהPublished Date : 29 марта 2023 г.
Http chunk encoding miss end of chunked encoding("0\r\n") or tailer("\r\n") on IIS 7.5 - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1192069/http-chunk-encoding-miss-end-of-chunked-encoding(0 I create a simple ASP .NET Application and write a generic web handler (HelloFilterWithClose.ashx). HelloFilterWithClose.ashx ProcessRequest with setting a HttpResponse.Filter(MyFilter), and it response to http client with write a PDF file to http body. After writing a PDF file to http body, it Flush and Close HttpResponse. Running the app on IIS 7.5 Windows Server 2008 R2 sets the transfer encoding of the response to chunked and Wireshark shows that there is only one data chunk but no end of chunked encoding("0\r\n") or tailer("\r\n") Running the app on IIS 10 will have no above problem. MyFilter: HelloFilterWithClose.ashx: EndPublished Date : 28 марта 2023 г.
Техническая документация
https://learn.microsoft.com/ru-ru/docs/ Поиск Индекс Каталог продуктов Изучите наши руководства и статьи по продуктам. .NET Пользовательский интерфейс многоплатформенного приложения .NET (.NET MAUI) Адаптивные карточки AltspaceVR ASP.NET Azure Центр архитектуры Azure Служба Azure Bot Azure DevOps Azure Health Bot Azure IoT Azure Quantum AzurePublished Date : 28 марта 2023 г.
Общие сведения о защите данных ASP.NET Core
https://learn.microsoft.com/ru-ru/aspnet/core/security/data-protection/introduction Узнайте о концепции защиты данных и принципах проектирования API защиты данных ASP.NET Core.Published Date : 28 марта 2023 г.
Руководство. Чтение связанных данных — ASP.NET MVC с помощью EF Core
https://learn.microsoft.com/ru-ru/aspnet/core/data/ef-mvc/read-related-data Из этого руководства вы узнаете, как читать и отображать связанные данные — данные, которые Entity Framework загружает в свойства навигации.Published Date : 28 марта 2023 г.
Часть 6. Razor Страницы с EF Core в ASP.NET Core — чтение связанных данных
https://learn.microsoft.com/ru-ru/aspnet/core/data/ef-rp/read-related-data Часть 6 серии руководств по Razor Pages и Entity Framework.Published Date : 28 марта 2023 г.
What do I need to do after adding the ASP.NET Core Identity via a scaffold to a Blazor server app? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1194017/what-do-i-need-to-do-after-adding-the-asp-net-core I have a ASP.NET Core Blazor server app that I am adding ASP.NET Core Identity to. I am setting the identity DB to be a distinct DB from the app DB. Here's what I found needed to be done after the scaffolding completes: It does insert the following in Program.cs: But it did not add the following and so you need to (I think the scaffold assumes you will share the app DbContext). Note that there is no longer an IdentityHostingStartup.cs file. To create the database, as you now have two DbContext classes, you need to specify the context. In Program.cs add: To protect against cross-site request forgery attacks on a logout, you need an XSRF token. In Blazor there is no direct access to the HttpContext, so this has to be grabbed and copied. This requires the following. Create the file Services/TokenProvider.cs At the top of App.razor, insert: In Program.cs add: In _Host.cshtml we now populate the token provider: First add the following to _Imports.razor. You may need to pull in via NuGet (if you don't have it yet) Microsoft.AspNetCore.Components.Authorization. In NavMenu.razor you need to add the <AuthorizeView>, <Authorized>/<NotAuthorized> and add a login & logout menu item. The logout needs to be a POST to avoid cross scripting attacks and therefore it's actually a form with a submit button (more for that further down). The HTML for the menu itself can be anything you want as this is just an example of the framework it needs to be in and the logout form post. Also note that the urls to login & logout do not point to a file in your solution (unless you told the scaffold to instantiate them). They are in the Identity DLL. But they have a resource path in that DLL that matches where they would be if instantiated with the same namespace/filename. To get the conditional elements to work in the nav menu, add <CascadingAuthenticationState> to the HTML in App.razor. And put RouteData in an <AuthorizeRouteView> element. And you're done!Published Date : 28 марта 2023 г.
Планирование развертывания для SPF
https://learn.microsoft.com/ru-ru/system-center/spf/plan-deployment В этом разделе приводятся общие сведения о планировании установки Service Provider Foundation и ее предварительных требованиях.Published Date : 28 марта 2023 г.
Blazor Server ASP.NET Core с Entity Framework Core (EF Core)
https://learn.microsoft.com/ru-ru/aspnet/core/blazor/blazor-server-ef-core Узнайте, как использовать Entity Framework Core (EF Core) в Blazor Server приложениях.Published Date : 28 марта 2023 г.
Recommended method for migrating .net app to Azure - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193541/recommended-method-for-migrating-net-app-to-azure What is the recommended strategy for migrating a .net web application interacting with API's, web services, and databases to Azure and what are the major activities involved in this?Published Date : 28 марта 2023 г.
Github actions workflow failing to find Index.html for an ASP .NET Core MVC web app - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1189923/github-actions-workflow-failing-to-find-index-html Although I've been studying computer science for a few years now and am pretty comfortable talking about it, this is a new area for me and I'm not very familiar with all the proper terminology, so I apologize in advance. I'm trying to publish an azure static web app to act as a personal portfolio. I have the full ASP .NET Core MVC project built and I have added the github action workflow file but believe I have configured it incorrectly. It successfully builds in Oryx but gets stuck shortly after with this error: Here is my workflow file env variables: I'm wondering if what I'm trying to do is even possible, or if I'm barking up the wrong tree by trying to publish this kind of project without building it with something like Blazor. Any thoughts or recommendations?Published Date : 28 марта 2023 г.
Correlation failed, cookies not found using OpenID in ASP.net core MVC 6 - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1191067/correlation-failed-cookies-not-found-using-openid I am getting the below error in my ASP.net core MVC 6 application, my application is using Keycloak and is running in a docker container. We connect to Keycloak using OpenID, but after logging in Keycloak this error occur so here is my Program.cs The volume is already mounted so that data protection persist to the file system. I have tried every single solution I can found online to no luck What else do I need to check and do and what am I doing wrong?Published Date : 28 марта 2023 г.
Can you log custom properties with Auto-instrumentation? - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1192492/can-you-log-custom-properties-with-auto-instrument Hi, I have a ASP.NET MVC application, I have Application Insights enabled with Auto-Instrumentation and I want to add custom properties on the exception for the Application Insight to pickup, At the moment I have created a Global Exception Handler which extends Exception.Data Dictionary, because I thought Auto-Instrumentation would pick this up, but it doesn't seem that is the case, Anyone might have an opinion?Published Date : 28 марта 2023 г.
The "StaticWebAssetsGeneratePackManifest" task failed unexpectedly Asp.Net Web Application MVC - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193441/the-staticwebassetsgeneratepackmanifest-task-failePublished Date : 28 марта 2023 г.
There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'. - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193238/there-is-no-viewdata-item-of-type-ienumerable(sele When i am passing data from view to controller then below error is coming There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'.Published Date : 28 марта 2023 г.
Null Warnings Re: Student, Course Create and Edit - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193618/null-warnings-re-student-course-create-and-edit Working on the following Contoso University Tutorial... https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/crud?view=aspnetcore-6.0#update-the-edit-page The code runs successfully but has some warnings... Errors: Warning (active) CS8602 Dereference of a possibly null reference. Severity Code Description Project File Line Suppression State Warning CS8620 Argument of type 'IIncludableQueryable<Student, ICollection<Enrollment>?>' cannot be used for parameter 'source' of type 'IIncludableQueryable<Student, IEnumerable<Enrollment>>' in 'IIncludableQueryable<Student, Course?> EntityFrameworkQueryableExtensions.ThenInclude<Student, Enrollment, Course?>(IIncludableQueryable<Student, IEnumerable<Enrollment>> source, Expression<Func<Enrollment, Course?>> navigationPropertyPath)' due to differences in the nullability of reference types. ContosoUniversity C:\Users\User1\Desktop_Tech\Net_Contoso University_ContosoUniversity\ContosoUniversity\Controllers\StudentController.cs 38 Active Project on GitHub: https://github.com/DeanEverhart/ContosoUniversity1Published Date : 28 марта 2023 г.
Учебник. Создание веб-API с помощью ASP.NET Core
https://learn.microsoft.com/ru-ru/aspnet/core/tutorials/first-web-api Узнайте, как создать веб-API с помощью ASP.NET Core.Published Date : 28 марта 2023 г.
Нагрузочное тестирование в ASP.NET Core
https://learn.microsoft.com/ru-ru/aspnet/core/test/load-tests Узнайте о нескольких средствах и подходах к нагрузочному тестированию и нагрузочному тестированию ASP.NET Core приложениях.Published Date : 28 марта 2023 г.
ICertificateLoader Interface (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.icertificateloader Interface to implement loading of a certificate. Only use when loading a certificate from a daemon application, or an ASP NET app, using MSAL .NET directly. For an ASP NET Core app, Microsoft Identity Web will handle the certificate loading for you. IConfidentialClientApplication app; ICertificateLoader certificateLoader = new DefaultCertificateLoader(); certificateLoader.LoadIfNeeded(config.CertificateDescription); app = ConfidentialClientApplicationBuilder.Create(config.ClientId) .WithCertificate(config.CertificateDescription.Certificate) .WithAuthority(new Uri(config.Authority)) .Build();Published Date : 28 марта 2023 г.
TokenCacheExtensions.AddInMemoryTokenCache Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheextensions.addinmemorytokencache Add an in-memory well partitioned token cache to MSAL.NET confidential client application. Don't use this method in ASP.NET Core: rather use: services.AddInMemoryTokenCache() in ConfigureServices.Published Date : 28 марта 2023 г.
ITokenAcquisition.GetAccessTokenForUserAsync Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.itokenacquisition.getaccesstokenforuserasync Typically used from an ASP.NET Core web app or web API controller. This method gets an access token for a downstream API on behalf of the user account for which the claims are provided in the User member of the controller's HttpContext parameter.Published Date : 28 марта 2023 г.
TokenCacheExtensions Class (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheextensions Extension methods to expose a simplified developer experience for adding token caches to MSAL.NET confidential client applications in ASP.NET, or .NET Core, or .NET FW.Published Date : 28 марта 2023 г.
DefaultCertificateLoader Class (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.defaultcertificateloader Certificate Loader. Only use when loading a certificate from a daemon application, or an ASP NET app, using MSAL .NET directly. For an ASP NET Core app, Microsoft Identity Web will handle the certificate loading for you. IConfidentialClientApplication app; ICertificateLoader certificateLoader = new DefaultCertificateLoader(); certificateLoader.LoadIfNeeded(config.CertificateDescription); app = ConfidentialClientApplicationBuilder.Create(config.ClientId) .WithCertificate(config.CertificateDescription.Certificate) .WithAuthority(new Uri(config.Authority)) .Build();Published Date : 28 марта 2023 г.
ConfidentialClientApplication.AcquireTokenByAuthorizationCode Method (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.confidentialclientapplication.acquiretokenbyauthorizationcode Acquires a security token from the authority configured in the app using the authorization code previously received from the STS. It uses the OAuth 2.0 authorization code flow (See https://aka.ms/msal-net-authorization-code). It's usually used in web apps (for instance ASP.NET / ASP.NET Core web apps) which sign-in users, and can request an authorization code. This method does not lookup the token cache, but stores the result in it, so it can be looked up using other methods such as AcquireTokenSilent(IEnumerable<String>, IAccount).Published Date : 28 марта 2023 г.
AcquireTokenOptions.AuthenticationOptionsName Property (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.acquiretokenoptions.authenticationoptionsname Gets the parameters describing the confidential client application (ClientId, Region, Authority, client credentials) from a particular (ASP.NET Core) authentication scheme / settings.Published Date : 28 марта 2023 г.
AuthorizeForScopesAttribute.OnException(ExceptionContext) Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.authorizeforscopesattribute.onexception Handles the MsalUiRequiredException.Published Date : 28 марта 2023 г.
ITokenAcquirerFactory.GetTokenAcquirer Method (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.itokenacquirerfactory.gettokenacquirer Get a token acquirer given a set of application identity options.Published Date : 28 марта 2023 г.
ApplicationOptions.Instance Property (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.applicationoptions.instance STS instance (for instance https://login.microsoftonline.com for the Azure public cloud). The name was chosen to ensure compatibility with AzureAdOptions in ASP.NET Core. This property is mutually exclusive with AzureCloudInstance. If both are provided, an exception will be thrown.Published Date : 28 марта 2023 г.
ConfidentialClientApplication.AcquireTokenByAuthorizationCodeAsync Method (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.confidentialclientapplication.acquiretokenbyauthorizationcodeasync [V2 API] Acquires a security token from the authority configured in the app using the authorization code previously received from the STS. It uses the OAuth 2.0 authorization code flow (See https://aka.ms/msal-net-authorization-code). It's usually used in web apps (for instance ASP.NET / ASP.NET Core web apps) which sign-in users, and therefore receive an authorization code. This method does not lookup the token cache, but stores the result in it, so it can be looked up using other methods such as AcquireTokenSilentAsync(IEnumerable<String>, IAccount).Published Date : 28 марта 2023 г.
IConfidentialClientApplication.AcquireTokenByAuthorizationCode Method (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.iconfidentialclientapplication.acquiretokenbyauthorizationcode [V3 API] Acquires a security token from the authority configured in the app using the authorization code previously received from the STS. It uses the OAuth 2.0 authorization code flow (See https://aka.ms/msal-net-authorization-code). It's usually used in web apps (for instance ASP.NET / ASP.NET Core web apps) which sign-in users, and can request an authorization code. This method does not lookup the token cache, but stores the result in it, so it can be looked up using other methods such as AcquireTokenSilent(IEnumerable<String>, IAccount).Published Date : 28 марта 2023 г.
ITokenAcquisition Interface (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.itokenacquisition Interface for the token acquisition service (encapsulating MSAL.NET).Published Date : 28 марта 2023 г.
ITokenAcquisition.GetAuthenticationResultForUserAsync Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.itokenacquisition.getauthenticationresultforuserasync Typically used from an ASP.NET Core web app or web API controller. This method gets an access token for a downstream API on behalf of the user account for which the claims are provided in the current userPublished Date : 28 марта 2023 г.
ApplicationOptions.TenantId Property (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.applicationoptions.tenantid Tenant from which the application will allow users to sign it. This can be: a domain associated with a tenant, a GUID (tenant id), or a meta-tenant (e.g. consumers). This property is mutually exclusive with AadAuthorityAudience. If both are provided, an exception will be thrown.Published Date : 28 марта 2023 г.
ITokenAcquirer.GetTokenForUserAsync Method (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.itokenacquirer.gettokenforuserasync Typically used from an ASP.NET Core web app or web API controller. This method gets an access token for a downstream API on behalf of the user account for which the claims are provided in the current user.Published Date : 28 марта 2023 г.
TokenCacheExtensions.AddDistributedTokenCache Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheextensions.adddistributedtokencache Add a distributed token cache.Published Date : 28 марта 2023 г.
ITokenAcquirerFactory Interface (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.itokenacquirerfactory Token acquirer factory.Published Date : 28 марта 2023 г.
ITokenAcquirer Interface (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.itokenacquirer Interface for the token acquisition service (for instance encapsulating MSAL.NET).Published Date : 28 марта 2023 г.
ApplicationOptions.RedirectUri Property (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.applicationoptions.redirecturi This redirect URI needs to be registered in the app registration. See https://aka.ms/msal-net-register-app for details on which redirect URIs are defined by default by MSAL.NET and how to register them. Also use: WithDefaultRedirectUri() which provides a good default for public client applications for all platforms. For web apps and web APIs, the redirect URI is computed from the URL where the application is running (for instance, baseUrl//signin-oidc for ASP.NET Core web apps). For daemon applications (confidential client applications using only the Client Credential flow that is calling AcquireTokenForClient), no reply URI is needed.Published Date : 28 марта 2023 г.
SessionTokenCacheProviderExtension.AddSessionPerUserTokenCache Method (Microsoft.Identity.Web.TokenCacheProviders.Session) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheproviders.session.sessiontokencacheproviderextension.addsessionperusertokencache Adds an HTTP session-based per-user token cache to the service collection.Published Date : 28 марта 2023 г.
AppServicesAuthenticationTokenAcquisition Class (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.appservicesauthenticationtokenacquisition Implementation of ITokenAcquisition for App Services authentication (EasyAuth).Published Date : 28 марта 2023 г.
SessionTokenCacheProviderExtension.AddSessionAppTokenCache Method (Microsoft.Identity.Web.TokenCacheProviders.Session) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheproviders.session.sessiontokencacheproviderextension.addsessionapptokencache Adds an HTTP session-based application token cache to the service collection.Published Date : 28 марта 2023 г.
CookiePolicyOptionsExtensions.HandleSameSiteCookieCompatibility Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.cookiepolicyoptionsextensions.handlesamesitecookiecompatibility Handles SameSite cookie issue according to the https://docs.microsoft.com/en-us/aspnet/core/security/samesite?view=aspnetcore-3.1. The default list of user agents that disallow "SameSite=None", was taken from https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/.Published Date : 28 марта 2023 г.
AppServicesAuthenticationTokenAcquisition.GetAuthenticationResultForUserAsync Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.appservicesauthenticationtokenacquisition.getauthenticationresultforuserasync Typically used from an ASP.NET Core web app or web API controller. This method gets an access token for a downstream API on behalf of the user account for which the claims are provided in the current userPublished Date : 28 марта 2023 г.
AppServicesAuthenticationTokenAcquisition.GetAccessTokenForUserAsync Method (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.appservicesauthenticationtokenacquisition.getaccesstokenforuserasync Typically used from an ASP.NET Core web app or web API controller. This method gets an access token for a downstream API on behalf of the user account for which the claims are provided in the current userPublished Date : 28 марта 2023 г.
ApplicationOptions Class (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.applicationoptions Base class for options objects with string values loadable from a configuration file (for instance a JSON file, as in an asp.net configuration scenario) See https://aka.ms/msal-net-application-configuration See also derived classes PublicClientApplicationOptions and ConfidentialClientApplicationOptionsPublished Date : 28 марта 2023 г.
CookiePolicyOptionsExtensions Class (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.cookiepolicyoptionsextensions Extension class containing cookie policies (work around for same site).Published Date : 28 марта 2023 г.
PublicClientApplicationOptions Class (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.publicclientapplicationoptions Configuration options for a public client application (desktop/mobile app). See https://aka.ms/msal-net/application-configurationPublished Date : 28 марта 2023 г.
MsalSessionTokenCacheProvider Class (Microsoft.Identity.Web.TokenCacheProviders.Session) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokencacheproviders.session.msalsessiontokencacheprovider An implementation of token cache for confidential clients backed by an HTTP session.Published Date : 28 марта 2023 г.
ConfidentialClientApplicationOptions Class (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.confidentialclientapplicationoptions Configuration options for a confidential client application (web app / web API / daemon app). See https://aka.ms/msal-net/application-configurationPublished Date : 28 марта 2023 г.
AcquireTokenOptions Class (Microsoft.Identity.Abstractions) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.acquiretokenoptions Options directing the token acquisition.Published Date : 28 марта 2023 г.
Microsoft Authentication Library for .NET - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/entra/msal/dotnet/ Learn how you can use the Microsoft Authentication Library for .NET (MSAL.NET) to acquire tokens from the Microsoft identity platform and access protected web APIs.Published Date : 28 марта 2023 г.
Client credential flows in MSAL.NET - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/entra/msal/dotnet/acquiring-tokens/web-apps-apis/client-credential-flows MSAL is a multi-framework library. Confidential Client flows are not available on mobile platforms (UWP, Xamarin.iOS, and Xamarin.Android) since there is no secure way of deploying a secret there.Published Date : 28 марта 2023 г.
TokenAcquisitionOptions Class (Microsoft.Identity.Web) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.web.tokenacquisitionoptions Options passed-in to create the token acquisition object which calls into MSAL .NET.Published Date : 28 марта 2023 г.
ConfidentialClientApplication Class (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.confidentialclientapplication Class to be used for confidential client applications (web apps, web APIs, and daemon applications).Published Date : 28 марта 2023 г.
IConfidentialClientApplication Interface (Microsoft.Identity.Client) - Microsoft Authentication Library for .NET
https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.client.iconfidentialclientapplication Component to be used with confidential client applications like web apps/API.Published Date : 28 марта 2023 г.
Подтверждение учетной записи и восстановление пароля в ASP.NET Core
https://learn.microsoft.com/ru-ru/aspnet/core/security/authentication/accconfirm Узнайте, как создать приложение ASP.NET Core с подтверждением электронной почты и сбросом пароля.Published Date : 27 марта 2023 г.
Глобализация и локализация в ASP.NET Core Blazor
https://learn.microsoft.com/ru-ru/aspnet/core/blazor/globalization-localization Узнайте, как визуализировать глобализованное и локализованное содержимое для пользователей на разных языках с разными региональными параметрами.Published Date : 27 марта 2023 г.
Межпроцессное взаимодействие с помощью gRPC
https://learn.microsoft.com/ru-ru/aspnet/core/grpc/interprocess Узнайте, как использовать gRPC для межпроцессного взаимодействия.Published Date : 27 марта 2023 г.
Создание веб-API с помощью ASP.NET Core и MongoDB
https://learn.microsoft.com/ru-ru/aspnet/core/tutorials/first-mongo-app В этом руководстве показано, как создать веб-API ASP.NET Core с помощью базы данных NoSQL MongoDB.Published Date : 27 марта 2023 г.
sql-server-reporting-services rdlc performance issue - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1045072/sql-server-reporting-services-rdlc-performance-iss We use Microsoft.ReportViewer.WebForms, Version=15.0.0.0 in asp.net c# .net framework 4.8 So far all rdlc reports render fine but we are testing with large report now and it takes like 20 mins to render. Data in sql management studio is miliseconds and debugging Datasource is 1 sec tops. the 20 mins is really used to render the report. So after lots of experimenting like changing grooping, calculations in report etc the conclusion is that is not the solution. So then I found a change of web.config on the web <trust legacyCasModel="true" level="Full"/> and strange thing is that it completely solves it as everything is perfectly fast after the change and within 10 secs I have full report rendered on screen. So 20 min > 10 secs with this web.config change. PROBLEM is that I am not willing to change a security setting to legacy mode on any production server. period. Also tried things like setting up library in .net 3.5 just for the rendering code and it works but doesn't support RDLC 15.0.0.0 (VS 2019 - 2022) I read a lot about this subject but the discussions allready going years back. I cannot believe MS didn't solve this yet? So anyone? ThanxPublished Date : 27 марта 2023 г.
Tutorial - Web app accesses SQL Database as the user - Azure App Service
https://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-app-access-sql-database-as-user-dotnet Secure database connectivity with Azure Active Directory authentication from .NET web app, using the signed-in user. Learn how to apply it to other Azure services.Published Date : 27 марта 2023 г.
Выпуски и планирование EF Core
https://learn.microsoft.com/ru-ru/ef/core/what-is-new/ Сведения о текущих выпусках EF Core, а также о графике и планах на будущие выпуски.Published Date : 27 марта 2023 г.
Реконструирование — EF Core
https://learn.microsoft.com/ru-ru/ef/core/managing-schemas/scaffolding/ Реконструирование модели на основе существующей базы данных с помощью Entity Framework CorePublished Date : 27 марта 2023 г.
write C# code to create pdf files from SSRS reports; what is best practice; write console application and etc - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1179674/write-c-code-to-create-pdf-files-from-ssrs-reports I would like to write C# console or some project type from Visual Studio that will create PDF files on our network from SSRS Reports; It needs to be part of a job or task that runs every night; What is the best Visual Studio project to use? What is the library I can use to tap into the SSRS Reports with passing parameters from a table?Published Date : 27 марта 2023 г.
Ведение журнала Application Insights в .NET - Azure Monitor
https://learn.microsoft.com/ru-ru/azure/azure-monitor/app/ilogger Узнайте, как использовать Application Insights с интерфейсом ILogger в .NET.Published Date : 27 марта 2023 г.
APIM: Intermittent ClientConnectionFailure at forward-request - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/747999/apim-intermittent-clientconnectionfailure-at-forwa Hello all! Something changed behind the scenes of our Azure infrastructure on 2022-02-10 to start causing hundreds of intermittent "ClientConnectionFailure at forward-request" errors per day and we could use some help tracking it down. Architecturally we have an ASP.NET web app calling an APIM instance that uses Function Apps to provide a microservice-ish environment. We use the APIM Consumption pricing tier so we don't have access to use virtual networks (Vnet) therefore all the network traffic uses DNS and public FQDNs for all our resources. Here are some facts: Here is what we tried: Help!!Published Date : 27 марта 2023 г.
Azure web app with custom domains redirect non www to www - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/196256/azure-web-app-with-custom-domains-redirect-non-www While trying to finish the setup of our new website on an Azure web App (the app is an asp.net core 3.1 if that matter), I struggle to redirect the non-www url to our www url. Right now, our www over https url works as expected. But using the non www url gives me the "Your connection is not private" page, which is kind of expected since the certificate is configured over the www address (I used an App Service Managed Certificate for that). At the same time, in the website in the Startup class, I have a custom rule made that should do the redirect. Yet, it seems from my understanding that the block I see is triggerred before the the code is executed on the website. I tried all solutions defined on those forums for non www to www questions, for naked redirect as well. I will admit that before this project, I never had to configure dns record at all and I'm kind of lost as to what I could do to make it work there. I even tried to not enforce https on the web app as a way of not blocking the request. As for url right now, I have the following (each with their status): I wonder at this point what I am missing.Published Date : 27 марта 2023 г.
Первое знакомство с развертыванием - Visual Studio (Windows)
https://learn.microsoft.com/ru-ru/visualstudio/deployment/deploying-applications-services-and-components Сведения о вариантах развертывания приложений из среды Visual Studio.Published Date : 27 марта 2023 г.
Что такое кэш Azure для Redis?
https://learn.microsoft.com/ru-ru/azure/azure-cache-for-redis/cache-overview Узнайте о том, как использовать Кэш Azure для Redis для обеспечения кэширования содержимого, кэширования сеансов пользователей, организации очереди для заданий и сообщений, а также распределенных транзакций.Published Date : 27 марта 2023 г.
Масштабирование экземпляра Кэша Azure для Redis
https://learn.microsoft.com/ru-ru/azure/azure-cache-for-redis/cache-how-to-scale Сведения о том, как масштабировать экземпляры Кэша Azure для Redis на портале Azure и с помощью инструментов, таких как Azure PowerShell и Azure CLI.Published Date : 27 марта 2023 г.
I can't generate a Razor view in ASP.NET Core v7 - Package restore failed - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1193096/i-cant-generate-a-razor-view-in-asp-net-core-v7-pa I'm new in ASP.NET and I don't know exactly where is the error or which package is broken. It only occurs while generating a template of view. I can generate Controllers and empty Views normally. I reinstalled the Visual Studio, cleaned and rebuilt the solution, followed the steps from this answer, but still couldn't solve my issue. Razor options: View name: Index Model: Any Error: Error running selected code generator: "Package restore failed. Reverting package changes to project"Published Date : 27 марта 2023 г.
Add an SSL Certificate to API running on Virtual Machine - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1185597/add-an-ssl-certificate-to-api-running-on-virtual-m I have a client who has a web application, an API, and a database in their Azure account. I have successfully updated the web application to use an SSL certificate...a certificate that is stored in the Key Vault. However, when users go to the website, and attempt certain actions, an error is raised because the certificate, associated with the API/virtual machine is expired. How do I go about making changes so that the virtual machine/API will use the certificate in the Key Vault? NOTE: I have never worked with virtual machines, in Azure, before.Published Date : 27 марта 2023 г.
Blazor app crashes when debugging after windows secutiry updates - Microsoft Q&A
https://learn.microsoft.com/en-us/answers/questions/1189857/blazor-app-crashes-when-debugging-after-windows-se Afert 2023 march 14 updates my app stop debugging. If I start it without debugging it works ok, if I start it debugging it crashes at startup. The error is the following: Microsoft.WebAssembly.Diagnostics.DevToolsProxy[0] DevToolsProxy::Run: Exception System.AggregateException: One or more errors occurred. (Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')) ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index) at Newtonsoft.Json.Linq.JContainer.GetItem(Int32 index) at Newtonsoft.Json.Linq.JArray.get_Item(Object key) at Microsoft.WebAssembly.Diagnostics.MonoProxy.AcceptEvent(SessionId sessionId, String method, JObject args, CancellationToken token) at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.OnEvent(SessionId sessionId, String method, JObject args, CancellationToken token) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at Microsoft.WebAssembly.Diagnostics.DevToolsProxy.Run(Uri browserUri, WebSocket ideSocket)Published Date : 27 марта 2023 г.