Content
Xamarin to MAUI: When setting <UseMaui>true</UseMaui> in csproj, my xaml.cs files are removed
Within the csproj file, when setting the tag <UseMaui>true</UseMaui>, all xaml.cs files that were used with Xamarin are removed. When setting <UseMaui>false</UseMaui> all xaml.cs files are returned. This happens when using the…
All events are executed 2 times.
I have an Aspx project with the latest version of VS and .net 4.8.1 on Windows 11. The problem is that in Global.asax the same events are being executed 2 times starting with Application_Start() Session_Start() index.aspx Session_End() Application_End()…
.net6 project use .net7 compile error no .net7.0-...... targetframeworks
Hi I try any methods, it still compile error delete x86 .net7 sdk delete obj dotnet restore target set net7.0 <TargetFrameworks>net7.0-maccatalyst;net7.0-ios;net7.0-android33.0</TargetFrameworks> <TargetFrameworks…
provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
I get the error message when I try to connect to the SQL Server 2005 Database from VisualStudio 2022 and .Net 6 Project (winform). my project is winform with .net 6 .when i want to connect to remote server that is sql 2005 ,i get error : 26 - Error…
How to generate a test or development build of an windows desktop application using c#
I have modified my Windows application developed using c# to open through a URL now I want to share this build with my client for testing so how to create a test build in the visual studio can anyone suggest me an approach ?? Thanks in advance. …
The connection is closed without waiting for a timeout.
I have installed Windows 11 and use the latest version of VS. When executing the aspx project, as soon as session_start() is finished, session_end() and application_end() are executed and the connection is closed. If I click anywhere on the web,…
.net Maui Publishing Errors
I cannot get Visual Studio to publish my .net maui application correctly. When I look at the WindowsApp.Manifest the information appears to match the information that the partner center is expecting to see, however, when I upload the app to the partner…
Constantly getting "System.InvalidOperationException: No service for type 'Microsoft.AspNetCore.Components.WebAssembly.Authentication.BaseAddressAuthorizationMessageHandler' has been registered." exception in .NET 6 Blazor WASM hosted app.
I've created a hosted Blazor WASM app that uses Azure AD for authentication and authorization. I am able to login to Azure AD successfully. After I login, I try to navigate to a page that has an API call, and get the error described in the stack trace…
Moving Website from .net 4.8 to .net 6 - mod rewrite of redirection of aspx pages to cshtml
Moving Website from .net 4.8 to .net 6 - I have webpages with next to no c# written for .net 4.8 and the webpages end in .aspx I want move to .net 6.0 with Blazor and the webpages will end in cshtml. how do I redirect to the new cshtml pages using a…
ContactItem.Move Interop method on Exchange server triggers hard deletion of contact in Outlook
We have a simple tool built in C# which we use to identify duplicated contacts in Outlook and move them to a subfolder. The tool worked perfectly fine until January 2023, but since then every time we use the tool, the contacts which are moved to the…
How do i protect Web API
Hi I'm taking some training courses on Azure and Web API. I need to protect my Web Api which has been built on Visual Studio 2022 with all the latest versions, updates installed and selected (except i didnt select .Net 7). I saw these…
Radio button and date's problem my ASP.NET
Friends, first of all hello. I'm designing a simple form site. But I'm getting an error. Texts are writing to the database, but the radio button and date does not write the error explodes. I left the whole code for you to review. I need help
What does this mean? How can I fix it?
[InvalidOperationException: Sequence contains no elements] System.Linq.Enumerable.Single(IEnumerable`1 source) +317 Ninject.Web.Mvc.NinjectMvcHttpApplicationPlugin.Start() +78 …
BİR JAVASCRİPT DOSYASI İÇERİSİNDE FARKLI BİR JAVASCRIPT DOSYASINA AİT FONKSİYONU ÇAĞIRMA
Merhaba , Bir javascript dosyası içerisinden farklı bir javascript dosyasına ait fonksiyonu kullanmak istiyorum. Yardımcı olursanız sevinirim.
In my Xamarin app, I have a webview. The website I am running in the webview will send messages to the webview. How do I capture the events
How does my Xamarin app that is consuming a WebView receive messages from the html running in the WebView
how to reduce the size of an image for uploAD
I used to be able to do this * file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions { AllowCropping = false, SaveMetaData =…
Book about Core CLR
Hi Could you please recommend any book for Core CLR ? Something like CLR via C# (Jeffrey Richter), but for actual versions of .net
DIV color problem
Hello I have this html style and body code: .btn{ padding: 10px 20px; -webkit-border-radius:3px; border-radius:3px; width:180px; margin: 5px auto; } <div class="btn"…
about use Lambda expression in Property
Here's using Lambda in Property, public int MyProperty { get => myVar; set => myVar = value; } but if I want multiple statements in seter or getter, hot to do that?or in this case only can…
Local IIS without local admin privileges
Is it possible to run local IIS (on the developer's machine) without being a local admin? when the latest security measures were applied we all lost local admin privileges.