Trying to use OAuth with CookieAuthenticationMiddleware as provider, can't...
A little backstory, I'm playing around with .Net Core, it's OAuth and Cookie implimentations to do a database/identity-free auth system.So far, I've been able to create a custom OAuth Middleware...
View ArticleSystem.TypeLoadException using "services.AddMvc();"
Hello,I'm a beginning programmer with ASP.NET and am having trouble resolving an exception using the "services.AddMvc()" method in my project. I've dug around in the threads a bit and my Google-fu...
View ArticleCannot find DNX process after updating Visual Studio 2015 from Update1 to...
Cannot find DNX process after updating Visual Studio 2015 from Update1 to Update 3I had an asp.net RC 1 web site. I always ran it using https (project properties > Debug > Set the address...
View ArticleWhere can I find BaseAPIUrl for HttpClient()?
My MVC app needs to call a Web API in the same solution. Since they would have the same base URL I would assume I could get that from some environment variable. Right now I've got it in a config file,...
View ArticleController is a namespace but is used like a type.
with this codeusingMicrosoft.AspNetCore.Mvc;namespaceProjectNetCore.Controllers{publicclassHomeController:Controller{publicIActionResultIndex(){returnView();}}}I'm getting this message when I try to...
View ArticleMVC ViewComponents, InvokeAsync result not sent to output stream
Since RC2 forced the use of InvokeAsync I can't get output into the page without forcing it there myself.If I create a new ASP .NET project and add a view component, then reference it in a razor page...
View ArticleSelf-contained application not so "self-contained"
I had an application buit with DNX that was working fine. I tried to make it works with CLI but I got an error on the startup. The error is :L'exception System.TypeInitializationException n'a pas été...
View ArticleUsing Mysql with asp.net core
I have a big project with MYSQL (Ado.net and entity framework). I followed this guide:http://dan.cx/2015/08/entity-framework-6-mysql-aspnetNow i'm having problems moving to Asp.Net Core .Here are some...
View ArticleOsX 10.11.6 nightmare
After installing osx 1011.6 upgrade dotnet won't compile.Microsoft.Extensions.DependencyInjection.DataProtectionServices[0] User profile is available. Using...
View Articleproblem with connection string configuration
hi,I have the following appsettings.json on the web project:{"ConnectionStrings": {"Model1": "data source=localhost;initial catalog=Mvc5IdentityExample;user...
View ArticleUnit test runner failed to run tests
I don't seem to be able to run (xunit) unit tests by right clicking on these in Visual Studio Community 2015 Update 3 and selecting "Run". Whenever I do this I see a dialog:Unit test runner failed to...
View Articlesvc services calls and URL Rewrites
I would like to add basic URL rewrites using the URL Rewrite module in IIS. For example, a canonical rewrite.The problem is that when i do that the services that the website consumes fail.Here is the...
View ArticleSelf-host ASP.NET5 Core 1 (VS Community Update 3) with a twist please
Hi all,I've written a fairly standard ASP.NET5 MVC6 (Core 1) application using Visual Studio 2015 Community with Update 3.The plan is to sit the app on a PC in some-one’s home (in their basement for...
View ArticleCreate partial editable PDF in C#
Hello Guys,I have strange requirement to create PDF. I tried lot of options but didn't get solution. Stuck!!!!Requirement is to create partial editable PDF. Some fields will be read only and other will...
View ArticleEliminate service locator from mvc framework?
I was reading some complains about how dependency injection is implemented in the asp net core mvc framework. (ServiceLocator anti-pattern and some complains from the maintainers of some Dependency...
View Article@Html.RenderPartialAsync
I am using @HtmlRenderPartialAsync and the resulting view displays the following message under each partial that looks pretty ugly:System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult]I...
View ArticleKeep Getting a Setup Fail for Microsoft .Net Core
Hello,I am currently trying to install Visual Studio 2015 Update 3, so that I can install Microsoft .Net Core, but I keep getting this message: "Setup has detected that Visual Studio 2015 Update 3 may...
View ArticleIIS + SQL Server connection + Windows Authentication
Hi, I created released version of .NET Core application and hosted to IIS under Default WebSite. IIS and SQL Server are different machines. Application hosted smoothly using Publish features of Visual...
View ArticleHow to increase upload file size in ASP.Net Core
I am using ASP.Net Core with MVC6. I need to upload file size 20 MB or more.Thanks
View ArticleUsing HTML editor in MVC .NET core
Does anyone have a code example of using an HTML editor in MVC .NET Core RTM 1.0?I have been following blogs on using TinyMCE, but they all refer to earlier MVC version (using data annotations of...
View Article