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


How to call the server map path filename that generated randomly
This is a C# code for a Web Form page named "upload.aspx" which allows the user to upload a PDF file and store it in the server. The file uploaded must be a PDF file, and all the text boxes must be filled before submission. The file name is…
System.InvalidOperationException: 'Invalid operation. The connection is closed.'
hello All, I am getting this error when calling a small function. I am calling this function twice. Below is my code: public async Task<EmployeeInfo?> GetEmployeeByEmployeeNumber(string employeeId) { List<int> emplyoeeInfoId =…


EF Core 7 not using my compound keys and throws error
Banging my head on this one. I'm trying to upgrade to Entity Framework Core 7. My class has a YearTerm and a CourseId. I can't get EF to use my key annotations or fluent API to identify my keys. I've tried the line below as in the Microsoft documents.…
Edmx codegenerator for legacy project
I have been assigned a task required to use VS 2012 edmx generator. Therefore, I have to get a license for VS 2012 although we bought and use VS 2022. I am looking for a way that I do not have to install VS 2012. But the code won’t generate like VS…


Bitmap Colors & Editing in CMYK
I have a Xamarin.Android app with an Android.Graphics.Bitmap for which I need to view each pixel's color in CMYK (as opposed to RGB). I also need to be able to rotate & crop the Bitmap. I am not extremely familiar with working with graphics &…


add one to one and one to many relationship
Hi So a little weird but im trying to add a one to one and one to many relatioship between two entites lets say i have two entities 1 is branch 2 is AppUser now a branch can have a app user as the branch admin(done through roles not the elephant in the…


Verify User Login credentials via web service
Hello all: I am messing with a web site created with MVC and Individual Accounts for Authorization, so in my DB I have the table AspNetUsers, and in the code the Login method calls: var result = await…


Manage multirepo projects
Hello, I have to manage a multirepo project, i have three repositories (A,B,C) of .net projects and Im using visual studio 2022 latest release, my doubts are: Have I to have only one visual studio solution file? If yes where i have to store it? (in…


Using transparent PNG for game development?
I'm thinking of developing a game using transparent PNGs but I have a couple issues: I can only get things to animate while they are moving. The images cut into each other leaving empty spots.
Maui create release version of App
Ok I have an app which I would like to create a release version. I change to Release mode. I then build, took about 5 times before it worked. The errors mean absolutely nothing to me so I just kept on trying as this seems to be the way VS…


cookie can not read after downgrade from 7.0 to 6.0?
I am using .net 7.0 and after I downgrade to .net 6.0 I can not use HttpContext.User it is not authenticated. in F12 Cookie I can see the Cookie I have set but I can not read it why?


Create client credential for Azure AD's App registration
I created a new ASP.NET Core MVC 6.0 web application >> and i define it to use Azure AD for authentication, as follow:- then i were asked to create owned application, so i created one named "ad" as follow:- and inside my application's…


Inject IHttpClientFactory To Create HttpClient through a class
I'm trying to Use IHttpClientFactory To Create HttpClient (ref: https://www.rahulpnath.com/blog/are-you-using-httpclient-in-the-right-way/). At the end of the page, it says: "The Controller class can now use the WeatherService and call it to get…


.NET error in Event Viewer, "filenotfoundexception" "typeinitializationexception"
I'm at the end of my rope here. Details: Using Microsoft Visual Studio Installer Projects Windows 10 is the target system, x86 is the build target, x64 is the windows machine. I've built and deployed this installer with my projects into this machine…


I found an error in the Roslyn API documentation under the Chinese page
In the blank space below the English page, it appears as a duplicate paragraph in the Chinese page I don't know if other pages have similar errors, but I think the person in charge should check it out


Azure Service Bus and big process, misbehave
Hello, we have a one IHosted service and in that we implemented service bus receiver mode. In that we set 5 min Message lock duration, but some time process need more time in that scenario but after 5 min again same message picked and again start the…


How to Change the Default .NET Logo and Splash Screen on an iPhone iOS .NET MAUI
Does anyone know why the app icon and splash screen will not change in debug mode on my Local Device, iPhone 12 Max pro? I do not have an Android phone to test with but the icon and splash screen do change on the emulator. This is how the .csproj is…
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…


Help with Smart App Control issues regarding .NET Runtime Optimization Service and Windows Subsystem for Linux (WSL)
I am having problems with the new Smart App Control feature in Windows 11 Home (windows build 22621). After activating some Windows Features, Smart App started popping up with warnings that the .NET Runtime Optimization Service has been blocked and has…