How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."
Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…
Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera
When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…
Localize application display name of iOS developed with .NET MAUI?
Display name is localized on android in "Resources\values" folder and it works as expected. However, I can't make it work with iOS. What has been done: My solution : In info.plist : In InfoPlist.strings : In csproj : When I…
Using Phi-3 for AI mobile app development on Maui - Need resources
I am keenly interested in bringing AI to mobile devices. Where can I get more information on using Phi-3 in Maui apps?
ASP.NET button control not able to make disabling in panel control using c#
i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…
Deploy to Azure failing with Error: ENOTFOUND
I have repository with simple .net web api that I want to deploy to Azure. However my deploy is always failing with this error: The workflow file can be found here. Does anybody know what is the cause of this error?
Can I force AuthenticationState to refresh (when claims have changed)?
Hi all; Is there any way to force the AuthenticationState to re-read the database when claims have changed? I've implemented a ServerAuthenticationStateProvider and it works great for my adding IdentityUser.Enabled. But when I set it to re-read the…
Updating app service from .NET 6 to 8
I'm trying to update my asp.net core backend from .NET 6 to 8. I've updated the target framework for the projects, changed the docker images to version 8, and updated the exposed ports. It runs as expected locally. (In the past month, I've updated a…
How to fix error "Account already exists" when signing in google users on a customer entra tenant?
Dear Microsoft support team, My name is Javier Ortega, and I am writing to seek assistance with: Authentication from .Net application to Entra tenant, with google users. Currently we have a group of users migrated to a customer (external) entra tenant.…
OutputCaching issue in .NET 8.0
Hi, I have implemented the Output Caching in ASP.NET Core 8.0 and deployed the same S3 bucket and Lambda function and its exposed through AWS API gateway. After implementation output cache and I have tested the local swagger API through postman first…
Best Practice For Database Access In Blazor MAUI Hybrid App
I'm porting a project from MVC into a Blazor MAUI Hybrid app with the intent to share common components and data. I have a Razor Class Library which does this, but was wondering if I should also put my SQL Server data access in here as well or keep that…
Hot to Fix The exception 'GenericArguments[0], 'PizzaStore.PizzaDb', on 'Microsoft.EntityFrameworkCore.Design.IDesignTimeDbContextFactory`1[TContext]' violates the constraint of type 'TContext'.' was thrown while attempting to find 'DbContext' types.
I'm studing the module 'Exercise - Use the SQLite database provider with EF Core' (https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-database/5-exercise-use-sqlite-database), but when I try to set up the SQLite database to my…
Scriptmanager alert not displaying properly in same page
I am doing some simple screen add functionality and after end of saving, i am using scriptmanager.RegisterStartupScript() for save message. when i run the program, the alert have not been throwing properly. it showing same page but, without controls like…
Asp.net MVC renders 2 "form action" statements for the same form when in responsive mode
ASP.Net MVC VS 2022 Windows 11 App runs fine in desktop mode. This line: <@using (@Html.BeginForm("SubmitForm", "Home", FormMethod.Post, new { id = "subform", verify = "Y" }))> is generated correctly…
Will Visual Studio upgrade project files accordingly?
I may have an old .NET Framework app dumped into my lap. I've been looking at it for a while, to try and wrap my head around it. It's got 18 projects in the solution file, comprised of 5 different .NET Frameworks. Everything from .NET Framework 2, to…
Maui .Net 8 XCode 15.1 and 15.2 NativeAOT Error in Testflight
Hello, I have an Maui app built with XCode 15.2 and .Net 8. I am using Microsoft.EntityFrameworkCore.Sql V8.0.4 When I install it on my iPad with test flight I get: Model binding is not supported when publishing with NativeAOT. Use a compiled model. I…
How to copy big file 5g with task and within impersonation
Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,
How to fix .NET Framework error
I have a problem with my .NET Framework, whenever I run programs like Visual Studio, it gives me this error message: Clicking "Yes" forwards me to the installation page, which after running the installer, I am told that the .NET framework…
Dynamically pass the B2C sign-in policy in .NET 8
I am developing the web application using .NET 8 with Asp.NET MVC and using Azure B2C tenant for Authentication. And it will be hosted in the Azure App services that configured with two domain urls. Based on the requested Urls, I wanted to pass the…
Community toolkit install is not working
I have had community toolkit installed on this project for quite a while and now it gives the following error when I am trying to update: Severity Code Description Project File Line Suppression State Error NU1605 Warning As Error: Detected package…