Microsoft Q&A

.NET

15,308 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,308 questions with .NET-related tags

Sort by: Updated
0 answers

If we delete WitnessClientAdmin.log from the event logs, what activities are deleted?

Hello World, I've seen an event ID of 104 from the system, which states that The WitnessClientAdmin log was cleared. I've looked in other resources but haven't been able to find out more about it, therefore I'm curious as to what other actions or…

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,265 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
9,491 questions
F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
18 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.
48 questions
asked 2023-06-05T12:40:53.01+00:00
AJ7 0 Reputation points
commented 2023-06-05T15:34:19.5066667+00:00
AJ7 0 Reputation points
0 answers

Inserting data in many to many relation ship in EF core

i have two tables 1-Employees (ID ,EmpName) 2- Project (ID,ProjectName) data is already inserted in boh tables ,there is many to many relationship between these two so middle table created in table i.e EmployeesProject now i want to insert data (keys of…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
514 questions
asked 2023-06-05T15:28:34.3533333+00:00
Erum Mirza 1 Reputation point
1 answer

How to bind asp-items to the model in a select element appended by js dynamically?

$("#List").append("<tr>" + "<td> <select name='dm' asp-items='"+Model.dmdata+"'>" + "</select></td>" …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 questions
asked 2023-06-04T01:20:40.3366667+00:00
Alick Wang 141 Reputation points
edited an answer 2023-06-05T15:27:13.0966667+00:00
Bruce (SqlWork.com) 36,181 Reputation points
1 answer

Possible Handle Leak on Azure App Service App

We have an ASP.NET 4.8 application hosted in Azure App Service. At times we see a spike in latency in usually a single instance which also shows spikes in CPU time, TCP connections, Thread Count and Handle count. The average thread count and and average…

Azure ISV (Independent Software Vendors) and Startups
Azure ISV (Independent Software Vendors) and Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.ISV (Independent Software Vendors) and Startups: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
87 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,485 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,943 questions
asked 2023-01-23T04:59:13.44+00:00
Krishnadas K P_FT 5 Reputation points
commented 2023-06-05T15:17:55.63+00:00
Banken, Joe 0 Reputation points
1 answer

How do I make a VB webhook listener?

To receive notifications from a service, I want to utilise Visual Basic to build a webhook listener. The service is not listed under Microsoft in Nuget.AspNet.WebHooks.Receivers.*. An SSL certificate from a recognised root authority is necessary for the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,094 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,485 questions
asked 2023-06-03T17:15:02.5466667+00:00
charli puth 0 Reputation points
edited an answer 2023-06-05T15:13:09.72+00:00
Bruce (SqlWork.com) 36,181 Reputation points
0 answers

Blazor refresh route 404 error when moved _Host

I have a new Blazor Server project, I set up some new pages and placed them in an Areas/ subfolder. I move _Host to Areas/General/Pages as well and so have to specify this in Program.cs via: app.MapFallbackToPage("General",…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
980 questions
asked 2023-06-05T15:03:25.41+00:00
James Dearnley 0 Reputation points
0 answers

Why is Select().Contains() ok while Any() is not?

Hi all; I first tried the following code: var statesIndirectDelete = await States .Where(s => deletedCountries.Any(c => c.Id == s.CountryId)) .ToListAsync(); and that gave me the error: System.InvalidOperationException The LINQ expression…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
514 questions
asked 2023-06-05T03:30:01.6166667+00:00
David Thielen 966 Reputation points
commented 2023-06-05T14:33:17.7066667+00:00
David Thielen 966 Reputation points
0 answers

Would it be possible to add this to ASP.NET?

Hi, I use a .NET application at work that allows to do the following in sequence, select a group of files via a file picker with a small preview pane. https://www.dropbox.com/s/w5aq6t8yeffvcfp/Screenshot%202023-06-05%20081505.png?dl=0 Once…

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.
554 questions
asked 2023-06-05T12:28:14.3233333+00:00
Cleason Martin 0 Reputation points
commented 2023-06-05T14:30:20.82+00:00
AgaveJoe 22,706 Reputation points
0 answers

Problems with VS 2015 project

Hello, I have an asp.net 4.5 project with visual basic 2015, in this project a group of 3 programmers work, we use the TFS with source code control, at the beginning I could load the project, debug without problems, for some time both processes take…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,485 questions
asked 2023-06-05T14:02:47.48+00:00
Alfredo Sanchez 0 Reputation points
2 answers One of the answers was accepted by the question author.

Need help to understanding the code

Hi, This is part of a tutorial for OpenAI development: https://www.c-sharpcorner.com/article/building-ai-chatbot-app-with-chatgpt-api-and-blazor-a-step-by-step-guide/ Can you please help me to understand this part of the code: Content = new…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 questions
asked 2023-06-04T09:28:54.0266667+00:00
Saeed Pooladzadeh 161 Reputation points
accepted 2023-06-05T13:54:01.7133333+00:00
Saeed Pooladzadeh 161 Reputation points
0 answers

Can I remove the Trusted installer from Inetpub\wwwroot folder

For server hardening, our admin team wants to remove users and trusted installer from inetpub\wwwroot folder. Is that ok?

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
425 questions
Internet Information Services
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,275 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,339 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 questions
asked 2023-06-05T13:44:02.46+00:00
Nirmala Mariappan 0 Reputation points
0 answers

Using MS Graph to send email from singe predefined/pre-set mailbox within .net web application

We need our application to send emails via MS Graph using a set single mailbox. I have the following, but this is not working, with the following: 'Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown'. Digging into the details…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,345 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,485 questions
asked 2023-06-05T11:36:52.11+00:00
Julian Cram 0 Reputation points
edited the question 2023-06-05T13:31:49.5966667+00:00
Julian Cram 0 Reputation points
0 answers

Conditional Formatting with formula for expiry dates

Hello, I am trying to conditional format my worksheet to have a formula that highlights the cell 90 days before it is about to expire, all expiry dates in this case would be 3 years or 1095 days from certification. Please and thank you,

F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
18 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.
48 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.
8,202 questions
asked 2023-06-05T12:17:58.7466667+00:00
Vanessa Marrone 20 Reputation points
commented 2023-06-05T13:16:46.7733333+00:00
Osjaetor 165 Reputation points
1 answer

using controls created in c# page forward an aspx page webform

sirs, my problem is about the creation of controls in c# page using forward an aspx page as dynamically controls. the textbox and button controls created had sent to the aspx page and the showing is ok. but the problem is that when i want to used these…

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.
554 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,162 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.
8,202 questions
asked 2023-06-05T11:57:47.7366667+00:00
marc-antoine yonga 61 Reputation points
edited an answer 2023-06-05T13:08:18.7066667+00:00
AgaveJoe 22,706 Reputation points
0 answers

How to Use fonts in .NET MAUI android

Hello, I am new in .NET MAUI, I am having a problem of using fonts when deploying on android devices. The fonts have been registered in the program.cs, however in android device they do not work.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,425 questions
asked 2023-06-05T10:49:32.9066667+00:00
hei karata 0 Reputation points
commented 2023-06-05T12:55:41.3833333+00:00
Lloyd Sheen 1,076 Reputation points
2 answers

Failed to Publish API

api_deploy.txt Hi, WhyI am suddenly not able to publish Web API to Microsoft Azure? I am getting failed as you can see in the attached log. Kindly help.. THanks, Jassim

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,943 questions
asked 2023-05-16T15:45:28.99+00:00
Jassim Al Rahma 1,401 Reputation points
edited the question 2023-06-05T12:53:44.6966667+00:00
Ryan Hill 18,556 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to fix error "No webpage was found for the web address:" when I am opening the url for my app service.

Hi community, I have created one dotnet core web app. Pushed it to repos in azure devops, created a pipeline and deployed it on azure web app services. After creating the release and publishing it on web app, when I am trying to open the URL of web app,…

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,943 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 questions
asked 2023-05-18T08:39:43.7833333+00:00
Rajneesh Yadav 20 Reputation points
edited the question 2023-06-05T12:53:13.64+00:00
Ryan Hill 18,556 Reputation points Microsoft Employee
0 answers

How to fetch system installed fonts ttf on demand based on the XForms platforms

We need to fetch the system installed font files(.ttf) in our app, which are huge in size. How does fetching font file ttf on demand to reduce the initial download size of the app in XForms platforms?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,006 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.
8,202 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,162 questions
asked 2023-06-05T12:51:17.1033333+00:00
Mohana Priya Raja 0 Reputation points
0 answers

No forms appearing in custom template VS 2022 Mac or PC

I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,162 questions
asked 2023-06-02T18:42:29.7566667+00:00
Gregory Lange 0 Reputation points
commented 2023-06-05T12:50:18.1633333+00:00
Gregory Lange 0 Reputation points
1 answer

How to check if the record exist with same value in the database before insert

Hi, In my Blazor Server application, I am inserting a list of data into a database as follows; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,157 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.
980 questions
asked 2023-06-03T11:32:44.3633333+00:00
Cenk 866 Reputation points
commented 2023-06-05T12:45:30.77+00:00
Cenk 866 Reputation points