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…
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…
![](https://techprofile.blob.core.windows.net/images/gUY1mv5_AwAAAAAAAAAAAA.png?8D88C9)
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…
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…
![](https://techprofile.blob.core.windows.net/images/vnrgOy3hGEOsstEz2HTwkA.png?8D8BD2)
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 &…
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…
![](https://techprofile.blob.core.windows.net/images/eRqollBhAQAAAAAAAAAAAA.png?8D8BA2)
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…
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…
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. …
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",…
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…
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: …
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…
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)?
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…
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…
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.…
![](https://techprofile.blob.core.windows.net/images/oNyICRtWQ06TbELY4U4oWQ.png?8D88A9)
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…
![](https://techprofile.blob.core.windows.net/images/e5tpOBPL0k6JER1u91LTeQ.png?8D8AD2)
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…
![](https://techprofile.blob.core.windows.net/images/IGm5jP2_AwAAAAAAAAAAAA.png?8D9CB7)
CollectionView Header vs EmptyView bug?
I have an CollectionView with a Header: <CollectionView.Header> <StackLayout Padding="0,5"> <customViews:SectionTitle Title="My Listings" /> </StackLayout> …
![](https://techprofile.blob.core.windows.net/images/WmBD9oL6a0-0MJb9XowEMg.png?8D95C2)
![](https://techprofile.blob.core.windows.net/images/A8Kvf1M9DEi9W4FkwbNmLA.png?8D91FF)