23,885 questions with .NET-related tags

Sort by: Updated
2 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
asked 2024-04-26T16:04:18.72+00:00
Rajesh Subramanian 0 Reputation points
answered 2024-04-26T18:40:24.8666667+00:00
Bruce (SqlWork.com) 56,021 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
296 questions
asked 2024-04-26T18:27:26.8766667+00:00
Kuler Master 246 Reputation points
2 answers One of the answers was accepted by the question author.

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 60 Reputation points
commented 2024-04-26T18:03:54.27+00:00
Peter Smith 581 Reputation points Microsoft Employee
0 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…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,626 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,247 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
296 questions
asked 2024-04-26T17:41:06.5666667+00:00
David Finkelstein 0 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
asked 2024-04-26T11:48:11.7033333+00:00
Venkat 1 Reputation point
edited a comment 2024-04-26T17:00:27.69+00:00
Venkat 1 Reputation point
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,247 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
296 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
asked 2024-04-19T05:19:21.3666667+00:00
Tan Soon Chek 0 Reputation points
commented 2024-04-26T16:39:41.73+00:00
Bruce (SqlWork.com) 56,021 Reputation points
1 answer

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
asked 2024-04-26T09:26:54.0033333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
edited an answer 2024-04-26T16:32:06.4166667+00:00
Bruce (SqlWork.com) 56,021 Reputation points
3 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
asked 2023-01-24T11:56:16.52+00:00
Faisal suleman 10 Reputation points
commented 2024-04-26T16:10:31.66+00:00
MUSTAFA'YA SELAMLAR 0 Reputation points
1 answer

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
asked 2024-04-23T23:30:13.6466667+00:00
Steve Nicholson 0 Reputation points
commented 2024-04-26T16:02:30.6866667+00:00
Bruce (SqlWork.com) 56,021 Reputation points
1 answer

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…

Internet Information Services
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
asked 2024-04-26T11:19:37.49+00:00
qqtf 0 Reputation points
answered 2024-04-26T15:49:45.9933333+00:00
Bruce (SqlWork.com) 56,021 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2024-04-25T21:44:22.7566667+00:00
iqworks Information Quality Works 196 Reputation points
commented 2024-04-26T15:22:00.5533333+00:00
iqworks Information Quality Works 196 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
asked 2024-04-24T09:55:08.01+00:00
jewel 781 Reputation points
commented 2024-04-26T15:15:19.1733333+00:00
jewel 781 Reputation points
0 answers

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,374 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2024-04-26T14:24:36+00:00
Bhushan 0 Reputation points
1 answer

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2023-05-28T12:40:18.6266667+00:00
Dani_S 2,726 Reputation points
commented 2024-04-26T13:19:21.4+00:00
Anuvind M 0 Reputation points
0 answers

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2024-04-25T16:52:05.36+00:00
Ansh 0 Reputation points
edited a comment 2024-04-26T13:17:56.86+00:00
Ansh 0 Reputation points
0 answers

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2024-04-26T13:17:25.6733333+00:00
Sztárcsevics Gábor 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,605 questions
asked 2024-04-26T00:40:13.3866667+00:00
tim 100 Reputation points
commented 2024-04-26T12:43:27.6233333+00:00
tim 100 Reputation points
0 answers

how to install APP in android in maui?

I will download new version update and install it in my android device.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
asked 2024-04-26T01:06:26.5333333+00:00
mc 3,681 Reputation points
commented 2024-04-26T12:07:32.4933333+00:00
mc 3,681 Reputation points
0 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
asked 2024-04-26T11:33:36.0766667+00:00
Gour, Ashish 0 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
asked 2024-04-20T15:03:25.1633333+00:00
Rob Bertora 0 Reputation points
accepted 2024-04-26T11:32:50.97+00:00
Rob Bertora 0 Reputation points