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

VS2015 not recognizing additional methods in referenced dll

I have a WCF solution that I use svcUtil to create a client for.  The first time I created the client it had two public methods.I referenced that dll from my VS2015 asp.net 5 web application and...

View Article


Posting collection

Hello everyone, this is my first post on this forum. I'm learning ASP.NET 5 with MVC6. Up to MVC5 i have used BeginCollectionItem Helper  for posting collection to server. Is there any available...

View Article


Reading data from appsettings.json file from a class libary?

I am building a class library for an MVC app and need to read data from the appsettings.json file but am running into a NullReferanceExpecption. This this possible to do and if so what am I...

View Article

How do I return HttpStatus codes in ASP.NET Core 1.0 API?

I have an API method that returns an object. However, if I detect some issues, I want to be able to return a certain Http status code. What's the right way to handle this in the new ASP.NET Core 1.0...

View Article

ASP.NET 5 Windows Authentication - search Active Directory users

We are using ASP.NET 5 windows authentication in Visual Studio 2015 web application project. We notice that the default MVC template displays the logged in user name as Domain\username using...

View Article


Sharing SQLServer sessions between Silverlight 5 and ASP.NET 5 applications

Hi,Can someone tell me how to share SQL Server sessions between Silverlight 5 application and ASP.NET 5 application?Thanks,Aravind.

View Article

MVC 6 Hosting on PLESK

Hosting Type: Shared Supported: MVC 6 (.Net 4.6) and HTTP Platform Handler supportPublished app working fine on local IIS, On Plesk load published content via FTP (3 folders wwwroot,log,approot) can...

View Article

What is the status of the Microsoft ASP.NET Web API Help Page system?

The last update to this system is Microsoft ASP.NET Web API 2.2 Help Page 5.2.3, which was released on 2/9/2015.  ASP.NET Core 1.0 is a completely different animal, and the existing system doesn't work...

View Article


MVC Hitting HomeController Index action twice

I am attempting to work with an MVC 5.0 project type in VS 2015 that has has hardly been modified. I added a constructor to the home controller to Inject a service, but have made no other changes. A...

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

Achingly slow startup times with RC1

I'm finding incredibly slow start up times when booting our ASP.NET 5 / RC1 projects - both from Visual Studio (using Kestrel directly - the "command prompt" window opens for the DNX process and it...

View Article

Problem when converting ASP.Net application from .Net Framework 3.5 to 4.6

Hi,As per the client requirement, I am converting asp.net application from version 3.5 to 4.6 also the development machine is upgraded from Server 2003 R2 32 bit To windows server 2012 64 bit. While...

View Article

Generation of `*.Designer.cs`-files from `*.resx`-files in ASP.NET MVC 6?

How Microsoft developers generates `*.Designer.cs`-files from `*.resx`-files inhttp://github.com/aspnet/mvc project?

View Article


Visual studio 2015 on windows 10 keep getting error

I keep getting the below error in visual studio2015, I have tried one of the suggesstions below but it has not...

View Article

Unhandled expections are not being routed to my custom error page, why?

My understanding is that if you added `app.UseExceptionHandler();` and give it a path that ASP.Net is supposed to load that page when ever there is an error that is not caught in code but in my case I...

View Article


convert List to string

hi allhow to convert  List<DataRow> to string

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


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 notify another application via ASP.NET?

Hi,In ASP 4 I would use TcpClient which is not implemented in ASP Core 1 so how can I notify Universal Windows App which run on Raspberry Pi 2? I found SignalR2 do perfectly what I need in ASP 4, but I...

View Article

Performance of ASP.Net when Umbraco is used

Hi Team,I am planning to do the following config changes. Can someone explain the advantages and disadvantages for below config relatedIIS7.5 does not show startMode property in advance settings but to...

View Article
Browsing all 9386 articles
Browse latest View live


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