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

Asp.NET MVC 5 DNX core giving error on nuget package I installed

I am new to MVC 5 and I have installed a Nuget package called Dapper which is a micro ORM. The problem I am having is that DNX Core 5.0 is giving this errorSeverity Code Description Project File Line...

View Article


What is the advantage of View Components in ASP.NET Core 1.0

i just read the article from this url http://www.dotnetcurry.com/aspnet-mvc/1244/view-components-aspnetmvc-6-aspnet-core for View Components in ASP.NET Core 1.0they are saying the advantage isA View...

View Article


Hosting ASP.NET 5 MVC 6 application in IIS 10

Hi There,Can someone tell me how to host ASP.NET 5 MVC 6 application in IIS 10?Thanks,Aravind.

View Article

Building 64-bit DNX

The build.cmd doesn't seem to take a parameter to build x64 ... how do I build the 64-bit version(s)?

View Article

Redirect in AuthorizationHandler

Below is code for a simple AuthorizationHandler. In case of failure I want to redirect to a specific Controller/Action. How do I achieve this in ASP.NET 5?With MVC5 we could do redirects in...

View Article


How to get and set profiles in asp.net 5

How to get and set profile properties in asp.net 5 service method?

View Article

What is the downside of referencing DNX451 in a .Net Core project?

When you create any new .Net Core project in VS 2015, it automatically references net451 and dotnet5.4.  You can remove the reference to net451, which limits you to only accessing the Core libraries....

View Article

Save cookie from controller

I need to save a cookie from the controller. In prior MVC versions this was done withResponse.Cookies.Add(new HttpCookie("CookieName", "Cookie text);I see that Response.Cookies.Add is now...

View Article


How to use other external providers in asp.net 5?

It's easy to use external providers like Twitter Google etc.But,How to use other external providers?thx

View Article


Asp.Net 5 Return Image

Hello Everyone,I have a Asp.Net 5 Project with a Web Api Controller.I would like to return an Image which I can than consume anywhere.The Image does not display in the Browser, instead a json file...

View Article

How can I bring this BaseRepository inside my controller and get it's method

I am using an ORM to connect to the database it is called dapper. The issue with it is that it's database calls are synchronous and I recently found a way to make it asynchronous by following this...

View Article

some Web APIs do not work after publishing

Instead, all Web APIs work in debug mode. But after publishing, some Web APIs not work. it is always pending, no any response.Holding on:  Request starting HTTP/1.1 GET...

View Article

Asp.NET MVC Core Authentication?

I'm attempting to set a login system on an asp.net mvc core 1.0 (previously mvc6) that does some custom stuff. In the past I've always set a value in the FormsAuthentication cookie like this on...

View Article


Angular 2 http.delete() not calling Controller

I put a breakpoint on my Controller and the Controller doesn't get called by http.delete() in the deleteItem() method.data.service.tsimport { Injectable, Inject } from 'angular2/core'; import { Http,...

View Article

Retrieve the applications url when using virtual directory

We want to be able to use virtual directories for example www.domain.com/myApp. In MVC 5 we used request.ApplicationPathfor example:  request.Url.Scheme + "://" + request.Url.Authority +...

View Article


Basic Authentication in ASP.NET 5 RC (Web API)

I'd like to implement basic authentication using ASP.NET 5 RC, similar to this article.  Unfortunately, I can't figure out how to mimic this in RC since this link uses IAuthenticationFilter and not...

View Article

Asp.net 5.0 on a Mac os x

Client wants to build a web service to be hosted on Mac os x - web service needs to autenticate users against active directory. I suggested client to use asp.net 5.0 web API as i'm #c developer - can...

View Article


How migrate Asp.net mvc 5 to mvc 6?

What can be problem?If project very large? and whether there is a what a way ?  And another way?

View Article

Problem DNX!

Hello! I need help! My project ASP.NET 5 MVC 6 is not run. Error when press F5:https://plus.google.com/107578928596452180108/posts/REMRsDHCNvvP.S. Sorry for my English!

View Article

Using System.Drawing.Bitmap in asp.net 5

I'm working on converting an existing MVC app to MVC 6. One of the libraries used by the app does some bitmap manipulation, and uses System.Drawing.Bitmap. However, when trying to create a new package...

View Article
Browsing all 9386 articles
Browse latest View live


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