Microsoft Q&A

.NET

12,969 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,969 questions with .NET-related tags

Sort by: Updated
0 answers

Does Visual Studio for Mac 2022 Community Edition support VB and .NET 6+ desktop environment on an M1 Mac?

VB scripting in a legacy Windows .NET 6.2+ desktop environment. Can Visual Studio for Mac 2022 Community Edition support this workload on Mac with M1 (ARM) "Apple silicon" processor?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-02-02T13:46:50.1866667+00:00
Dean Bidgood 0 Reputation points
edited the question 2023-02-02T13:51:18.5566667+00:00
Dean Bidgood 0 Reputation points
0 answers

Unable to find OpenReadstream in image upload functionality in blazor

Hi i am trying to get image url from selected images.The challenge i am facing here is i am not supposed to touch the  OnFilesChanged methode directly.I need to create a seperate class and access the original class items.How i can get image url of each…

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.
6,967 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.
788 questions
asked 2023-02-01T09:40:56.8366667+00:00
RAMAN RAGAVAN 46 Reputation points
commented 2023-02-02T13:45:39.17+00:00
AgaveJoe 17,121 Reputation points
1 answer

Hide\Show group text in ASP.NET

Hi, I want to show & Hide group box according to certain condition: ASP.net: <div id="MyDiv" runat="server" visible="true" style="margin-top: 10px; margin-bottom: 10px;"> <asp:Panel…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,191 questions
asked 2023-02-02T12:08:21.46+00:00
Bill Johnson 1 Reputation point
answered 2023-02-02T13:41:24.45+00:00
Viorel 82,741 Reputation points
2 answers One of the answers was accepted by the question author.

Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design Error 6.0 v 7.0

Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design renders following error message: PM> install-package microsoft.VisualStudio.Web.CodeGeneration.Design Restoring packages for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,555 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 questions
asked 2023-02-01T18:59:18.8533333+00:00
Dean Everhart 381 Reputation points
commented 2023-02-02T13:15:56.79+00:00
Dean Everhart 381 Reputation points
0 answers

Solution: Custom SignalR Endpoints (Hubs) in a Blazor Server Application using Azure B2C When Deployed to Azure

Posting this in case I need it myself... Issue: Using custom SignalR endpoints (for example a /chat hub) with Authentication in a Blazor Server application that uses Azure B2C will not work when deployed. It will work fine on your local machine (using…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
788 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
72 questions
asked 2023-01-15T08:30:23.1666667+00:00
Michael Washington 791 Reputation points Microsoft MVP
commented 2023-02-02T13:14:14.0733333+00:00
jacob threadgould 1 Reputation point
1 answer

'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.)

I want to receive and display push notifications on my iPhone/iPad but I get the following message in Visual Studio for Mac: 'UILocalNotification' is obsoleted on: 'ios' 10.0 and later (Use 'UserNotifications.UNNotificationRequest' instead.) I use .NET…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 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.
6,967 questions
asked 2023-01-30T12:24:14.4933333+00:00
Kim Strasser 361 Reputation points
commented 2023-02-02T13:06:10.27+00:00
Kim Strasser 361 Reputation points
1 answer

getting errors while migrating to MAUI

I have tried migrating existing forms project to MAUI I have used .NET Upgrade Assistant dotnet tool and ran these commands dotnet tool update --global upgrade-assistant upgrade-assistant upgrade <path to sln or csproj> --non-interactive…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-02-01T05:24:37.6933333+00:00
Satya 0 Reputation points
commented 2023-02-02T12:57:21.15+00:00
Satya 0 Reputation points
1 answer

EF Core 6 - Adding records based on a condition

Hi friends, In my Blazor server application, I am inserting BulkPurchaseRequest records into DB as follows. public class BulkPurchaseRequestsRepository : IBulkPurchaseRequestsRepository { private readonly OyunPalasContext _oyunPalasContext; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,555 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.
788 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
asked 2023-02-01T17:33:09.4066667+00:00
Cenk 666 Reputation points
commented 2023-02-02T12:55:30.4066667+00:00
Cenk 666 Reputation points
2 answers

resource mipmap/myicon not found. How to fix this?

I have a VS 2019 Xamarin app. It had previously compiled OK and was distributable. The app's icon is poorly formed so I updated it. But now when I rebuild I get the icon changed in the Manifest to android:icon="@mipmap/myicon" and that…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,812 questions
asked 2021-08-12T14:19:00.83+00:00
Ronald GANS 136 Reputation points
answered 2023-02-02T12:52:23.0066667+00:00
Satya 0 Reputation points
0 answers

How to configure Azure App Service so that the cache-busting rewrite rules in our Web Forms app's web.config work?

In our ASP.NET 4.8 Web Forms app web.config file we have following rewrite rule under the <system.webServer> section in order to cache bust certain CSS and JS files: <rewrite> <rules> <rule…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,321 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.
402 questions
asked 2023-02-01T18:46:02.03+00:00
Jan J. Vopalensky 0 Reputation points
commented 2023-02-02T12:06:59.7366667+00:00
VenkateshDodda-MSFT 6,261 Reputation points Microsoft Employee
1 answer

How to share image along with text (both image and text) on same request using Xamarin essential

I want to share image file along with text in my mobile application. I am using Xamarin essential. but with this either I am able to share image or text. how to share both on a single request?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,812 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.
6,967 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
558 questions
asked 2023-02-01T13:28:35.8566667+00:00
Moon 1 Reputation point
edited a comment 2023-02-02T11:28:38.5333333+00:00
Reza Aghaei 3,331 Reputation points Microsoft MVP
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,812 questions
asked 2023-02-02T11:14:10.31+00:00
Wanderer in der tiefen Nacht 0 Reputation points
0 answers

Send Stream in WCF Callback

Hi All, I wanted to implement a Stream data transfer over wcf callback.Is there any way is to achieve this? My contract is something looks below. Thanks in advance. [ServiceContract(CallbackContract = typeof(IDataTansferCallback), SessionMode =…

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.
6,967 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.
259 questions
asked 2023-02-01T15:52:13.6866667+00:00
la07k-4914 41 Reputation points
commented 2023-02-02T11:08:17.82+00:00
la07k-4914 41 Reputation points
0 answers

Max size of System.IO.MemoryStream

Im trying to fetch a .bak file of 3GB size and upload to my blob storage using the SSH.NET package. I get an System.IO.IOException: stream was too long error! I cant find the max size of handeled streams for the System.IO.MemoryStream anywhere. Do…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,555 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,402 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,599 questions
asked 2023-02-02T10:46:56.6733333+00:00
August Asheim Birkeland 20 Reputation points
edited the question 2023-02-02T10:48:41.9233333+00:00
August Asheim Birkeland 20 Reputation points
0 answers

iOS application getting crashed "Could not set up parent class, due to: Invalid generic instantiation"

In a .Net MAUI project app is getting crashed when I am deploying it on device. below is the exception I am getting Any idea why this is happening always?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-31T09:28:45.81+00:00
Suyash Sadh 0 Reputation points
commented 2023-02-02T10:38:51.27+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,741 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Why is Android is not automatically scroll ViewElement into view when keyboard appear?

In .net-Maui, When I add a ViewElement in a scrollView and the keyboard appear, the keyboard is hidding the ViewElement. If I remove the ScrollView it works fine, but then I can't scroll the content. On Xamarin, Android will automatically scroll the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-02-02T06:53:20.55+00:00
Severin Brinch Jørgensen 0 Reputation points
commented 2023-02-02T09:54:39.4033333+00:00
Severin Brinch Jørgensen 0 Reputation points
0 answers

HTTPStatusCode 404 in production only, why?

Hi, What's wrong with my code below, I have tried it in debug mode and got no 404, but if I run it in production (Linux CentOS 8), it fails with 404 (in my case it always fail on pageNo == 2 (there are actually have 20 pages) List<Task> tasks =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,555 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.
6,967 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
596 questions
asked 2023-02-02T01:50:28.88+00:00
winanjaya 41 Reputation points
edited a comment 2023-02-02T09:50:31.2766667+00:00
Viorel 82,741 Reputation points
1 answer

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,555 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
424 questions
asked 2023-02-02T07:05:02.2466667+00:00
ömercan künye 0 Reputation points
commented 2023-02-02T09:34:24.4166667+00:00
Viorel 82,741 Reputation points
1 answer

Referencing multiple projects with top-level statements

I have two projects A and B. Each project has a single top-level statement Program.cs file. I made the Program class visible from each project by enabling internals: <InternalsVisibleTo Include="MyTargetProject" /> The problem is that…

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.
6,967 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-01-30T16:34:45.33+00:00
Ernest 1 Reputation point
commented 2023-02-02T09:30:24.6366667+00:00
Jack J Jun 19,216 Reputation points Microsoft Employee
1 answer

sslPort in launchsetting.json only works with port 44308 - ASPNETCORE MVC

Below is my launchsettings.json file. When I define sslPort 44308. I am able to browse https://localhost:44308. But if I define any other port let's say "44309". It is not working and browser throwing error stating "This site can't be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,555 questions
asked 2023-02-01T17:45:37.97+00:00
Amit Rawat 526 Reputation points
commented 2023-02-02T09:16:17.74+00:00
Amit Rawat 526 Reputation points