24,033 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Xamarin Elements z-index

Hi! I have this code: <?xml version="1.0" encoding="UTF-8" ?> <ContentPage x:Class="Components.TestPage" xmlns="http://xamarin.com/schemas/2014/forms" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-05-30T21:10:21.527+00:00
Eliseo Gamba 21 Reputation points
accepted 2022-06-06T13:20:28.993+00:00
Eliseo Gamba 21 Reputation points
0 answers

Xamarin app that uses camera is saving photos as corrupt

I have this problem, I already changed the photos to all possible formats, but nothing has changed CS: namespace Aluno_Digital { [XamlCompilation(XamlCompilationOptions.Compile)] public partial class CameraPage : ContentPage { …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-06-03T17:32:14.857+00:00
Davi Moura 1 Reputation point
commented 2022-06-06T12:23:15.167+00:00
Davi Moura 1 Reputation point
1 answer One of the answers was accepted by the question author.

CSS files not showing color preview box before color names in VS 2022.

After installing Visual Studio Professional 2022, CSS files are not showing any color preview box before color names, which was earlier available in Visual Studio Professional 2017. Is there any default extension from Microsoft to show color preview box…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 questions
asked 2022-06-03T12:01:46.163+00:00
priyamtheone 21 Reputation points
accepted 2022-06-06T11:28:34.717+00:00
priyamtheone 21 Reputation points
0 answers

OnEntryCompleted, how to close the virtual keyboard in .NET MAUI?

Hello, I am trying to figure out how to automatically close the virtual keyboard when an Entry is completed (A.K.A, the return key is pressed) and I figured .NET MAUI would do this automatically. The documentation out there is sparse. The keyboard will…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
asked 2022-06-04T22:48:25.79+00:00
Samuel 1 Reputation point
commented 2022-06-06T09:50:02.27+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,551 Reputation points Microsoft Vendor
2 answers

Is there a way to view PDF files in Blob Storage without downloading them locally using .net?

Using a Blob URL I can't open a PDF file in chrome. Whenever I used to open the PDF file using that blob URL its getting downloaded! Instead for View!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,441 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-05-26T14:38:59.717+00:00
Murugan M 26 Reputation points
commented 2022-06-06T09:44:29.193+00:00
SaiKishor-MSFT 17,201 Reputation points
2 answers

window.close() not working in Edge browser from ASP.NET web application

Hi Expert, We use ClientScript.RegidterStartupScript to open new window using window.open on button click and at the same time we use window.close to close the page once processing is completed. Page.ClientScript.RegidterStartupScript(Page.Type(),…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,150 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
asked 2022-06-05T03:21:22.097+00:00
Bipin kumar 1 Reputation point
answered 2022-06-06T09:28:37.483+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to insert word file into database

I have this code that display word file in html after uploading; but I tried to insert the file into database as byte and got an error as shown below This is the code I used. please forum, how can I achieve this task? I just want to insert the word…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 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.
10,292 questions
asked 2022-06-04T15:42:39.693+00:00
Donald Symmons 2,856 Reputation points
accepted 2022-06-06T09:16:29.233+00:00
Donald Symmons 2,856 Reputation points
1 answer

Power Shell or .Net library to check if HTTPS is setup for a domain

I am building ASP.NET core MVC web application which allow users to enter a domain name and click submit >> then the application should check if HTTPS is setup for a domain >> update the backend accordingly. So my question is; If there is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,383 questions
asked 2022-05-29T01:30:44.693+00:00
john john 946 Reputation points
answered 2022-06-06T07:51:56.2+00:00
Limitless Technology 39,381 Reputation points
1 answer One of the answers was accepted by the question author.

Problems with Notepad when calling from VB.net

The problem has occurred after switching to Windows 11 from 10. It is probably a bug that MS can fix but, in that case, I do not know which way the error should be reported. I therefore first turn to the forum in the hope that someone here is aware of…

Universal Windows Platform (UWP)
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
asked 2022-06-05T09:05:00.537+00:00
Janne Lindh 46 Reputation points
accepted 2022-06-06T07:31:20.61+00:00
Janne Lindh 46 Reputation points
2 answers One of the answers was accepted by the question author.

How to add css file in razor componet by using Razor Class Library ?

Hi, I am developing a Widget by using Razor Page and Razor Component through Razor Class Library. I tried to add the CSS as it is described in following URL …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-06-02T10:04:52.283+00:00
mehmood tekfirst 771 Reputation points
accepted 2022-06-06T07:14:46.52+00:00
mehmood tekfirst 771 Reputation points
0 answers

80 port of apache not working on Azure VM

Apache is not accessible on Ubuntu based Azure VM on 80 port despite allowing it in NSG: It is allowed in Ubuntu too: Hitting the public IP keeps loading the page and it times out after some time.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,174 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.
150 questions
asked 2022-05-22T22:28:00.54+00:00
Dev 1 Reputation point
commented 2022-06-06T07:02:50.35+00:00
vipullag-MSFT 24,216 Reputation points Microsoft Employee
0 answers

The function of storing the photo captured by the camera is not working, it is not saving to the cache, what can I do?

xaml: <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-06-01T17:38:37.78+00:00
Davi Moura 1 Reputation point
commented 2022-06-06T06:10:18.397+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,661 Reputation points Microsoft Vendor
0 answers

How to fix "GetAuthenticationStateAsync was called before SetAuthenticationState" in Blazor MAUI project ?

I already have a Blazor Server application with authentication type "individual accounts". Everything is working. Now i want to try out MAUI, so i created a razor class library in the solution and moved all logic from BlazorServer to the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 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.
1,400 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
asked 2022-06-05T21:34:52.537+00:00
Boot Dat 1 Reputation point
commented 2022-06-06T05:55:51.417+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
1 answer

Do Tasks work in MacOS?

I have a Blazor app that uses a backgroundservice to pull items from a concurrent queue. Under Windows, the service runs properly without blocking the UI thread. Same program, running in MacOS blocks the UI thread. Do tasks not work on MacOS? …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,400 questions
asked 2022-06-05T05:51:04.357+00:00
Andrew Broughton 96 Reputation points
commented 2022-06-06T05:46:11.983+00:00
Zhi Lv - MSFT 32,016 Reputation points Microsoft Vendor
1 answer

File not showing from database

On redirecting to page, image file is supposed to show from database but instead it show an empty image control. How do I fix this please? <div class="shell" id="card" style="width: 90%; margin: 0 auto; padding:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,402 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 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.
10,292 questions
asked 2022-05-30T14:08:08.297+00:00
Donald Symmons 2,856 Reputation points
answered 2022-06-06T05:27:41.073+00:00
Donald Symmons 2,856 Reputation points
1 answer One of the answers was accepted by the question author.

Configuration Error:

I tried to open my website but got this error Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
asked 2022-05-31T13:47:00.343+00:00
Donald Symmons 2,856 Reputation points
accepted 2022-06-06T05:20:25.213+00:00
Donald Symmons 2,856 Reputation points
1 answer

If I l only want to develop android in c# what I need to use?

If I only want to develop android in c# or .net. user xamarin.android or xamarin.forms or .net maui?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,911 questions
asked 2022-06-06T00:45:57.427+00:00
mc 3,701 Reputation points
commented 2022-06-06T03:43:20.9+00:00
mc 3,701 Reputation points
1 answer One of the answers was accepted by the question author.

ASP.NET Core MVC: _ViewStart.cshtml

Hello, In my ASP.NET Core Project, _Layout file I make into 2 files _Layout.cshtml _LayoutDashboard.cshtml It is made this way so Controller Name: Home. Default Page which is a Home Page it will read _Layout.cshtml. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
asked 2022-06-04T21:16:39.197+00:00
Jerry Lipan 916 Reputation points
accepted 2022-06-06T03:38:09.02+00:00
Jerry Lipan 916 Reputation points
1 answer

prevent "Object reference not set to an instance of an object. " when query returns no results

I have the following method of my Applicant class that runs a query and returns a string. public string GetPhoneFromSmsLog(string UserID) { using (SqlConnection oConn = new…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,282 questions
asked 2022-06-02T16:13:36.373+00:00
M J 661 Reputation points
commented 2022-06-06T02:58:42.967+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer

Testing OpenGl Graphics on Android Emulator/Device

Hi, This seems impossible. adb shell dumpsys gfxinfo Only collects around 2 frames. The Android Device Monitor's systrace appears to collect frame data, but always shows no janky frames, which is obviously incorrect given the jerky movement on…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-05-23T09:28:47.17+00:00
Andrew Azz 171 Reputation points
commented 2022-06-06T02:28:50.817+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,966 Reputation points Microsoft Vendor