Reuse legacy COM component in ASP .NET core Web API
I have a legacy COM dll which exposes business logic via COM objects. Its implemented using VC++. I am in process of modernising my application for web. Initially I wanted reuse this COM component without any change. A single instance of COM object only…
Blazor Culture in the Route
Is it recommended to add the language (culture) in the route e.g. site.com/en/page-name or only page name is sufficient e.g. site.com/page-name? How to I change the culture to de-DE if you paste the URL like the following? mysite.com/de/home Thank…
how do I find the working area of my uwp app in .net using C#
This is a simple question but I'm having a rough time finding an answer. What I want to find is the working area of my application. I'm working in Visual Studio 2022 and have created the basic project. Searches on the internet result in many answers…
How can I access SharePoint files via a C# web api that uses no user authentication?
I have followed numerous guides on how to access SharePoint via C# and no matter what I do I end up with a "401 Unauthorized response:" I am out o fideas. Anybody able to help? Would prefer working code examples. using…
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…
Request OAuth2.0 token using azure app services managed identity
Hi All, I have a question on Azure App Service Managed Identity. Currently we are working on an API project where it provide the function to interact with user in Azure Entra thru Microsoft Graph API calling. To protect the API function, we have a…
Blazor web app net 8 rendermode auto authentication
I am confused on how to add authorization to my components. In the client part I am using AuthenticationStateProvider and in the server part ServerAuthenticationStateProvider. Segum I've been looking at the documentation and other examples. My blazor app…
How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"
My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…
How should I add a Blazor UI to an existing .NET Core API?
We have a .NET Core product with an API that we want to create a UI for. We've decided to switch from React (which we've used on other projects) to Blazor because our team all knows C# and only one person knows React/JS. I've done some initial learning…
does arr works in iis express
for a blazor with all render modes enables (a server and a wasm-project integrated in one solution) I need: Sticky sessions with Application Request…
can I upgrade my system.web.mvc from 4.5 to 5.0
Hi, I have a couple of related threads about this out there, but it is cluttered, so i created this one I am initially using vs2019. I have an MVC project called Mbsa. It is my primary project. I am using the runtime version v4.0.3.319. It uses .net…
How to Sum, Join, Union, Group By Month And Year Using LINQ Query
I have two tables. I want to find the sum of the data in one table and the subtraction of the second table. I am trying to explain the matter by attaching an image below. Note here that I don't know which table's data will come first. Maybe the data of…
Fail to upload .Net MAUI application on Apple appstore
We have developed an application in .Net MAUI, we tried this application on Android and iPhone device. It works properly on both platform. Now we are trying to upload this application on Apple AppStore, but fails. We generate ipa file from Visual Studio…
Exception when trying to save file stream in local directory.
Hi, I got this exception when trying to download file and keep it in my local folder. The input is stream and the expected output: is file. Access to the path 'D:\Push1' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String…
How can I prevent window titles from overlapping in a Maui app with shell navigation and modals?
I'm developing a Maui app with shell navigation and modals, and I'm encountering an issue with overlapping window titles. When navigating from the main page to another page using shell navigation, a back button appears, causing the window title to shift…
Change android alert dialog background and text color from code in .NET8 MAUI
I would like to change the default white background color on the android (API 34) alert dialogs (like the one what appers when the user taps on a normal Picker). Its important that I would not like to use the styles.xml solution, I need a c# code that…
xamarin control changing button invisible true false in code
How can I control if a button is visible in code. <buttons:BindableButton BindingContext="{Binding Close_Page_Clicked}" HorizontalOptions="EndAndExpand" IsVisible="{Binding…
how to install APP in android in maui?
I will download new version update and install it in my android device.
Content Security Policy Violations happening for whitelisted domains only for Netherlands and Switzerland users.
I have a csp policy where I have whitelisted all the domains from which I want to load the content to my application and have added only default-src directive which is fallback to all the other directives. I have tested the policy on lower…
EditForm in Blazor does not work on submit
Below is the source code, brand new blazor project vs2022 , Version 17.9.5 put a break point on string breakpointhere = "z"; examine xx variable - for the model, you will see that the MyTitle string is always null. Such basic stuff…