Content
How to call a code behind method in razor pages ?
Hello I have razor form . When the user cancel , I need to execute the following method. I have tried the following with no success: <a type="button" href='@Url.Action("Myform","CancelButton_Click")'...> and then…


Getting User Details from Azure AD in ASP.NET
In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…
TesserAct implementation help
HI, I would like to make an open source application using Tesseract. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple and working…
WCF Error : Cannot obtain Metadata from WCF service
Hello All, We have a webservice in asp.net wcf (ex.. [http://localhost:56561/ProductOData.svc/]). We are able to add as a service reference in asp.net mvc. However, we are trying to add the same service in asp.net core 6.0 and it is not working. The…
Tesseract implementation problem
HI, I would like to make an open source application using Tesseract. I'm new to app development, but I have an idea that I would like to implement using the phone's camera and OCR. The only problem is that I can't find a recent, simple and working…
async without await
Hi All, I need clarification for my understanding about async below: we don't have to always use await in async if we don't need to await for the result of the process, please CMIIW below codes, will run async without await, it will continues to…


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…


I can't seem to figure out how to resolve "Conversion from type 'DBNull' to type 'Integer' is not valid." error
Greetings again. Please forgive me for being a bother again. As embarrassing as it sounds, I have been working on this pretty all day and can't seem to figure it out. When I try to run the following code: Dim undetected As Integer = 0 Dim…


Azure B2C AD with thousand subdomains
I have MS Azure B2C AD login setup in Blazor Server. The shared URL is https://login.subone.dev.mymaindomain.com. The redirect URL is https://login.subone.dev.mymaindomain.com/signin-oidc. It works perfectly. I have added another site:…


framework with C# example
Hi All A frame work just gives us a basic structure around which we can add our code to have a significant functionality of that system. give me such example in .net Framework so We can add our code using C#


SSL Issues with a Blazor App Running On IIS
I have a Blazor Server applictaion running on IIS using an Origin SSL certificate. We also manage our domains through Cloudflare. Everything was working perfectly for roughly two weeks on a new server, and over a month on an older server. Then we started…
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…
AzureAD Token Authentication not checking Allowed Audiences
I have an App Service deployed in Azure which is an API using AzureAD as the authentication source. When I request an access token, I get the aud claim as the client ID of the app registration of the API. When I attach the token as bearer to an…


How to create environments with appSettings?
In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…


4.6.1 migrating to .Net Core 7 – How do I resolve error MC1000- cannot find type System.Management.Instrumentation.InstrumentedAttribute in Assembly ..path \.nuget\packages\system.management\7.0.0\lib\net6.0\SystemManagement.dll – Microsoft.WinFx.Targets
I am migrating a .netFramework 4.6.1 application to core. I have been able to get rid of all of the build errors except this one: Error MC1000 Unknown build error, 'Could not find type 'System.Management.Instrumentation.InstrumentedAttribute' in…


Spark U/I is not loading for recently "terminated" job clustsers
I've been having trouble with a feature in Azure Databricks. The Spark U/I will not be shown for job clusters that have recently completed ("terminated"). There is a link to the Spark U/I in the databricks portal. But when you click the…


Process.Start does not work anymore
I have a simple code that used to work, but it does not work anymore. Process.Start("Some Website Address"); Also, the code below works: Process.Start(@"C:\Program Files\Google\Chrome\Application\chrome.exe", "Some Website…


Why does Blazor server app takes away memory while being inactive?
We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…
how to fix reportviewer rendering exception when EnablePartialRendering on ScriptManager is set to true
WARNING! There was an error parsing the document In our MVC application we are calling an ASPx page (using an iframe) that contains a reportviewer control, the reports are loading but when I click "Show report" button after I give the…
Upload a file on one drive using microsoft graph api in c# asp.net
Hello, I have one question,I want to upload a file on one drive and it is worked properly in console application but not in web application. Please help me here below is my sample console application…

