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

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 Article


System.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 Article


Image may be NSFW.
Clik here to view.

Cannot 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 Article

Where 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 Article

Controller 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 Article


MVC 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 Article

Self-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 Article

Using 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 Article


OsX 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 Article


problem 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 Article

Unit 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 Article

svc 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 Article

Self-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 Article


Create 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 Article

Eliminate 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 Article

Keep 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 Article


IIS + 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 Article

How 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 Article

Using 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
Browsing all 9386 articles
Browse latest View live


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