24,532 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How to use asset folder in class

Hello in android app xamarin project I try to use the asset.open method in class A but Asset is not recognized class ClassA { private List<string> listsunrisetlvastro = new List<string>(); private void readfile() …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,313 questions
asked 2024-06-16T18:52:24.7533333+00:00
Shay Wilner 1,726 Reputation points
accepted 2024-06-17T18:19:43.3766667+00:00
Shay Wilner 1,726 Reputation points
1 answer

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext

I have a project using Azure Function with ASP.NET Core 8 and Service Bus, for data access I use EF Core. I'm getting hit a lot and we still haven't found the cause of the error: "A second operation was started on this context instance before a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
711 questions
Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
571 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,498 questions
asked 2024-06-17T17:33:53.32+00:00
Pedro Otávio 0 Reputation points
answered 2024-06-17T18:18:42.7633333+00:00
Michael Taylor 50,026 Reputation points
1 answer

How to publish a WASM app for offline use

I have a Blazor WASM app in VS 2022 Community v 17.10.1 that I am trying to run offline, but am getting several "failed to load resource" and one "failed to register a Service Worker" exceptions as shown below. I followed these…

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,452 questions
asked 2024-06-16T17:06:09.7833333+00:00
Steve Rehling 65 Reputation points
answered 2024-06-17T18:14:33.0133333+00:00
Bruce (SqlWork.com) 59,056 Reputation points
1 answer

HttpClient.Send not supported in mac

Hi, HttpClient.Send(request. HttpCompletionOption.ResponseHeaderRead) => not supported in mac why? it work on windows.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-06-17T12:39:02.6033333+00:00
Dani_S 3,086 Reputation points
answered 2024-06-17T17:53:53.0733333+00:00
Bruce (SqlWork.com) 59,056 Reputation points
1 answer

How to Run Asp.net website project as a web Application Project

Hello, I have just assumed a duty to take over development of a asp.net project. It happened that the project is a asp.net website project, and I discovered the the former developer did not create App_code folder, when I brought the solution to my VS…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,365 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,079 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,486 questions
asked 2024-06-17T13:06:17.44+00:00
Emeka Okoye 66 Reputation points
answered 2024-06-17T17:11:51.9233333+00:00
Bruce (SqlWork.com) 59,056 Reputation points
1 answer

How to Troubleshoot 404 error when trying to access api functions in deployed web app. Cannot navigate App service directory for API functions

So for over a month i have been trying to solve the same issue with my azure app service, i deployed it using several different methods to attempt to get different results. this includes the built in azure publish for windows, zip deploy using ftp,…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,547 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
912 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.
312 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
811 questions
asked 2024-06-17T14:08:34.9866667+00:00
anthony harmon 0 Reputation points
commented 2024-06-17T16:58:40.68+00:00
anthony harmon 0 Reputation points
0 answers

asp.net core web application not showing in visual studio 2022 visual studio 2022

why i con't found ASP.NET Core Web Applcation n visual studio 2022 ? if change title i want know the new title

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,486 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
98 questions
asked 2024-06-17T16:47:40.2066667+00:00
yaser abas 0 Reputation points
1 answer

Upgrading Microsoft.Office.Interop in C# .NET application

We have older versions of Microsoft.Office.Interop (Word, Excel) in our application and we want to upgrade to a more recent version. For Microsoft.Office.Interop.Word, it appears that we have version 11.0.0.0 (runtime version v1.1.4322) when I look at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 questions
asked 2024-06-04T16:10:36.39+00:00
Robottom, John 0 Reputation points
commented 2024-06-17T16:40:34.7566667+00:00
Robottom, John 0 Reputation points
0 answers

Deletion from a datagridview on the second attempt returns null exception if the column is hidden, but works fine if vissible.

my program loads a table from sqlite3 and displays the content in a datagridview form with c#. I am sorting the table entries according to name and some values which gives out of order ID's to display in the datagridview. The program works fine if the ID…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 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,486 questions
asked 2024-06-17T16:30:40.47+00:00
George Panayiotou 0 Reputation points
2 answers One of the answers was accepted by the question author.

My ViewModel Constructor is executed before my property is set. So I am having to put my method ( RefreshData )that I want to execute in the Constructor in the ApplyQueryAttributes method.

My ViewModel Constructor is executed before my property is set Id = myPackage.packageId; . So I am having to put my method ( RefreshData ) that I want to execute in the Constructor in the ApplyQueryAttributes method. Otherwise, My parameter value is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 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,486 questions
asked 2024-06-13T18:18:55.96+00:00
Tom Meier 160 Reputation points
edited a comment 2024-06-17T16:25:50.2666667+00:00
Tom Meier 160 Reputation points
0 answers

MAUI: Plugin.InAppBilling.InAppBillingPurchaseException: Invalid products found when querying product list

I am getting below exception when when I try to pay for a subscription for app store. Plugin.InAppBilling.InAppBillingPurchaseException: Invalid products found when querying product list at…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-06-17T15:01:03.86+00:00
Sreejith Sreenivasan 771 Reputation points
0 answers

MAUI: Partial method 'MyContactsService.GetContactsAsync()' must have an implementation part because it has accessibility modifiers

I am getting below error when try to rebuild the project in release mode. Severity Code Description Project File Line Suppression State Error (active) CS8795 Partial method 'MyContactsService.GetContactsAsync()' must have an implementation part because…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-06-17T14:59:21.16+00:00
Sreejith Sreenivasan 771 Reputation points
0 answers

Connection String to Grant Web App running .NET code access to PostgreSQL Flexible Server via Managed Identity

Hi, I need to deploy a webApp running .NET Code and Azure Database for PostgreSQL flexible server. Our policy is to grant webApps/functionApps access to SQL Server/MySql Server/PostgreSQL Server via Managed Identity. While, I can see connection strings…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
635 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 questions
Azure Database for PostgreSQL
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,168 questions
asked 2024-06-11T13:04:40.8433333+00:00
84017655 1 Reputation point
commented 2024-06-17T14:55:10.6666667+00:00
GeethaThatipatri-MSFT 28,462 Reputation points Microsoft Employee
2 answers

How to block same value section on for each loop in XSLT 1

Hi Team, Currently we have a created xslt map with foreach to block looping using single value(PartNumbers) - , in the below example same partnumber(Consideration value) repeating on both…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,939 questions
asked 2024-06-12T11:27:54.77+00:00
Mahesh Madhusanka 176 Reputation points
answered 2024-06-17T14:38:50.55+00:00
Yitzhak Khabinsky 25,381 Reputation points
1 answer

.NET MAUI - Unhandled Exception located in 'Microsoft.Maui.Platform.MauiWebView'

XAML WebView element definitions: <WebView x:Name="ElectricArcGif" VerticalOptions="Center" HeightRequest="40" /> <WebView x:Name="ClintHatGif" VerticalOptions="Center" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-05-31T21:58:54.9366667+00:00
UnexpectedGrit 11 Reputation points
commented 2024-06-17T14:30:16.39+00:00
UnexpectedGrit 11 Reputation points
1 answer

Good day, i have an ObservableCollection with a list of items from the Sqlite database file in .NET MAUI, the retrieval of items works ,my problem is that the carousel view returns all the items from the list instead of the current selected item,

using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using MyHerbalDiari.DataAccess; using MyHerbalDiari.Models; using System.Collections.ObjectModel; using System.Windows.Input; Good day, when i load my item from the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-06-13T21:12:58.82+00:00
solomon mokoena 0 Reputation points
commented 2024-06-17T14:12:40.9066667+00:00
Michael Taylor 50,026 Reputation points
1 answer

The project file cannot be opened. Version 7.0.410 of the .NET SDK requires at least version 17.4.0 of MSBuild.

Due to some issue my PC got reinstalled the OS. then after i have done the same setup IDE for my work related software's in the same PC. now I'm trying to open my previous application(Azure webjob app) appearing unloaded (files are not appearing) at…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 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,766 questions
asked 2024-06-03T10:36:36.9033333+00:00
Cherry007 20 Reputation points
commented 2024-06-17T14:06:22.2533333+00:00
Cherry007 20 Reputation points
1 answer

How can I find out if my video view is on top of my game view in my Android .NET 7.0 project?

I want to play a video in my Android .NET 7.0 project. I have installed the NuGet package XamarinMediaManager version 1.2.2: https://github.com/Baseflow/XamarinMediaManager But the problem is that I only hear the sound of the video when I debug on my…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,061 questions
asked 2024-06-09T21:02:21.89+00:00
Kim Strasser 686 Reputation points
commented 2024-06-17T14:04:43.51+00:00
Kim Strasser 686 Reputation points
1 answer One of the answers was accepted by the question author.

Create data Context Class in asp.net MVC 5 without using Entity Framework

How do I create a context class dbContext in asp.net MVC 5 without using the Entity Framework?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,365 questions
asked 2024-06-17T05:04:37.0733333+00:00
Malam Malam 166 Reputation points
accepted 2024-06-17T12:39:20.2533333+00:00
Malam Malam 166 Reputation points
2 answers One of the answers was accepted by the question author.

How to run power toy in hidden window?

Dim p = New Process() p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.StartInfo.CreateNoWindow = True p.Start("C:\Program Files\PowerToys\WinUI3Apps\PowerToys.Settings.exe") After running this code, the setup window still appears. Is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,629 questions
asked 2024-06-13T20:26:36.28+00:00
Yen Dang 0 Reputation points
accepted 2024-06-17T11:27:18.9533333+00:00
Yen Dang 0 Reputation points