my dll is only 4.00 kb when I look at its size, in object explorer, when I click the arrow, it shows nothing and I cannot get to it with a using statement.
Hi, I had an asp.net website which uses a lot of .apx files. I was told to convert it to a web application. I did that by creating an empty web application and copying the website folders and files from the website into this new web application. There…
How to manage to build/deploy and debug .NET (8) iOS project with its extension project
I am using Visual Studio (Windows). My solution includes two projects. (All .NET 8 with ios workload): <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net8.0-ios</TargetFramework> First project is the…
Are there any source apps to update the user & tables created when scaffolding an individual accounts MVC app
In Visual Studio 2022 , when you create an ASP.NET Core Web App ( Model View Controller) & select Individual Accounts as the Authentication type, a number of standard tables are created in the Database including AspNetUsers, AspNetRoles, &…
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…
Other ways to change label colors besides ColorPickerExtender
Is there another way to change color of labels on a web page and save the labels color into database besides using the ColorPickerExtender, as shown below? I asked this because using ColorPickerExtender displays the color code inside a Textbox, so that…
Connect to mac using proxy
Is there a way to use a proxy when making an SSH connection to a mac from Visual Studio? Our setup is such that we use a ProxyCommand in our SSH config on the client machine in order to successfully connect to our mac via a CloudFlare tunnel. This works…
How to customize the DrawingLine in CommunityToolkit.Maui DrawingView
I see in the documentation reference to creating a Custom Drawing Line for the DrawingView - see https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/drawingview#advanced-usage I want to enable my users to draw shapes (circle, ellipsis,…
NET MAUI - MediaElement - Not playing Audio Files stored on Google Drive
Hi I am using MediaElement to play Audio Files (.mp4) that are stored on my Google Drive,. But this is failing with error: [0:] MediaManager: Error: Error codename: ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED, Error message: Source error The following is a…
How to generate a Azure map listing countries from the .Net Core API and save a snapshot of the map image.
Hi Support Team, How to generate a Azure map listing Countries from the .Net Core API by passing region (i.e. Central and Southern and Northern) as parameter and then save a snapshot of the map image. Please kindly share inputs and samples if…
Crashing on re-navigating to second page.
I have a crashing issue I can't figure out. From my main page I have a button that opens a second page: await Shell.Current.GoToAsync("newPage"); That second page is setup as a tabbed layout with 2 tabs, both tabs are content pages, one…
Publishing a single .cs compiled file
Hi, May I please ask if it is possible to publish .cs file to make it a compiled DLL which will be in the bin folder of a live hosting, without having to publish the whole project? I asked this because I may need to make some changes to some C# codes and…
Cosmos "This is blocked by your Cosmos DB account firewall settings." within IHostedService
TLDR; Why can't I access Cosmos through an IHostedService when I am able to Access it via aspnet on the same App Service? I have an App service that serves an ASP.Net Core web API as well as hosting an IHostedService instance. The hosted service listens…
Using ToString to display on watch window
VS used to use the override of ToString to display in the watch window for objects. This no longer happens. Any way to get this back?
Error using Role Based authentication in MVC application
I have an MVC application using the .Net framework that uses Authentication with individual user accounts. Everything works great. I am able to register new users and login with them. CRUD operations work on all of my models. Then I wanted to add…
Use Generics to achieve data in required json format
I have a generic class say public class Generic<T> { public T Data {get; set;} } Suppose i have an anonymous object like var r1 = new { A = lstA, validation = null as ValidationError } var r2 = new { B = lstB, validation =…
Is there a way to trigger Outlook-Add-Ins (Web) from external? (Custom event activation)
I am currently working on Office365 add-ins development and their communication via asp.net interfaces which are registered with entra id. I would like to open email templates from an external program. Templates can be created via ms-graph or by the…
Error HRESULT E_FAIL has been returned from a call to a COM component. vs 2022
I'm trying to create a service application with WCF, when I get this error. I have tried multiple solutions that I saw online, such as adding this assembly gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll in the global assembly cache. I have…
How to test is path is unc
Hi, In net 8. string DriectoryName = "\V530-DANIS"; \V530-DANIS => is not unc but new Uri(DirectoryName).IsUnc => return true and also Uri.TryCreate(DirectoryName, UriKind.Absolute, out Uri uri) && uri != null && uri.IsUnc…
.NET 8 core MVC app with AAD (or other external) login and authorisation in local tables
Are there any examples of asp.net CORE 8 apps or tutorials which let you use Azure AD / Entra ( or other external login for authentication, but which build roles from a database's local tables eg AspNetRoles, AspNetUserRoles? Additionally are there…
How to use different Data Types in a Custom Control
I have a Custom NumericUpDown control in my WPF C# .NET 8 application that is working nicely, But now i want to update it so that it can use different Numbers DataTypes like int and decimal so that i can re-use my custom NumericUpDown control instead of…