Microsoft Q&A

.NET

12,966 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,966 questions with .NET-related tags

Sort by: Updated
0 answers

Server Error in '/' Application Error

Failed Http Request Trace web.config Web config Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
Internet Information Services
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
218 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
597 questions
asked 2023-02-02T08:30:56.1066667+00:00
Taha Sözgen 0 Reputation points
edited the question 2023-02-02T10:11:40.9266667+00:00
XuDong Peng-MSFT 4,576 Reputation points Microsoft Employee
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-02T09:57:57.59+00:00
QiYou-MSFT 851 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,554 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.
597 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,554 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,554 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
0 answers

How to format razor pages in blazor in visual studio 2022

Hi, we are having problems with formatting after upgrade to visual studio 2022. In visual studio 2019 we could format our razor files pretty well, in visual studio it looks really bad. We cannot use 2019 anymore because of the .net 7.

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-02T09:09:50.9866667+00:00
Ante Gavranovic 0 Reputation points
1 answer

Image TapGestureRecognizer not working inside CollectionView .NET MAUI

i'm using MVVM pattern, i want to handle when user click on X icon, i'm using TapGestureRecognizer, but it isn't fired Does anyone has a solution for this? many thanks [RelayCommand] public void CloseBreadcrumbTapped(BreadCrumbViewModel selectedItem) { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-12T08:50:47.2133333+00:00
Nam Pham 1 Reputation point
commented 2023-02-02T09:08:46.5133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

3221226107 (0xc000027b) API REST

Hello, I am a novice programmer. Does anyone know how to solve the problem with 3221226107 (0xc000027b). Well, after replacing the code in TodoListPage.xaml.cs from public partial class TodoListPage : ContentPage { public TodoListPage() { …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 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
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,964 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
asked 2023-01-13T13:49:02.3233333+00:00
Krzysztof 0 Reputation points
commented 2023-02-02T09:07:40.4033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

adding custom font in .net maui does nothing on android

Also my font is not showing on my label, that is 100% not a chewy font, however its in there like it is supposed to: public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 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-01-16T02:27:26.56+00:00
Kai Winters 0 Reputation points
commented 2023-02-02T09:06:47.7+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

Loop through Controls in ScrollView and Get the Data

Hi, In below XAML: <ScrollView x:Name="ScrollViewDetails" Grid.Row="1"> <VerticalStackLayout> <VerticalStackLayout x:Name="StackLayoutPhones"> <BindableLayout.ItemTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-01-20T21:11:41.77+00:00
Jassim Al Rahma 1,086 Reputation points
commented 2023-02-02T09:03:22.0166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

.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-27T15:01:59.6933333+00:00
Ronald Rex 531 Reputation points
commented 2023-02-02T09:00:12.73+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
0 answers

How to protect .apk file generated from Visual studio from tampering ?

We have developed the app using Xamarin Android native. While decompiling the apk we can see the manifest file is accessible and able to add debug options.How to protect it ?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 questions
asked 2023-02-02T08:51:13.74+00:00
V, Kavyasri 21 Reputation points
0 answers

How do you clear all cookies before loading a site using WebView on Windows

I'm working on a .NET MAUI Application targeting .NET 6 and have a hard time clearing the cookies before using a WebView to load a site on Windows. How do you interface with underlying cookie manager in this scenario?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
899 questions
asked 2023-02-01T11:22:28.9333333+00:00
Oliver Weichhold 0 Reputation points
commented 2023-02-02T08:51:07.7766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 15,741 Reputation points Microsoft Employee
1 answer

Which of the two is the better way to use Xamarin?

Which of the two is the better way to use Xamarin? #.1 <Grid Grid.Row="0" Grid.Column="0" BackgroundColor="Yellow"> <Label Text="팔레트번호" HorizontalOptions="End" VerticalOptions="Center"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 questions
asked 2023-01-16T08:08:49.1933333+00:00
현명 지 1 Reputation point
commented 2023-02-02T08:49:00.3766667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
1 answer

Xamarin pushnotification OnMeasageRecieved event is not triggering in background and killed mode.

I have a Xamarin application and want to navigate to different pages when the user taps on the push notification Using azure notification hubs to sent notification.But in android this is not working while the app is in background and on killed mode.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 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-22T14:45:20.0166667+00:00
Swathi J 1 Reputation point
commented 2023-02-02T08:48:19.27+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
1 answer

What is the MAUI equivalent of .NET Core's `_Layout.cshtml`?

You see, there's this image which needs to show up on every page of my MAUI app, and if it were a .NET Core app, I'd simply add it in _Layout.cshtml. However, with MAUI, I don't see a way of doing that easily. How would I go about this?

.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-01-29T15:01:10.3966667+00:00
Uchchay Dugal 21 Reputation points
commented 2023-02-02T08:46:33.39+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 11,216 Reputation points Microsoft Employee
0 answers

xamarin android emulator android > 9 ? how to make ?

Hello all, I have vs 2022 entreprise installed on my computer all works fine with emulator below android 9 .. i can push my app , debug ans so on .. I've try to make an android 10 / 11 and so on but impossible to start it ,, Of course i have the sdk who…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,811 questions
asked 2023-01-26T09:28:50.3866667+00:00
cristopheB 476 Reputation points
commented 2023-02-02T08:45:20.4133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,496 Reputation points Microsoft Employee
1 answer

ISS RDP Site still showing insecure after cert issued

I have gone and got a certificate for *.contoso.com and [contoso.com] . I have installed it against the default website on windows server IIS. I am now browsing (using the same server) to https://dc1.internal.contoso.com/RDWeb/Pages/en-US/login.aspx and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
620 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
3,040 questions
Internet Information Services
asked 2023-01-28T19:18:31.6233333+00:00
Al Grant 1 Reputation point
edited a comment 2023-02-02T08:43:19.9+00:00
Yurong Dai-MSFT 1,041 Reputation points Microsoft Employee