Microsoft Q&A

.NET

14,250 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,250 questions with .NET-related tags

Sort by: Updated
1 answer

Suddenly throwing The name 'nameof' does not exist in the current context

Hi, Why my app suddenly throwing the below error: /Users/jassim/Projects/MyApp/MyApp/Microsoft.Maui.Controls.SourceGen/Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator/Mobile_MemberDetails.xaml.sg.cs(67,67): Error CS0103: The name 'nameof' does not…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 questions
asked 2023-04-07T11:17:36+00:00
Jassim Al Rahma 1,291 Reputation points
commented 2023-04-08T04:18:20.87+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,786 Reputation points Microsoft Vendor
4 answers

Why can't I use reference a TableAdaptor that I've created.

I am trying to write a simple ASP.NET application to send out a newsletter, using data from a SQL Server database. To access the database I created a tableadaptor in object Group.xss. This .xss (data designer) window looks as I would expect. I have…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
9,256 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,352 questions
asked 2023-04-07T05:16:18.8533333+00:00
Robert Barnes 66 Reputation points
commented 2023-04-08T03:11:37.73+00:00
jlinsey628 0 Reputation points
0 answers

How to debug Xamarin app on my phone

I used to be able to do this but now my debugging choices are Pixel 5 Pie. I can no longer debug on my device. Why?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,946 questions
asked 2023-04-06T18:07:20.7233333+00:00
Ronald GANS 136 Reputation points
edited a comment 2023-04-08T03:04:28.42+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,786 Reputation points Microsoft Vendor
1 answer

.NET MAUI Chips

Hi, How can i have chips or tags for my app? I tried below using ChatGPT but it does not work. <?xml version="1.0" encoding="utf-8"?> <NavigationView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 questions
asked 2023-04-07T10:49:34.39+00:00
Jassim Al Rahma 1,291 Reputation points
answered 2023-04-08T02:54:49.9+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,786 Reputation points Microsoft Vendor
1 answer

Upload file to users onedrive under same domain

we want to develop a web app from which we can upload files to student's one driver under our Azure domain ( Iwht out student credentials). for this we need a list of all students, then we upload particular files to each student depending upon their…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
201 questions
Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
831 questions
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
660 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,580 questions
asked 2023-03-31T22:53:44.2466667+00:00
Rehmuk 0 Reputation points
edited the question 2023-04-08T01:51:33.33+00:00
Sumarigo-MSFT 32,796 Reputation points Microsoft Employee
0 answers

Why is Microsoft.CSharp.dll not signed using VS Mac?

If building a solution targeting an iPhone directly on a Mac or remotely via the Mac from a PC, the following errors are encountered. However, building the same code directly to the iPhone, it succeeds. Both VS's are latest versions with latest updates.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 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,680 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,860 questions
asked 2023-03-30T13:48:17.7333333+00:00
Marc George 66 Reputation points
edited a comment 2023-04-08T01:25:13.03+00:00
Marc George 66 Reputation points
0 answers

Use ML.net to recognize patterns (as trained into model with multivariate time series CSV) on a testing CSV (same format as training model)

I have train'g & test'g CSVs with a simple stock market format: DateTime,Open,Close,Up,Down,Mov_Avg, ... ,RecognizablePattern. Using all of the attributes as features and the RecognizablePattern (manually entered "1" for patterns to be…

.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.
113 questions
asked 2023-04-06T15:03:37.1566667+00:00
Swamp Rat 0 Reputation points
commented 2023-04-07T21:51:30.74+00:00
LeelaRajeshSayana-MSFT 1,326 Reputation points
1 answer

How to draw an outline of a region in graphics in .net core?

How to draw an outline around a Region that made by union and intersection between shapes like Rectangle and Ellipse. Note I wanna draw only the outline not fill the entire region with color. public class ShapeVM { public List<Point>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2023-04-05T13:27:00.7366667+00:00
Mariam_S 0 Reputation points
commented 2023-04-07T20:39:22.99+00:00
Mariam_S 0 Reputation points
1 answer

porting xamarin forms renderer to .net mai handlers

Hi, I am working on migrating xamarin forms projcect to .net maui. i have followed below steps to migrate xamarin forms project changed forms, ios, droid csproj to .net SDK style. replaced xamarin.forms namespaces to .net maui Did all the steps…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 questions
asked 2023-04-03T11:00:02.22+00:00
Shirisha Siddamshetti 0 Reputation points
commented 2023-04-07T20:32:55.0266667+00:00
David Ortinau 1 Reputation point Microsoft Employee
0 answers

ICollection Errors Re: Navigation Properties

Environment: Net Core 6, Visual Studio Community 2022 (64 bit), WIndows 11 ======== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ======== Browser Error: InvalidOperationException: The property 'Course.Enrollments' is of an interface type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,879 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
748 questions
asked 2023-04-07T20:31:23.1+00:00
Dean Everhart 946 Reputation points
1 answer

Converting from Android.Media.Image to Android.Graphics.Bitmap

I am creating an ImageAnalysis.IAnalyzer and implementing the Analyze method. On Android's documentation…

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,680 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,946 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2023-04-04T22:44:33.88+00:00
Nathan Sokalski 4,056 Reputation points
commented 2023-04-07T20:00:12.2366667+00:00
Nathan Sokalski 4,056 Reputation points
1 answer One of the answers was accepted by the question author.

defining two different databases in startup.cs/appsettings.json file that resides on different servers

I have two separate databases- Database1 and database2. Database1 is on a seperate server and databse2 is on a different server. I need to insert the data from database1 to Datbase2 in my C# coding. This is how my startup file looks like : public void…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,879 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,680 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
748 questions
asked 2023-04-06T22:17:09.19+00:00
Anjali Agarwal 701 Reputation points
accepted 2023-04-07T18:54:44.3266667+00:00
Anjali Agarwal 701 Reputation points
0 answers

When building my MAUI app for Android i get MSB3073 error

Hi, when i try to build my MAUI application for .net7-android i get the following warning: Description MSB3073: The command ""C:\Program Files (x86)\Android\android-sdk\platform-tools\adb" -s ZY22BL2K84 uninstall -k…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2023-04-07T18:51:56.0166667+00:00
DavidR 0 Reputation points
1 answer

NuGet Package restore failed...The underlying connection was closed.., error in VisualStudio ultimate 2012

Hi, Below is machine and VS details: Windows 7 Visual studio Ultimate 2012 Version 11.0.61219.00 Update 5 Microsoft .NET framework version 4.5.50709 Project: MVC 4 project - C# Everything was working fine till today; But my…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
748 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2022-10-01T17:10:31.447+00:00
bharat 1 Reputation point
commented 2023-04-07T18:34:12.6733333+00:00
Juan José Meléndez 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to convert Aspx pages to Razor Pages and also how to convert .Net framework 4.8 to Dot Net Core.

I am trying to migrate .aspx pages to Razor pages from .Net Framework 4.8 to Dot Net. Is any tool available to convert those pages. I had lot of user control and Web Forms, so please let me give some suggestions how to target the applications in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,879 questions
asked 2023-03-31T10:08:16.4466667+00:00
Suraj Kiran 0 Reputation points
edited an answer 2023-04-07T17:03:44.24+00:00
Bruce (SqlWork.com) 32,201 Reputation points
0 answers

How to connect LD Player with .NET MAUI for Android Development?

I can't connect LD Player to Visual Studio. I didn't have this problem in Xamarin Forms and I was simply connecting. I can't use Android Device Manager because I can't download the required files, maybe it's because of the sanctions imposed on my…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,144 questions
asked 2023-04-07T16:14:22.3433333+00:00
Adel Bakhshi 0 Reputation points
1 answer

Using Kestrel with .NET 7: Why can't I access ASP.NET Core app from another computer on the same network without IIS.

Greetings everyone! Using .NET 7, I created a simple ASP NET CORE app. I am attempting to use only Kestrel without IIS to run this app. in appsettings.json: { "Kestrel": { "Endpoints": { "Http": { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,879 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2023-04-07T07:30:16.38+00:00
Orion-8602 0 Reputation points
edited an answer 2023-04-07T15:10:28.58+00:00
Bruce (SqlWork.com) 32,201 Reputation points
1 answer

Visual Studio Community edition vs .NET 7.0

Hi All I installed the .NET 7.0 SDK. and Runtime. I Checked id with dotnet --info, I saw what I expected. I installed VS Community version, began to create a new console application for multi platform, but I just saw the .NET version 6.0 in the drop down…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
941 questions
asked 2023-04-07T12:43:57.8333333+00:00
László Kővári 0 Reputation points
answered 2023-04-07T14:48:32.02+00:00
László Kővári 0 Reputation points
1 answer

How do I migrate a V1 Azure Function App on .NET Framework 4.8 that uses Entity Framework 6 to the Azure Function V4 Isolated Runtime?

I'm working on updating a function app running in .NET Framework from the V1 to the V4 isolated runtime. My issue is that it uses a Code First Database model with Entity Framework 6. The Function App project makes data queries though code libraries in…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
233 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,827 questions
asked 2023-04-03T22:41:34.3633333+00:00
JaromLybbert-8850 0 Reputation points
edited an answer 2023-04-07T14:27:20.88+00:00
MuthuKumaranMurugaachari-MSFT 8,981 Reputation points