Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

How to get trhe client IP-Adresse in RC?

It seems as all the solutions described to beta8 here:http://forums.asp.net/t/2071140.aspx?+beta8+How+to+get+client+IP+in+controller+action+don't work anymore with RC?

View Article


How to get access to Request.HttpContext (User-Agent-String) in startup.cs......

I have to query the User-Agent-string one time (by startup) in my app (e.g. to set the platform of the client).I then need the platform in the whole app. Therefore I set a session-variable. The logical...

View Article


Visual Studio build stalls for all MVC 6 projects (MVC 6 projects do not...

Recently all of my ASP.NET 5 MVC 6 projects have stopped building within Visual Studio 2015 (Update 1)I've tried many variations of patching / un-install / re-install for both VS 2015 and ASP.NET 5 as...

View Article

Image may be NSFW.
Clik here to view.

Error running ASP.NET 5 website

I am trying to deploy my ASP.NET website onto my VPS webserver (running windows server 2012) but get a 500 error for the website. I also get an error running web.cmd directly so I tried building just...

View Article

Image may be NSFW.
Clik here to view.

Error debugging MVC 6 Web API web site

I've been working on this project in VS 2015 all day and it was working fine.  However, now I'm getting an error (see screen shot below) when trying to debug in Kestrel.  I'm trying to track back to...

View Article


RC1 Error: The dependency System.Reflection.Emit 4.0.0 in project MVC6 does...

Decided to try the new MVC6 in ASP.NET 5 since apparently it now has IIS support, so i downloaded the updates from asp.net...created a new project and immediately after the packages were restored and...

View Article

Why is WebForms being deprecated?

I am not a fan of WebForms, but for the first time, I am arguing for it. I am looking to build my company's website soon. We do freelance solution design and development for web, mobile and IoT. I am a...

View Article

How to add custom Claims to Windows Authenication Application?

Hi,I'm developing an Intranet Application in ASP.Net v5 and want to use Windows Authentication. However I also need to add some custom Claims from a database to the principal identity. I've got this...

View Article


Windows Authentication in ASP.Net 5 MVC 6

In ASP.Net 4.5 MVC 5 if I wanted to use Windows Authentication I would just add the lines<authentication mode="Windows"></authentication>in the web.config and setup IIS for Windows...

View Article


[Localization] data-val-number always in english

Hi everybody,I'm actually working with ASP.NET 5 release candidate.I have a form with many text or number fields.These fields are required. I know that the number fields are automatically required and...

View Article

HttpPost route receive 404 Not Found on Azure

I have a WebApp on Azure, but any HttpPost route receive 404 Not Found.All the HttpGet routes work fine, but all the HttpPost routes don't work.This happens only on Azure, that is, in the localhost the...

View Article

Add EDM to class library

Hi!Problem : I can't add an ADO.net Entity Data Model to a class library, since I upgraded to ASP 5.EDIT: I also tried to install Entity Framework 6 in a class library, but it fails and give this...

View Article

httpcontext does not contain GetFeature error

I want to use GetFeature of httpcontext ,but  httpcontext does not contain GetFeature  error  occurred,how to use GetFeature of httpcontext?publicTaskInvoke(HttpContextcontext){// Detect if an opaque...

View Article


Technology like React

I have never done an MVC type development but have decided that asp.net 5 is a great place to start.I read often about Javascript libraries like React and Angular but I don't know where they fit in...

View Article

Can I use Microsoft.IdentityModel in a ASP.NET 5.0 Application

HelloWe had different applications which use Microsoft.IdentityModel (version 6.1.7600.16394) for authentication (claim based). Now we like to write a new application using ASP.Net 5.0 with MVC 6.0. In...

View Article


Using RoleManager in ASP.NET 5/MVC 6 ?

Hi, I want to create a new Role, "Administrator", in my ASP.NET 5/MVC6 project, but I don't know how to register the RoleManager<T> into the Dependency Injection container.In my controller I've...

View Article

asp.net web controls

How can find Image controls in ASP.net page String[] resim = Directory.GetFiles(path); for(int i=0; i<resim.length; i++){ image(i th. asp.net image control).ImageUrl=resim[i]; } How do I this

View Article


Porting Windows Service app to .NET Core

Hello!I have a windows service (it is OWIN + Web API + SignalR app) and I want to port it to .NET Core. I did not implement my app as ASP.NET site because it has some background logic which is not a...

View Article

SQL Server Session Database

I am trying to configure SQL Server Session State database and below is the code snippet from Startup.csservices.AddSqlServerCache(options => { options.ConnectionString = "Data...

View Article

Get client side details

Hi, I am trying to retrieve some details from the client side to store them on our database, idea is to authorize and deny certain machines to login on our system.Imagine, costumer will login on our...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>