replacement of System.ServiceModel.Configuration in .NET Core
Hi TeamCan you please share the replacement of the System.ServiceModel.Configuration in .NET Coreany suggestion and help will be highly appreciated on how to proceed further on this.
View Articlehow to implement clientsection in asp.net core 3.1
I tried a lot to implement clientsection but no luckHow to implement clientsection in asp.net core i am migrating asp.net project to .net core 3.1 but wcf is not supported here and clientsection code...
View ArticleASP.NET 3.1 Core : System.FieldAccessException
I am getting exception in my Asp.Net core 3.1 application as belowSystem.FieldAccessException: Cannot set initonly static field 'Field' after type 'TestReadOnly' is...
View ArticleMicrosoft.Data.SqlClient.SqlException (0x80131904): The connection is broken...
Hello,I hope I'm in the right forum ;), if not please kindly just move the post.I'm currently developing an .net core 3.1.2 console app running in a Linux docker container under Azure.It uses a S0 DB...
View Articlehow to Localization and friendly routes in 3.1 MVC
Hi,I create new project asp.core 3.1 mvc with localizationhow can i use routes like /culture/controller/actionlanguage switching works well, but with controller/action/culture=enand also the default...
View ArticleHow to switch to "View"?
Question.1. What HTML page elements to use to follow links to other View? Example. 1.1 - <a> </a> 1.2 - <input type = "submit" name = "name" value = "submit_1" /> 1.3 - <button>...
View ArticleEnterprise Multi layer Web Application in ASP.NET Core
Hi All,I am working on enterprise application where I have separated BusinessEntities(Class Library .Net Core), DataModel(Class Library .Net Core), BusinessServices (Class Library .Net Core) and...
View ArticleUncaught (in promise) Error: Failed to invoke 'XXXXX' due to an error on the...
<div class="post-text" itemprop="text">I created a .net core chat application using SignalR and I used WebRTC for video calls. As I need to send the SDP to the receiver using server method so I...
View ArticleError while publishing project from visual studio 16.5.2
Hello,I recently upgraded to Visual Studio Community 2019 16.5.2. My current solution comprises of several projects and all of them are targeted to .NET Core 3.1When I am trying to publish my...
View ArticleHow to make File Upload a required field
I have a file upload input where I want to make it a required field in my view. How do I do that. I assume you can't do it as an attribute in the view model?View:<div class="form-group...
View ArticleDependency Injection - Static Collection - Unclear of best practice
Hi all, I am new to working with .Net Core so please be gentle if my question is too simple. I have been tasked with rewriting an existing API service that contains 'x' number of predefined 'Jobs'...
View ArticleHelp needed in building
Hello,I would to build the asp.net core solution from command line. for the .net framework, i use the below code which is in .bat file@Echo OFF Echo "Building solution/project file using batch file"...
View Articlelist of values in searching criteria to be used in .net core
var subj = _context.Subjects .Where(s =>SemetserId == ?) .ToList();? is a list of semesterids to compare with. How to use such a searching criteria?
View ArticleIssues with executing CRUD stored proedure using ExecuteSqlRawAsync in entity...
Hi,I am trying to execute a CRUD stored procedure from entity core framework. This is how my code is:int result =await _dbContext.Database.ExecuteSqlRawAsync(@"EXEC myschema.myProc @P1, @P2, @P3, @P4...
View ArticleHow to resize image before upload to varbinary column?
HiI'm uploading an image to a varbinary column in the database successfully. But I want to resize it before uploading.So this is what I tried:Guests model:public byte[] Image { get; set; }public string...
View ArticleHow to access usb device using ASP.NET core
I created a desktop app that control usb device now i want to convert the app to a webapp but the problem is the ASP.net core doesn't detect the usb device i tried many solutions but the same result...
View ArticleChange Connection String whilst App is running
Hi all,I have a requirement to select different databases from a drop down list in an app which would then populate the active database connection string. Is this possible in Asp Core? If so does...
View ArticleHow to pass the model data to Partial View in .NET Core
Hi All,I have partial view in main Index.cshtml, How to pass model to Partial view using ASP.NET core 3.0 mvcMany Thanks,Shabbir
View ArticleCore 3, Hangfire & DI
Hi all, I have built most of my scheduling and automation app using Core 3 & Hangfire to handle the scheduling of specific tasks that can be run at specified intervals. Now this is working exactly...
View ArticleRenderSection Scripts aspnet core
Hello I`m new in asp net core, I`m comming from aspnet framework Today I create a new project aspnet core for study and I saw that Visual Studio create a structure with a folder named...
View Article