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

Asp.Net 5 in Visual Studio 2015, after trying to set up migrations all...

Hello Everyone,After I unsuccessfully tried to set up migrations all References in my Asp.Net 5 Project are messed up.The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft'...

View Article


How to log the cause of 500 Internal Service Error with WebApi?

I have wired up console logging at the debug level but when an error occurs before my controller code is reached, all I get is a 500 Internal Service Error with no exceptions in the debugger, nothing...

View Article


Web API with Live ID authentication

I'm trying to implement a Windows Universal app that authenticates to a web API using a Microsoft Account (Live ID). Searching the web tells me to use JwtBearerAuthentication. However, the options for...

View Article

Unable to migrate Asp.Net 5 project in VS2015

Hello everyone,I am not able to migrate my asp.net 5 project.In project.json -> "EntityFramework.SqlServer": "7.0.0-beta5"Developer Command Prompt for VS2015 D:\xxx\xxx.Asp.Net\src\xxx.Asp.Net>...

View Article

Microsoft.AspNet.Mvc.Xml For Beta 8? (DNX 4.5.1) - MVC 6

I was wondering if you could make the xml serializer libraries available for the next beta.  Using Beta 5 of the libraries causes a server 500 error (any request). 

View Article


How to Authenticate using traditional Asp.Net Membership Provider

How do I Set Cookie (Login) using asp.net membership? (when using AngularJS and Web Api)

View Article

context.GetFeature

In Beta 7 we could make this callvar error = context.GetFeature<IErrorHandlerFeature>();to get the error that just happened. It does not exist in beta 8 it seems. Would like to know what took its...

View Article

Where is Application_AuthenticateRequest in Asp.Net 5 (vnext)

I need to add an authentication code to Application_AuthenticateRequest It was previously in global.asax, I read, it is now in startup.cs but how is its signature.

View Article


Using new DNX451 - 502 Error on deploying to Azure

This is an MVC6 Web APIThe Web App works perfectly locally, but when I deploy to Azure all I get back from the site is a 502 error and "The specified CGI application encountered an error and the server...

View Article


VS Studio 2015 MVC the name viewbag does not exist in the current context

When I create a MVC project using MVC (VS2015) templae, it create and comnpiles and run ok, but when I go to the index view  I get the following error on the cshtml code"the name viewbag does not exist...

View Article

Visual Studio 2015 Upgrading Asp.Net 5 beta7 template to Asp.Net 5 beta8

Hello Everyone,Does anybody know, how to get a working compiling Asp.Net 5 beta8 template, which can be used to build a asp.net web application from scratch.How can I change the current default...

View Article

aspnet 5 ajax post

hi,i'm currently playing with using my own ajax to send some stuff to a controller action similar to the way i did in mvc 5, but iv noticed without the content-type being set to...

View Article

Will 'dnu publish --native' be supported on Linux?

On dnx-coreclr-linux-x64.1.0.0-rc1-1604, running dnu publish --native ends up with aExit code for mscorlib: 2 Native image generation failed.There does not seems to have a crossgen tool included witht...

View Article


How to Bind TreeView In Dropdownlist

Hello Every one..Here my requirement is . I want to bind TreeView in Dropdown . That Means when i click the dropdownlist the Treeview should be apper (show)... Is there any way to do like this...

View Article

Microsoft AspNet Identity EntityFramework 3 Add Permissions Tables and...

How Microsoft AspNet Identity EntityFramework 3 Add Permissions Tables and Modificate other tables I would like to modify the tables AspNetUsers AspNetRoles AspNetUserRoles and add another table...

View Article


Run WebApi on IIS express using command line

Hello!I have two solutions: The one is a service [asp.net 5 API] and the other is the client [.NET console application]. I want the service will run every time I run the client.I tried this...

View Article

MVC6 ViewComponent using Anonymous Type as dynamic view model cause...

HiUsing anonymos Types as dynamc paramater  is working in C' 6.0Example (works in Linqpad):void Main() { dynamic dyn = new { Prop ="Hallo World" }; myFunction(dyn); } public void myFunction(dynamic...

View Article


Change component view location in Asp.Net 5

Hello,On ASP.NET 5 a Component view must be in one of two places:    Views/NameOfControllerUsingComponent/Components/ComponentName/Default.cshtml    Views/Shared/Components/ComponentName/Default.cshtml...

View Article

Understanding DI - Unity

I used the following to learn DI and its use inside the MVC applicationhttp://www.c-sharpcorner.com/UploadFile/dacca2/implement-ioc-using-unity-in-mvc-5/NuGet packages referenced in this article for...

View Article

Can't send Object from AngularJS to Asp.Net 5 service

Hello since in no way I can pass my javascript objects to Asp.Net 5 web api service, I used this method: var param = function (obj) { var query = '', name, value, fullSubName, subName, subValue,...

View Article
Browsing all 9386 articles
Browse latest View live


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