25,027 questions with .NET-related tags

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

Reuse of cells in collectionview

I have a cell in a collection that has a label that can have one or 2 lines, so the cells can have different height. When I scroll in the collection, and the reuse of cells is done, it gives me a cell with a higher height (2-line label) when the object…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-19T11:31:43.753+00:00
nnovalbos 371 Reputation points
accepted 2021-01-20T10:58:24.917+00:00
nnovalbos 371 Reputation points
1 answer

Resizing and cropping an image on Xamarin

I acquire a byte[] from Xamarin Community Toolkit Cameraview, convert it to stream and send it to my server via webapi: HttpContent fileStreamContent = new StreamContent(stream); and it works and it's milliseconds fast. I want to rotate and crop the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-20T10:02:07.21+00:00
Mattia Durli 1 Reputation point
commented 2021-01-20T10:31:58.73+00:00
Alessandro Caliaro 4,181 Reputation points
1 answer One of the answers was accepted by the question author.

How to stop memory leak when popping pages

I am trying to track down memory leaks in Xamarin forms (Android). To illustrate the issue I have created the the sample project using Visual Studio 2019 and selecting the Flyout template for Android. I have created a class to check for weak references…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-18T14:37:16.17+00:00
sandra 101 Reputation points
accepted 2021-01-20T10:06:01.237+00:00
sandra 101 Reputation points
1 answer

CORS problem with PUT and DELETE

Hi, I am developing an API that needs to use PUT and DELETE Verbs for actions in several controllers. But on each of these CORS is rejecting them despite being set up for any Origins, any Methods, any Headers, etc. My CORS policy is set up near the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2020-12-04T17:27:31.627+00:00
Ian Dudley 1 Reputation point
commented 2021-01-20T10:01:29.14+00:00
armin habibi 1 Reputation point
1 answer

How to preview a local RDLC report on web from reportviewer?

VS 2019 SQL2014 local server VB code I want to use reportviewer to show a RDLC report on web page, but I don't know how to set up. Any example for this? Outstanding.rdlc is main report , Planinfo.rdlc & PLinfo.rdlc &…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
asked 2021-01-18T07:11:18.477+00:00
Kerry Ou 226 Reputation points
commented 2021-01-20T09:57:32.847+00:00
Sean Fang-MSFT 156 Reputation points
0 answers

Models for multiple projects

I'm working on a large multi-project solution and I'm curious what other developers opinions are. The project consists of Website (blazor) API (mvc), libraries, console apps, and mobile apps (future). The API uses its own models for Domain Model…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-01-19T16:47:20.197+00:00
ICodeInTx 56 Reputation points
commented 2021-01-20T09:40:34.897+00:00
Fei Han - MSFT 306 Reputation points Microsoft Vendor
0 answers

Acceso directo a base de datos SQL desde APK de Xamarin

Buenos días, Tengo un aplicación realizada con Xamarin en la cual, desde el dispositivo mobil, accedo directamente a una base de datos SQL server ubicada en un DataCenter. No he desarrollado una API para el acceso a la base de datos, puesto que en este…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,361 questions
asked 2021-01-18T07:28:05.737+00:00
Sergi Mauri Also 1 Reputation point
commented 2021-01-20T08:36:41.897+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
1 answer

Creating a generic template in C#

I have researched that C#, as well as its predecessor, C++, enable users to create generic templates. Here are the two source code snippets below: using System; using System.Collections.Generic; using System.Data.OleDb; using System.IO; namespace…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 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,648 questions
.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,141 questions
asked 2021-01-20T06:12:29.877+00:00
JohnCTX 636 Reputation points
commented 2021-01-20T08:20:54.047+00:00
Daniel Zhang-MSFT 9,621 Reputation points
0 answers

Error adding migrations: Failed to create CoreCLR, HRESULT: 0x80070057

I'm having an issue whereby I get the error message: Failed to create CoreCLR, HRESULT: 0x80070057 when I use any of the entity framework tooling. I have 2 projects in my solution an ASP.NET Core (.NET 5) Web API and a .NET Standard 2.0 Class Library. …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-01-16T04:14:20.537+00:00
SoggyBottomBoy 6 Reputation points
commented 2021-01-20T08:06:46.907+00:00
Rena Ni - MSFT 2,066 Reputation points
0 answers

geolocator doesn't work in ios

i try to listen when the position change ,the app detect it . with android it works well , but in ios it's not working i have followed this: geolocation async Task StartListening() { await DisplayAlert("1",…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-19T14:28:47.357+00:00
bilel miled 21 Reputation points
commented 2021-01-20T07:45:42.453+00:00
JarvanZhang 23,951 Reputation points
0 answers

Example for Zxing pdf417 scanner implementation in MVVM xamarin forms

trying to implement the Zxing scanner for pdf417 in MVVM pattern on xamarin forms. checking for more than 2 days didn't get a sample project. Getting only Zxing.Mobile.net.forms, in that there is not the implementation of MVVM Pattern. anyone, please…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-19T12:21:07.763+00:00
Vinoth Swami 1 Reputation point
commented 2021-01-20T07:06:15.403+00:00
Vinoth Swami 1 Reputation point
1 answer One of the answers was accepted by the question author.

While publishing through visual studio, facing the issue "The virtual machine could not be started because a required feature is not installed."

Hi There, I have created a Azure Virtual machine, windows 10 pro. Installed docker in it. I am trying to publish a code-base for OPC Publisher Edge module to Container registry using Visual studio 2019. The systeminfo shows the following: …

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
561 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,585 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,887 questions
asked 2020-12-10T18:38:23.083+00:00
Vivek Sagar Pandey 386 Reputation points
accepted 2021-01-20T07:04:23.823+00:00
Vivek Sagar Pandey 386 Reputation points
1 answer

ASP.net "The System Cannot Find The File Specified" after web app deployment.

I have been deploying my web app through Azure. I do not get any errors when deploying/building the app. The error occurs when trying to log into an account on the site. I have also created a default pre-built http://asp.net web app that gets created…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 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,648 questions
asked 2021-01-14T19:50:02.597+00:00
Cameron Loomis 1 Reputation point
commented 2021-01-20T06:21:51.583+00:00
XuDong Peng-MSFT 10,341 Reputation points Microsoft Vendor
0 answers

How to navigate back from browser to my app programmatically?

How can I resume my app by clicking a link in a mobile browser (default browser or Chrome, Firefox, Safari)?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-16T12:48:31.777+00:00
eduardk 46 Reputation points
commented 2021-01-20T06:14:01.397+00:00
JarvanZhang 23,951 Reputation points
0 answers

SignalR integration not working in all tabs sometime ??

Hi I have one query related to SignalR, as I have implemented in my application as we have 2000 page in our application so when I am doing any change in one tab it should reflect in other tabs as I have added the code for it, but it is working…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-01-13T07:11:57.803+00:00
Nikita Pandey 146 Reputation points
commented 2021-01-20T05:45:27.203+00:00
Nikita Pandey 146 Reputation points
1 answer One of the answers was accepted by the question author.

How to write a method to generate random/unique string, then how to call the method?

I will create a button and let user to generate a unique string for his/her own record. How should I write the method and how to call it? Thanks. private void buttonInsertString_Click(object sender, EventArgs e) { //When user clicks…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 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,648 questions
asked 2021-01-17T04:39:39.903+00:00
VAer-4038 761 Reputation points
commented 2021-01-20T03:32:27.7+00:00
VAer-4038 761 Reputation points
0 answers

FileInfo seems to respond incorrectly

HelP!!!          Hre are 2-lines of application that I have hard time to understand..         1) FileInfo fileinfo = new FileInfo(Prop.SourceP)         2) if (fileinfo.Exists)                   fileinfo returns false even if the file exists.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-19T23:41:47.037+00:00
Michael yohannes 1 Reputation point
commented 2021-01-20T03:01:42.577+00:00
Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
1 answer

How to get first record(or random record) from table?

This is follow up on the earlier thread: how-to-write-a-method-to-generate-randomunique-str.html Backend database: Access file I decide to make it simple from an earlier thread, so post this new thread. Just use a third party website random.org…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 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,648 questions
asked 2021-01-19T03:14:35.23+00:00
VAer-4038 761 Reputation points
commented 2021-01-20T01:52:26.937+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

Battery automation

Hi Community, I'd like some supoprt to create a automation to save my laptop battery. I'll buy a smart plug and I'd like to controll this smart plug when my battery will almost empty, around 10%, the Windows should turn on the smart plug and when my…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,873 questions
asked 2021-01-19T15:02:14.927+00:00
Alexandre Cesar 1 Reputation point
answered 2021-01-20T01:44:54.68+00:00
Ken Tucker 5,851 Reputation points
0 answers

CollectionView Header vs EmptyView bug?

I have an CollectionView with a Header: <CollectionView.Header> <StackLayout Padding="0,5"> <customViews:SectionTitle Title="My Listings" /> </StackLayout> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
asked 2021-01-19T05:27:01.227+00:00
Stesvis 1,041 Reputation points
commented 2021-01-20T01:34:51.423+00:00
JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor