Microsoft Q&A

.NET

13,099 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,099 questions with .NET-related tags

Sort by: Updated
0 answers

Problem with conuming blazor custom element through another webApp!

Hi everyone .. To implement blazor server custom element that consume in a simple webApp, i've follow these steps : Create simple blazor server project with .net 7.0 Register counter as custom element Enable CORS on blazor project Set autostart to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,605 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.
803 questions
asked 2023-02-07T17:37:57.8866667+00:00
Hamed Vaziri 56 Reputation points
commented 2023-02-08T13:57:14.8866667+00:00
Hamed Vaziri 56 Reputation points
1 answer

how to fix reportviewer rendering exception when EnablePartialRendering on ScriptManager is set to true

WARNING! There was an error parsing the document In our MVC application we are calling an ASPx page (using an iframe) that contains a reportviewer control, the reports are loading but when I click "Show report" button after I give the…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
412 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,132 questions
asked 2023-02-06T09:48:38.77+00:00
Gimi 0 Reputation points
commented 2023-02-08T13:41:07.4566667+00:00
Gimi 0 Reputation points
1 answer

Sql select most repeated value

Hi, I have a database called a “reader”, and a table called "dailyreader". The dailyreader has 6 columns and i am looking to create a query to select the most repeated values in all columns and show how many times has been repeated. Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 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.
8,593 questions
asked 2023-02-08T13:31:04.7266667+00:00
M Simo 0 Reputation points
edited an answer 2023-02-08T13:40:46.1966667+00:00
Viorel 83,101 Reputation points
0 answers

IBindingConfigurationElement alternate in net core 6.0

Hi, I am working to consume an existing WCF service using the WEBAPI which is to be built in net core 6.0 I need to use IBindingConfigurationElement Interface, of System.ServiceModel.Configuration, but I am not able to find any alternate of this class in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,605 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
262 questions
asked 2023-02-08T13:34:08.7666667+00:00
Hari 0 Reputation points
0 answers

Wrong Host name of the website in IIS. Domain name with a hyphen doesn't work.

Hello, I want to run an application in IIS Server and it must run on host name like a "my-app", but it doesn't work. When I try to run the app with domain "my-app.com" it works correctly. Locally on the server everything works…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
412 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,265 questions
Internet Information Services
asked 2023-02-08T11:37:06.1266667+00:00
Kornel Mizdalski 0 Reputation points
commented 2023-02-08T12:36:47.4133333+00:00
AgaveJoe 17,316 Reputation points
0 answers

How to program the OnBackButtonPressed Xamarin

Hello I implented the the Mediapicker in my xamarin page, but if I am in the menu for "Picking up Photo" I try to click on Back Button to turn back to the previous Mainpage but it doesnt work because the BackButton is not defined. Please…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-02T11:14:10.31+00:00
Wanderer in der tiefen Nacht 0 Reputation points
commented 2023-02-08T12:27:31.8333333+00:00
Wanderer in der tiefen Nacht 0 Reputation points
1 answer

C# UWP Printing "Keine installierten Komponenten gefunden. (Exception from HRESULT: 0x800F1000)" (No installed components found.)

I want to print in my UWP App. I create a SortedList of RelativePanels which i fill with controls. The PrintPreview appears correct with the first RelativePanel of the SortedList. But when i want to switch to next PrintPage, this means the next…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
Universal Windows Platform (UWP)
asked 2023-02-05T08:30:00.67+00:00
Markus Schertler 41 Reputation points
commented 2023-02-08T12:05:50.0733333+00:00
Markus Schertler 41 Reputation points
2 answers

Upload a file on one drive using microsoft graph api in c# asp.net

Hello, I have one question,I want to upload a file on one drive and it is worked properly in console application but not in web application. Please help me here below is my sample console application…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
412 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,077 questions
asked 2023-02-02T06:06:01.9066667+00:00
Alisha Mulla 0 Reputation points
answered 2023-02-08T11:45:15.1833333+00:00
Alisha Mulla 0 Reputation points
5 answers

How to target .NET Framework 4.0 in VS 2022 on Windows 11?

Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
960 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.
7,028 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,577 questions
asked 2022-09-05T07:41:23.313+00:00
Lee Feng 56 Reputation points
answered 2023-02-08T11:31:42.6366667+00:00
David Goben 0 Reputation points
0 answers

Create a card game robot (AI) using Microsoft Machine Learning

For a card game i'm using Microsoft.ML. A little information about the game: There are always four players involved. In a round of this play, each player plays one card and after playing the last card (fourth one) a rule defines the winner of this round.…

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.
7,028 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
112 questions
asked 2023-02-08T11:26:34.3366667+00:00
Nima Weisi 0 Reputation points
0 answers

String interpolation using $ throws System.NullReferenceException on .Net7

We have in my team just upgraded to .net 7 from 6, but we have run into a issues with string interpolation using $"Text {sample}" We are all developing on Intel Macbook Pro's using both Visual Studio or JetBrains Rider. But since the upgrade…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,605 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-02-02T23:08:22.8133333+00:00
Morten Starck 0 Reputation points
edited a comment 2023-02-08T11:24:09.41+00:00
Viorel 83,101 Reputation points
2 answers

Which image is displayed on my Samsung Android tablet when I start my application? Can I change it?

I get the following screen on my Samsung tablet when I start debugging my Android application: image2.jpeg A short time later my splash image is displayed: image1.jpeg And finally a short time later the bar with the icons at the bottom is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
916 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.
7,028 questions
asked 2023-01-14T11:16:24.1433333+00:00
Kim Strasser 381 Reputation points
commented 2023-02-08T10:58:10.3266667+00:00
Kim Strasser 381 Reputation points
1 answer

is vb.net died?

hello, I'm a vb.net developer, I wanted to know if visual basic is dead or still has support. if it still has support is there a trick to use it with .net maui like you did with xamarin?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
916 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,848 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-02-08T10:42:06.7266667+00:00
giorgio 0 Reputation points
answered 2023-02-08T10:57:34.58+00:00
Subrotho Das 16 Reputation points
1 answer

internet explorer has stopped working

Problem signature: Problem Event Name: APPCRASH Application Name: iexplore.exe Application Version: 8.0.7601.17514 Application Timestamp: 4ce79912 Fault Module Name: MSVCR71.dll Fault Module Version: 7.10.3052.4 Fault Module…

.NET Internet of things
.NET Internet of things
.NET: Microsoft Technologies based on the .NET software framework.Internet of things: A concept that aims to extend the benefits of the regular internet, including constant connectivity, remote control ability, and data sharing, to goods in the physical world.
23 questions
asked 2023-02-08T06:51:13.0366667+00:00
Prashant Trada 0 Reputation points
answered 2023-02-08T10:55:17.8066667+00:00
Rohit Kumar Sinha 236 Reputation points
1 answer One of the answers was accepted by the question author.

How to make my android application to be found in Google search results

Hello all. I have an android application in Google store and I have a link to the application. When I do a search in Google search I don't find my application name in the Google search results. If possible how I can fixing this. Thanks you very much

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
916 questions
asked 2023-02-08T08:30:29.6833333+00:00
Haviv Elbsz 481 Reputation points
accepted 2023-02-08T10:44:32.2733333+00:00
Haviv Elbsz 481 Reputation points
1 answer One of the answers was accepted by the question author.

WCF Error : Cannot obtain Metadata from WCF service

Hello All, We have a webservice in asp.net wcf (ex.. [http://localhost:56561/ProductOData.svc/]). We are able to add as a service reference in asp.net mvc. However, we are trying to add the same service in asp.net core 6.0 and it is not working. The…

Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
262 questions
asked 2023-02-07T14:43:03.54+00:00
SUMAN7910 0 Reputation points
edited a comment 2023-02-08T10:28:43.26+00:00
SUMAN7910 0 Reputation points
0 answers

C# AsyncWaitHandle.WaitOne - Socket

Hello, Why doesn't the connection attempt wait 15 seconds? How can I achieve that the client gets up to 15 seconds for a connection? Socket or TcpClient. Thanks for your help! //Create IP address and port number; System.Net.IPAddress ip =…

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.
7,028 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
644 questions
asked 2023-02-06T18:16:22.42+00:00
Markus Freitag 2,961 Reputation points
commented 2023-02-08T10:14:51.51+00:00
Markus Freitag 2,961 Reputation points
0 answers

How to fix double permission popup in xamarin ios web view

When I am trying to use camera in a web view, there are two permissions that are asked in iOS. One is the popup created from browser and the other is created from the Phone. Are there are any ways to avoid the browser popup for camera permission?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-06T09:19:10.4933333+00:00
Anila Mathew 0 Reputation points
commented 2023-02-08T09:53:44.32+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,821 Reputation points Microsoft Vendor
1 answer

Blazor Server: Cannot access a disposed object.

In a Blazor Server application, I am trying to query the database (via EF) on a timer and load data if there is an update. I am using a new dbcontext object each time so I am confused why it is trying to access something that is disposed of. Error…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
803 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
220 questions
asked 2023-02-06T22:28:21.37+00:00
Charles Perry 0 Reputation points
commented 2023-02-08T09:46:34.8033333+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
1 answer

Why can't run my app after visual studio update?

I have updated Visual Studio 2019 from 16.6.1 version to 16.11.23 version. The update operation was finished successfully. When I want to run my MVC project in Debug mode, nothing happens. No error is displayed, the app is not running. What do I have to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,457 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
960 questions
asked 2023-01-26T12:35:02.9366667+00:00
Ionut Dragomir 21 Reputation points
commented 2023-02-08T09:45:34.6933333+00:00
Tianyu Sun-MSFT 13,096 Reputation points Microsoft Employee