Content
How to use authentication on a custom login.aspx webform
Please forum, I know I asked lots of questions about this issue, but I need you guys to help me out with my own code here. Recently, I read about authenticating users based on their roles. The webforms used were default webforms with its controls, but I…
Validate object properties
I have objects that I am adding to a list of Interface items. My properties on my objects are strings. I was wondeing how do I make sure that my properties have values? Thanks !!! public class Pizza { public string pizzaSize {get;set;} public…
How to check label size?
Hello. I wanted to make a calculator, but I'm looking for a way to check if the user does not divide by 0. I wanted to do it by checking the sign before, but I don't know how to do it because my code doesn't work. private void btnZero_Click(object…
http/2 support
I don't think the standard HttpClient() can be setup to use the http/2 protocol? I cannot change the version of that to 2. I am using .NET Framework 4.6.2 Can anyone tell me what lib. i need to reference, to be able to communicate via http/2?
How to Invoke a Wpf Windows in a dll Class Library
Hello, I have added a Wpf window to a class library, now the problem is how to call it from a different project.
The 'AndroidSupportedAbis' MSBuild property is no longer supported. What should I change in my Android project?
I get the following warning in Visual Studio for Mac 17.5 Preview (17.5 build 1095) when I debug my Android project on my tablet: /usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.476/targets/Microsoft.Android.Sdk.Tooling.targets(5,5):…
How check data existing or not in c# and data valid json or not
Hi All, I am creating on web API for client using complex Model. Structure of model i am giving below Public Class Organization { public Int Id{get; set;} public string Name {get; set;} public string ?website { get; set; } public …
Ozeki VoIP SDK, Azure Cognitive Speech - Difficile de transférer la voix sur une ligne
Bonjour, J'essaye d'utiliser la sortie de voix azure pour l'injecter dans une conversation téléphonique avec Ozeki. Enregistrement de la ligne -> Ok Réception de l'appel externe -> Ok Génération du TTS -> Ok Connection du stream azure à…
Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
Suddenly our Function Apps start throwing the error "Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'." Are there any changes in Newtonsoft library
How to host two wcf addresses in a Single Port address-One with NetTcpBinding and Other with CutomBinding
Hi All, Two WCF services must be hosted on a single port address with different relative addresses. net.tcp://localhost:8700/Applications/CM and net.tcp://localhost:8700/Applications/StreamingManager. Please refer the below App.config snippet. …
Specify STARTTLS credentials in XML file which is called by a C# program
We have an old program which i believe is built using C# for which i have the source code but i cannot edit the program. The issue is we have moved our email to a new provider who is using STARTTLS for sending emails and our program is now failing to…
Connection Refused Error in NetMaui Application and API
Hello, I have a Net Maui application and its API The application/API works, but when sending many requests to the server, this exception occurs: Connection refused. The API cannot be accessed from the phone browser, but it can be done from the desktop…
Why when generating random strings many of the string are the same/duplicated? [duplicate]
First time i used the Random instance inside the method randStr and it generated many strings the same/duplicated. so now i removed the random variable to the top and make one instance in the constructor. but still i'm getting many strings the…
What is the best way to communicate with the database through Datagrid in C# WPF between DataSet and Entity?
I use C# WPF, I am programming an accounting program with a SQL Server database, in this accounting program, data is inserted, updated, and deleted by the user directly in a data grid, which contains a textbox and Combobox elements. In an issue…
How to find the index of a newly added item in a ListView collection
I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…
Single Code, Single UI web application + apps
I want to create a web application which can be extended by apps too. [single coding, single html ui - reusable as website, ios app, android app - no desktop app] Is .Net MAUI the best tool to create same? What are the design & strategies…
Azure web app giving 502 errors intermittently
I have developed a web app by using .net mvc framework to upload videos directly into blob storage. I have deployed this on my azure web app which previously had plan B1 where I used to get 502 issues. So I looked into "Diagnose and solve…
Why my web app gets very slow to respond in azure portal?
Hi, I'm having problems with my domain because sometimes this app becomes very slow to respond, I've to restart it to fix it. it is happening every day. I checked under the "Diagnose and solve problems >> Availability and Performance"…
UWP CreateOutputReport failed to create report ID
The following code has an error, System. Exception: "The data is invalid. The specified report type is not present. What is the reason? Error statement: var outputReport = hiddevice.CreateOutputReport(0); The handle was opened, but the output…
Get Sharepoint Document FileVersions using C#
Hi: My question is to retrieve document version history including the current version. I used the below, and I am able to get the version history but in that list current version data is not included. instead current version details are loaded…