Microsoft Q&A

.NET

13,090 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,090 questions with .NET-related tags

Sort by: Updated
1 answer

Access to path denied for files in WWWRoot folder

I am trying to access two folders that resides inside wwwRoot. The folders are "BlankPDFFiles" and "FilledPDFFiles". I am trying to get the blank PDF files that resides inside BlankPDFFiles folder and write some data inside the file…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 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,023 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
617 questions
asked 2023-02-07T18:26:06.8566667+00:00
Anjali Agarwal 141 Reputation points
edited a comment 2023-02-07T21:19:27.57+00:00
AgaveJoe 17,311 Reputation points
0 answers

TesserAct implementation help

HI, I would like to make an open source application using Tesseract and xamarin forms. 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…

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
edited the question 2023-02-07T21:14:36.6966667+00:00
DJG 6 Reputation points
1 answer

Loading System.IO.Ports.dll from dynamically loaded class library in .NET6

Using .net6 or .net7, I can't make a dynamically loaded class library (read plugin) load the System.IO.Ports.dll (nuget package). I'm using VS2022, but had the same problem on .net5 and VS2019. I'm only using Windows. I have dropped some demonstration…

.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-07T07:36:49.9533333+00:00
Jan Jørgensen 0 Reputation points
edited a comment 2023-02-07T21:13:50.3766667+00:00
Viorel 83,016 Reputation points
4 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.
803 questions
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 26 Reputation points
edited a comment 2023-02-07T21:02:32+00:00
AgaveJoe 17,311 Reputation points
0 answers

Xamarin.Forms Speakerphone Stop Activating Suddenly on Android 10

I have App that has been working for years on Android 10, 11, 12 to Turn On/Off SpeakerPhone for Inbound and Outbound calls, but now it works sometimes on Inbound calls but never on Outbound calls. Here is a simple BroadcastReciever and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-01-17T22:27:57.81+00:00
Universal Camera 286 Reputation points
commented 2023-02-07T20:53:57.94+00:00
Universal Camera 286 Reputation points
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
answered 2023-02-07T20:44:41.1366667+00:00
Bruce (SqlWork.com) 28,281 Reputation points
2 answers

I can't use class on layered architecture

I'm working on a web.api for library otomation project. I'm using layered architecture on project. a485553e-89a6-4fa9-8dd5-1c40de6d40e2.jpg image is my architecture. I couldn't access User.cs class on DataAccess layer. I defined with "usign"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
428 questions
asked 2023-02-02T07:05:02.2466667+00:00
ömercan künye 0 Reputation points
answered 2023-02-07T20:27:07.7666667+00:00
Bruce (SqlWork.com) 28,281 Reputation points
0 answers

How to fix Window 10's Bluetooth problem

Before like a month or so my computer had been affected by virus, and I got it fixed. But after that day my Bluetooth on and off button in my settings is not there, The Bluetooth option in my Device manager is not there either....any tips on how to fix…

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,023 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.
18 questions
F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
1 question
asked 2023-02-07T20:17:11.0666667+00:00
Sityana Girum 0 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.
803 questions
Internet Information Services
asked 2023-02-07T15:41:55.66+00:00
Biggers 0 Reputation points
commented 2023-02-07T20:11:16.3933333+00:00
MotoX80 23,651 Reputation points
0 answers

Maui create release version of App

Ok I have an app which I would like to create a release version. I change to Release mode. I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
911 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,451 questions
asked 2023-01-07T19:24:12.69+00:00
Lloyd Sheen 781 Reputation points
commented 2023-02-07T19:47:34.4466667+00:00
Lloyd Sheen 781 Reputation points
0 answers

Using my android phone as emulator

Hi How can i used my android phone as emulator ? I develop using xamarin android project under visual studio 2022 Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
asked 2023-02-07T19:36:19.0666667+00:00
Shay Wilner 1,406 Reputation points
0 answers

Explainability with ML.NET

I am using ML.NET to train a model using the FastTree regression trainer. I am trying to implement some kind of "explainability", meaning that when a prediction is made using this model I want to explain why the model made that prediction. In…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 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.
111 questions
asked 2023-02-07T19:33:26.3166667+00:00
Angela 0 Reputation points
1 answer

Unable to resolve service for type in .NET 5 with entity framework scaffolding

Hi I am trying to do a website using .NET 5 with some entity framework 3.1.21. I get this error on my Comments/index page I read an article on the Microsoft docs I'm pretty sure about this error but I can't find it now. can anyone point me in the right…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
428 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,604 questions
asked 2023-02-07T17:13:46.1933333+00:00
DMO 0 Reputation points
answered 2023-02-07T19:32:56.11+00:00
Michael Taylor 38,111 Reputation points
1 answer One of the answers was accepted by the question author.

Bitmap Colors & Editing in CMYK

I have a Xamarin.Android app with an Android.Graphics.Bitmap for which I need to view each pixel's color in CMYK (as opposed to RGB). I also need to be able to rotate & crop the Bitmap. I am not extremely familiar with working with graphics &…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,824 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
640 questions
asked 2023-02-06T01:33:06.46+00:00
Nathan Sokalski 3,996 Reputation points
commented 2023-02-07T19:32:22.7733333+00:00
Nathan Sokalski 3,996 Reputation points
0 answers

Getting errors when android/iOS platform specific service is registered in MAUIProgram.cs

Hi, I am getting these errors when registered platform services in mauiprogram.cs Please see the screenshots for more details Please share if anyone have any idea on how to implement platform specific services in MAUI Thanks in advance

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
911 questions
asked 2023-02-07T07:29:01.8133333+00:00
Satya 0 Reputation points
commented 2023-02-07T19:20:42.6266667+00:00
Rob Caplan - MSFT 4,106 Reputation points Microsoft Employee
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
commented 2023-02-07T18:43:54.76+00:00
Michael Taylor 38,111 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…

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
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,023 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
asked 2023-02-06T17:34:11.35+00:00
Sunny 0 Reputation points
edited a comment 2023-02-07T18:28:47.0966667+00:00
Sunny 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
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,076 questions
asked 2023-02-02T06:06:01.9066667+00:00
Alisha Mulla 0 Reputation points
edited the question 2023-02-07T17:54:14.4366667+00:00
JamesTran-MSFT 26,616 Reputation points Microsoft Employee
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,604 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
1 answer

Azure CDN for App Service

Hi, I am trying to understand Azure CDN offerings and would like something clarifying about the behaviour of it. I have an App Service which hosts my ASP.NET website and it serves a bunch of static content such as images, sound files and bundled…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,212 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,335 questions
Azure Content Delivery Network
asked 2023-02-07T11:05:02.46+00:00
Paul McCaffery 0 Reputation points
answered 2023-02-07T17:26:11.9933333+00:00
Bruce (SqlWork.com) 28,281 Reputation points