Authorization using cookies for views and bearer tokens for json results
I'm using Azure AD with OpenIDConnect and I'd like to use bearer tokens to authorize MVC controller actions that return json and cookies to authorize actions that return views, so I added the...
View ArticleIs it posible to control Validation attribute order ?
Dear Sirs.Is it posible to control Validation attribute Order in ViewModel ? (in ASP.NET CORE)Thank you in advance.
View ArticleHow to debug (or build) ASP.NET Core?
Hi,I would like to debug the release version of ASP.NET Core. Could you please help in what is the preferred approach?Background: I have not found any symbol server that would serve ASP.NET Core...
View ArticleHow to handle assemblies that fail to resolve on load?
Hi,In the full .NET Framework I cam subscribe to the AppDomain.AssemblyResolve event and handle the discovery of assemblies that have failed to load.If .NET Core fails to find an assembly how can this...
View ArticleError in migration from ASP.NET 5 RC1 to ASP.NET Core 1.0
I am getting lots of error after trying to migrate from ASP.NET 5 RC1 to ASP.NET Core 1.0 like belowThe dependency Microsoft.AspNetCore.Html.Abstractions 1.0.0 in project does not support framework...
View ArticleThe type or namespace name 'SqlDataAdapter' could not be found (are you...
I was using ASP.Net Core but after conversion from rc1 to latest version I am getting lots of error related to ADO.NET.What to do now.
View ArticleAntiForgeryValidation attribute seems to conflict with...
Hi,My app is based on the SDK: 1.0.0-preview2-003121 and uses a combination of MVC, Web API and AngularJs (v1)When making API calls, I want to return a 401 unauthorized when the cookie based session...
View ArticleWhich technology can replace DataTable and DataSet of ADO.Net because...
Few months ago, I had created project using asp.net core rc1. and used ADO.Net but due up-gradation I am unable to use ADO.Net. Now, project is huge. What should I do now for replacement of DataTable...
View ArticleNested application hosting
I have 2 application.App1 (app.domain.com)App2 (app2.domain.com)They work fine with host header/subdomainsRequirement is have url like domain.com is for app1 and domain.com/app2 for app2What i want is...
View ArticleLogged out of ASP NET Core site on IIS after 5 minutes of inactivity
Hi,When running my ASP NET CORE MVC site on IIS I notice that after 5 minutes of no requests, I get logged out of the site (I'm using Identity with cookies authentication).I suspected this being caused...
View ArticleCannot send excel file to server, asp.net doesn't see any files.IFormFile is...
on client-side: Uploading excel file. <div> <form> <div> <label for="myFileField">Select a file: </label> <input type="file" demo-file-model="myFile"...
View ArticleDead View with CompilationFailedException
We have an MVC application using the .net framework 4.6.1 running on IIS on Windows Server 2008R2. We are experiencing a problem that has been occurring since we started developing this application...
View ArticleHow to arrange folders and namespaces in ASP.NET web API application?
Suppose i have a simple web API with a ValuesController.cs file like this:using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using...
View Article.net core Authentication with identity doesn't run my action
I am trying to use Cookie authentication in my .net core MVC project. The process is that After Registration I have an entry in the ASPNetUsers table and I have extended this table to include a...
View ArticleLog information about user location
Hi,I want to save information about user location and device. I have e.g. IP and want to check user country.Any ideas how to check check country by user IP and find out about device?--Futer
View ArticleRead appsettings in asp net core console application
I'm trying to read the appsetting on my console application as well as to set he EntityFramework connection string.I did a lot of google but did not found any single solution not even on Microsoft's...
View ArticleUsing EntityFrameworkCore with an existing database
I am building a new application that will connect to an existing database. I have used the reverse engineering tool and it all works OK. However I wopuld like to give my entitles and model properties...
View Articleaspnet core antiforgery token validation is failing
windows 7 IIS Express works , Local IIS 7.5 works but when it is deployed to Windows Server 2008 R2 it is not working...below error message was logged in the log file.Could you please let me know what...
View ArticleIs it possible to include a .NET 4.6 library of domain objects in my asp.core...
I like the new asp.net core stuff, but I really want to reuse my old library of domain objects as it's still used by other 4.6 projects and making copies is always bad news. I don't really care about...
View Articleimplement N tier Architecture in ASP.NET core
i want to implement N tier Architecture in ASP.NET core . i came across many web sites that explain it for ASP.NET( for example this page ) but no where i could find a page explaining it for ASP.NET...
View Article