Dealing static files in Production mode
Hi,I can't figure out how I am supposed to handle static files in different modes (I work with VSTS Ci/Cd using Docker)Considering the following use case (_Layout.cshtml) :@* CSS *@<environment...
View ArticleGet Session from Javascript in Core 2.0
Hi,I have an extension method for sessions from MS docsusing Microsoft.AspNetCore.Http; using Newtonsoft.Json; public static class SessionExtensions { public static void Set<T>(this ISession...
View Articlecheck only password
I'm building a backend for an API. I just want to check the password for violations of duty like length or digits with api call. I don't want to change the password. second challenge is that I can't...
View ArticleLambda expression Tree loop
Hello,Here is what i want to do:List<String> values = new...
View ArticleHow to add an asmx service in asp.net core 2.0 and access it from javascript
I'm trying to add a asmx service to an asp.net core 2.0 application. First it doesn't allow me to add a new asmx service (since it's a .net core application). So I did Add Existing Item and added an...
View ArticleLogging application event
I'm trying to find a tutorial for logging events, the ones I found are not complete can someone point me to a good complete tutorial?
View Articleget value from angular 5 component and pass it to h3 text inside view?
HiPlease i try t make this task but i think i miss something -i have an view that has one angular component (that get category from db) and some html text (not in any component) - now i need when user...
View ArticleWhat is the correct implementation of middleware that validates a custom...
I had no luck getting asp `antiforgery` token working in my [angular app][1]. I am using `JWT` and I found thispost which suggests a workaround to avoid CSRF attacks. so I included `xsrfToken` in my...
View ArticleTrying to start a SignalR connection from an ASP.NET Core action call gives...
The setup I'm trying to accomplish is this: I have a signalR server that supports 2 types of clients - one type that supplies data and another that receives data. When a "receiver" type client chooses...
View ArticleUpload File to the path out of webroot
With the asp.net core , I can upload a file to the wwwroot path , but how can I upload file to the path out of wwwroot , e.g. “D:/MyPath”,My code, like this : var filePath = @"D:\mydata";using...
View ArticleFile not found http://localhost:5000/dist/tryCatch.js.map
Hello,I have created a blank asp.net core mvc 2.0 angular project. I've typed "npm install" in project sub folder.Everything seems to work, but i get this error in my browser:404 not found:...
View ArticleNet Core new angular templates
Hi,You can help me with this error. I am testing the new angular net core templates [link].With Visual Studio 2017 in debug mode these errors come out. Hot changes (html) do not apply.I have a personal...
View ArticleCookies and Session Stored In TempData In ASP.NET Core
Use of TempData for cookies and session ? Please let me know via example.
View ArticleAccessing AAD in a ASP.NET Core 2.0 WebAPI project with AAD authentication
Hi there,I am developing a MVC/WebAPI project, that authenticates the user against an AAD. This works perfectly (because it was set up by the project creation assistant ;)). But now I am faced with the...
View ArticlePerformance problems with WebAPI using a huge Proxy Class
Hi there,I have written an ASP.NET Core WebAPI interface to enable other applications accessing a central application's data. This is done by consuming a SOAP web service. So I used Visual Studio to...
View ArticleView Component does not POST/GET to action method
I have a viewcomponent in my _Layout Page as follows:<form id="lang_form" asp-controller="Home" asp-action="RedirectToLanguage" method="get"><select name="lang" id="lang_ddl"...
View ArticleASP.NET MVC Core 2 - Which one to choose "MVC Approach" or Razor Pages
Hi All,I am currently trying ASP.NET MVC Core 2. Today I come up with a new concept of Razor Pages "roughly" similar to old aspx and code behind file in asp.net web forms. Now the question iswhich...
View ArticleCore 2.0 Loading Session asynchronously
Hi,from the MS docs:The default session provider in ASP.NET Core loads the session record from the underlying IDistributedCache store asynchronously only if the ISession.LoadAsync method is explicitly...
View ArticleTop ASP.Net Web Application Framework
What are the Top ASP.Net Web Application Framework ?
View ArticleI need sample of NTier architecture codebase in asp.net core
Dear All,Please I am new to asp.net core. I am trying to use the NTIER Architecture model in my asp.net core project. Al the tutorials that I have seen dont follow this model.I have been able to...
View Article