which vs of visual studio supports .net core 3.1 vs
which vs of visual studio supports .net core 3.1 vs
Use Multiple Type in Generic T C#
i have this interface base repo with genric type T public interface IRepositoryBase<T> where T : class { void Add(T obj); } and this interfaces heritance from the IRepositoryBase public interface IClass1Repository :…
A process serving application pool 'xxxx' failed to respond to a ping. The process id was '26636'. Event ID 5010
I am facing this error from sometime. Our application hosts multiple application pools in IIS, but this issue happens only with one/single app pool. All the app pool settings are same across the application pools. Moreover this failed to respond to a…
Web Config use
I have a typical requirement. We have several WCF services using NetHttpBinding. We are developing a new Core Web API for a new project. We plan to use the existing WCF DLLs in new web API that. one of the DLLs is data layer that uses connection…
SQL Server 2017 connection problems with Asp.Net core runtime 6.0.x
We have an application running on Asp.Net Core 3.1.x runtime. Recently the application is moved to Asp.Net Core 6.0.x runtime. After the upgrade, we are facing issue while connecting to SQL Server 2017 database when application is running from…
How return the format of the size file in datatable
Hi, In the class FilePath I've a class public class FilePath { //.. public Int64 Size { get; set; } //.. } This class is based to the View [dbo].[FilePath] in Sql The datatable is returned via…
bootstrap modal form validation with slect2
I am using partialview in modal form. In this form there is a select2 option list which working fine. But when press submit button, required fields as per model are not validating i.e. not showing error. I have used lots option from internet, but…
How to set up server variables for URL Rewrite through Appcmd for site
Hi, I am currently trying to create the rewrite URL for my site using Appcmd.exe. I have managed to create the rules, conditions, patterns as like below. system("C:\WINDOWS\system32\inetsrv\appcmd.exe set config ""Check""…
How can I run javascript codes, css files and javascript files into wkhtmltopdf in asp.net core api project?
I use the Chart.js library to draw charts, but I use the wkhtmltopdf library to convert pdf. But my javascrip codes and css codes are not working. How can I make it work?
<span asp-validation-for can not trigger if html is appended.
If I use jquery.html(""); append html <input type="text" asp-for="MyValue" /> <span asp-validation-for="MyValue" ></span> it can not validate for it.
Convert DateTimeOffset to Date format in aspnet core
Hi, In the class FilePath I've a class public class FilePath { [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy/MM/dd}")] public DateTimeOffset Created { get; set; } } This…
Dependency Conflicts after Upgradation
I've upgraded my Webform application from 4.8 .NET Framework to .NET Core 6.0. Now the main issue is that my system is not reading the .dll which were used in the older version, for e.g System.Web is unavailable in the newer version. Is there any…
How do I connect my .net core mvc application to Elasticsearch and display query result to my view?
I would like to know how I could connect to elasticsearch with .net core mvc (.net 6) utilizing entityframework core, and then get the data to display on my view. NUGET NEST (7.17.2) is installed. I have a BuildingViewModel: public class…
DataAnnotations and Regular Expression not working with encoded characters
[RegularExpression(@"^(\s)|(<.*?>)|(mailto:|http:|https:|ftp:|ftps:|<|\/\/)", ErrorMessageResourceType = typeof(Std), ErrorMessageResourceName = "Validation_WrongFormat")] [Display(Name = "lbl_Comment",…
System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.Int32'.
HI, I received this message : System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.Int32'. In my class I've put : public class FilePath { ... public int Size { get; set; } …
ASPNET CORE 5 - code statut 505 in jquery datatable ?
Hi, I am following up on the post how-i-can-do-raw-query-in-jquery-datatable-to-acce.html Thanks to @AgaveJoe I was able to set up access to the file table. This access allowed me to fill jequery datatable to work server side. In the table…
how i can impliment the generate token class in asp.net mvc?
It means when i can create and generate the token for the forget password method and they always show that this method is not accessible in this context how i can get rid of this error?.
Why my API is returning JSON format on Header "accept: application/xml"?
I'm building an API with OData integration returning response JSON and XML format, but why is my API returning JSON format instead of XML format on the header accept: application/xml This is my Program.cs with Odata and XML formatter. using…
Choosing between desktop and web (intranet) for an internal application
We're developing a document management application for internal users. Users are spread out over 25 offices, each office will have 10-15 users. Users will be required to scan documents (20+ at times), generate and print barcode for each page and print a…
Bearer token authentication is not permitted for non TLS protected endpoints (MS Graph) C#
Hello, I am having trouble pulling a user’s photo from MS Graph. In my app, I have configured ASP.net Core Identity to use Microsoft as an external login / registration choice. Locally, it pulls the picture fine, which leads me to believe it has…