Content
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?


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…


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…


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…


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…


'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…


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…
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; …
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…


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…


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?


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…


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 =…


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…


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?


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…


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 =…
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"…


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…


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…

