Microsoft Q&A

.NET

13,085 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,085 questions with .NET-related tags

Sort by: Updated
2 answers

How to call a code behind method in razor pages ?

Hello I have razor form . When the user cancel , I need to execute the following method. I have tried the following with no success: <a type="button" href='@Url.Action("Myform","CancelButton_Click")'...> and then…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,601 questions
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
asked 2023-02-07T14:48:55.5866667+00:00
Butachan 1 Reputation point
answered 2023-02-07T17:05:14.2566667+00:00
Bruce (SqlWork.com) 28,276 Reputation points
5 answers

Getting User Details from Azure AD in ASP.NET

In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…

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
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,769 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,213 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
asked 2023-01-17T14:32:53.06+00:00
Joe Green 141 Reputation points
answered 2023-02-07T17:03:32.2+00:00
Joe Green 141 Reputation points
0 answers

TesserAct implementation help

HI, I would like to make an open source application using Tesseract. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple and working…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-07T16:49:49.37+00:00
DJG 6 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.
261 questions
asked 2023-02-07T14:43:03.54+00:00
SUMAN7910 0 Reputation points
accepted 2023-02-07T16:48:20.68+00:00
SUMAN7910 0 Reputation points
0 answers

Tesseract implementation problem

HI, I would like to make an open source application using Tesseract. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple and working…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-07T16:27:50.04+00:00
DJG 6 Reputation points
2 answers

async without await

Hi All, I need clarification for my understanding about async below: we don't have to always use await in async if we don't need to await for the result of the process, please CMIIW below codes, will run async without await, it will continues to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,601 questions
asked 2023-02-07T12:11:55.0733333+00:00
winanjaya 41 Reputation points
edited an answer 2023-02-07T16:18:16.8533333+00:00
Bruce (SqlWork.com) 28,276 Reputation points
2 answers

Help with Smart App Control issues regarding .NET Runtime Optimization Service and Windows Subsystem for Linux (WSL)

I am having problems with the new Smart App Control feature in Windows 11 Home (windows build 22621). After activating some Windows Features, Smart App started popping up with warnings that the .NET Runtime Optimization Service has been blocked and has…

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,145 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
3,569 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-02-06T14:25:34.6433333+00:00
Tom 0 Reputation points
answered 2023-02-07T16:09:29.26+00:00
Limitless Technology 10,021 Reputation points
1 answer One of the answers was accepted by the question author.

I can't seem to figure out how to resolve "Conversion from type 'DBNull' to type 'Integer' is not valid." error

Greetings again. Please forgive me for being a bother again. As embarrassing as it sounds, I have been working on this pretty all day and can't seem to figure it out. When I try to run the following code: Dim undetected As Integer = 0 Dim…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,843 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,213 questions
asked 2023-02-07T05:47:51.5533333+00:00
Simflex 81 Reputation points
commented 2023-02-07T16:09:20.6366667+00:00
Reza Aghaei 4,081 Reputation points Microsoft MVP
4 answers One of the answers was accepted by the question author.

Azure B2C AD with thousand subdomains

I have MS Azure B2C AD login setup in Blazor Server. The shared URL is https://login.subone.dev.mymaindomain.com. The redirect URL is https://login.subone.dev.mymaindomain.com/signin-oidc. It works perfectly. I have added another site:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
801 questions
Azure Active Directory External Identities
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,769 questions
asked 2023-01-11T17:38:54.09+00:00
Andrey Kuznetsov 40 Reputation points
commented 2023-02-07T16:03:40.82+00:00
Bruce (SqlWork.com) 28,276 Reputation points
1 answer

framework with C# example

Hi All A frame work just gives us a basic structure around which we can add our code to have a significant functionality of that system. give me such example in .net Framework so We can add our code using C#

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
.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
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,213 questions
asked 2023-02-07T06:19:48.5666667+00:00
Siddangoud Bharamagoudar 21 Reputation points
commented 2023-02-07T15:53:06.2933333+00:00
Siddangoud Bharamagoudar 21 Reputation points
0 answers

SSL Issues with a Blazor App Running On IIS

I have a Blazor Server applictaion running on IIS using an Origin SSL certificate. We also manage our domains through Cloudflare. Everything was working perfectly for roughly two weeks on a new server, and over a month on an older server. Then we started…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
801 questions
Internet Information Services
asked 2023-02-07T15:41:55.66+00:00
Biggers 0 Reputation points
1 answer

How to call the server map path filename that generated randomly

This is a C# code for a Web Form page named "upload.aspx" which allows the user to upload a PDF file and store it in the server. The file uploaded must be a PDF file, and all the text boxes must be filled before submission. The file name is…

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,021 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,213 questions
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
asked 2023-02-06T17:34:11.35+00:00
Sunny 0 Reputation points
edited a comment 2023-02-07T15:39:03.28+00:00
Sunny 0 Reputation points
0 answers

AzureAD Token Authentication not checking Allowed Audiences

I have an App Service deployed in Azure which is an API using AzureAD as the authentication source. When I request an access token, I get the aud claim as the client ID of the app registration of the API. When I attach the token as bearer to an…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,769 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,332 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.
154 questions
asked 2023-02-07T15:33:13.76+00:00
Stephen Mallin 1 Reputation point
3 answers

How to create environments with appSettings?

In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,601 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
616 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 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,021 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
485 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
commented 2023-02-07T15:16:47.5766667+00:00
Reza Aghaei 4,081 Reputation points Microsoft MVP
1 answer

4.6.1 migrating to .Net Core 7 – How do I resolve error MC1000- cannot find type System.Management.Instrumentation.InstrumentedAttribute in Assembly ..path \.nuget\packages\system.management\7.0.0\lib\net6.0\SystemManagement.dll – Microsoft.WinFx.Targets

I am migrating a .netFramework 4.6.1 application to core. I have been able to get rid of all of the build errors except this one: Error MC1000 Unknown build error, 'Could not find type 'System.Management.Instrumentation.InstrumentedAttribute' in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
426 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
369 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,330 questions
asked 2022-11-29T01:11:01.337+00:00
Dozier, Fletcher [US] (DS) 1 Reputation point
commented 2023-02-07T14:49:25.6+00:00
Dozier, Fletcher [US] (DS) 1 Reputation point
7 answers

Spark U/I is not loading for recently "terminated" job clustsers

I've been having trouble with a feature in Azure Databricks. The Spark U/I will not be shown for job clusters that have recently completed ("terminated"). There is a link to the Spark U/I in the databricks portal. But when you click the…

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,218 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
asked 2021-04-07T20:49:06.167+00:00
David Beavon 891 Reputation points
answered 2023-02-07T14:27:38.47+00:00
David Beavon 891 Reputation points
2 answers One of the answers was accepted by the question author.

Process.Start does not work anymore

I have a simple code that used to work, but it does not work anymore. Process.Start("Some Website Address"); Also, the code below works: Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe", "Some Website…

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,021 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
asked 2023-02-06T19:26:26.12+00:00
Skysmith 66 Reputation points
commented 2023-02-07T14:14:01.8466667+00:00
Castorix31 66,071 Reputation points
0 answers

Why does Blazor server app takes away memory while being inactive?

We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
801 questions
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 26 Reputation points
commented 2023-02-07T14:01:56.4866667+00:00
AgaveJoe 17,311 Reputation points
0 answers

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,130 questions
asked 2023-02-06T09:48:38.77+00:00
Gimi 0 Reputation points
edited a comment 2023-02-07T13:37:07.2766667+00:00
Gimi 0 Reputation points
1 answer

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
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,769 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
305 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,074 questions
asked 2023-02-02T06:06:01.9066667+00:00
Alisha Mulla 0 Reputation points
answered 2023-02-07T13:25:23.56+00:00
Carlos Solís Salazar 9,986 Reputation points