Content
Xamarin Forms: Implement push notification tapping on android platform
I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…
Localisation send email attachment- email not sent
Hi I have written code in mvc to send email. I have localisation for website. When i send an attachment in French .example file name HDFC po 2341. The email is not sent. Getting status as false. Used mailmessage. Need help
Blazor Hybrid MAUI TimePicker Spinner Style
We are using a TimePicker in Blazor Hybrid MAUI like this: <input type="time" id="arrivalTimePickerH" name="arrivalTimePickerHT" style="width:100%;height:40px;border-bottom:1px #bdbdbd solid;"…
C# try/catch not work
I'm using WPF/C# .NET 6.0.9 I have a class class library DLL file that contain a method, I use the method with try/catch but it does not work, then application will crash and exit. try { var result =…
Best practices - working with views, key or no key designation during v3 to v6 upgrade
Hello, I am working with multiple .NET functions that use a mix of tables, views, and stored procedures that are defined via DbSets. After upgrading from EF Core 3 to EF 6, we got a lot of errors on the views and stored procedures because they were not…
I want a database change to be reflected in web forms page without polling the database
Hello I have a web page whose records are based on a database table. If there is a change in the database table I wish to get it reflected on my front end web form in vb.net code behind. I do not want my web page to be refreshed by a user interaction…
DP900 certification exam concern
I am very concern due to electric cut issues I missed my DP900 certification exam which I have schedule. kindly consider my request and give me another chance to complete my exam Exam was schedule on 11 June 2023 thankyou
How to fix - You must install or update .NET to run this application
root@ubuntu:/etc/systemd/system# /usr/bin/dotnet /var/www/MinAPI/WebApi.dll You must install or update .NET to run this application. App: /var/www/MinAPI/WebApi.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '5.0.0' (x64) .NET…
I want add validation with phone and email
If the user wants to register with the same email and phone, I want to get a warning that this email and phone have been registered before. I tried a lot of Ajax code about this, but I was not successful. Can you help? @model…
.net maui change Android and iOS overview icon
In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:
Is it possible to get a reference to a specific instance of a COM component?
I have an application that I interact with using VB.NET code through a COM Interface. This all works fine as long as I only have one instance of the application running. However, if I have 2 instances of the application running there is no way to pick…
How to use Key Vault reference locally in asp.net (framework) application
Key Vault reference works locally for DotNet Core apps (Functions, ASP.NET Core). But can we use Key Vault reference locally in ASP.NET (Framework) applications. E.g. In framework app, we read app setting values as follows: using…
I added a asp.net website project reference to an existing vs 2022 application which reference is any cpu and asp.net website cpu reference is x86 now how should I change asp.net wesite refernce to any cpu in vs 2022
I added a asp.net website project reference to an existing vs 2022 application which reference is any cpu and asp.net website cpu reference is x86 now how should I change asp.net wesite refernce to any cpu in vs 2022. Note: I dont have properties when I…
How to fix 'The repository 'https://packages.microsoft.com/repos/microsoft-ubuntu-22.04-prod jammy Release' does not have a Release file.'
I am trying to publish a .NET 5.0 Web API to an Ubuntu Server with a 22.04 version, and when I want to install the .NET 7.0 since the 5.0 is no longer supported running the below command sudo apt-get update && \ sudo apt-get install -y…
When adding DataSet in ASP.NET Framework 4.7.2 project in Visual Studio 2022 it automatically adds NuGet Package for Microsoft.Data.SQLClient after updating the version from 17.4.3
Whenever we add a new DataSet and Table Adapter in ASP.NET Web Site (Framework 4.7.2) in Visual Studio 2022, it automatically adds NuGet Package for Microsoft.Data.SQLClient. It was not happening in the version 17.4.3 and previous versions of VS2022.…
VB.NET Entity Framework Using multiple databases
I'm trying to setup Entity Framework 6 in my VB.Net desktop application. I can get it working fine using Production database, but, this is a program where you can login to either production or the test database. When I created the model, I set it up to…
Create API Controllers using entity framework error startIndex
Using database provider 'Microsoft.EntityFrameworkCore.SqlServer'! startIndex cannot be larger than length of string. (Parameter 'startIndex') at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0() at…
Databinding Problems
Hello everyone and thanks for the help in advance. I am developing a MVC application that posts a list of a model to a controller. The model: public class tbl_Log_Exams { public int? ID { get; set; } public int? ClientID { get;…
What is the best way in Blazor to initialize a page that hits the DB to initialize itself
Hi all; What I learned in this question is I want to set render-mode="Server" in _Host.cshtml. This way the page is rendered once. But... this is also the slowest way to render the page. If the code in my OnInitializedAsync() is hitting the DB,…
Cookie is not getting updated in IIS hosted ASP.NET MVC app
In our ASP.NET MVC app hosted on IIS, we face an issue where the cookie is not getting overwritten when the user switches culture. However, interestingly, when we debug the app using IIS Express, the cookie works fine. We're curious about the possible…