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

.Net Core Localization

Hi,In my .NET Core Controller, I'd like to set localization to the value preferred by the client's browser. So, for example, if my #1 language/Culture preference is en-CA (English Canada), I'd like my...

View Article


Why the user account store in visual studio template not attached to the web...

when you make a new asp.net core web api project in visual studio the authentication section is disabled. if you make a new asp.net mvc app with "individual user accounts" options the account...

View Article


ASP.NET Core WebAPI much slower than WCF?

 Hi,While researching for a new project for a application service, I thought that .NET Core was the way to go. However, it seems that it's much slower compared to services developed in WCF. Any thought...

View Article

ASP.Net Core 2 - ARM support

I might be missing something, but from trying to play with ARM support in Core 2 seems to me like it keeps lagging behind the main branch - it was still tolerable not to have Linux packages during...

View Article

Upgrade to Core 2.0 about Authentication

hi, at Core 1.1, I can use app.UseWhen for different area using different authentication.like this sample code:https://weblogs.asp.net/imranbaloch/conditional-middleware-in-aspnet-coreBut upgrade to...

View Article


Anything new exist to test EF repository instead of Mock lib in .Net Core

please tell me anything new exist to test EF repository instead of Mock lib in .Net Core. if possible please share some good article links. thanks

View Article

App config in a reference dll

Hi, I am using .net core 2.0 and calling a dll which is written in VS 2008. The dll refer its app config file to get some values.Since I am calling the method from .net core it is looking for the...

View Article

ASP.NET core project throwing build error

Hi,I have Visual Studio Enterprise 2015, here are the installations above Visual Studio Enterprise 2015:1. Visual Studio 2015 Update3 2. Visual Studio 2015 Tools preview 2 3 .NET Core 2.0 SDK 2.0 4....

View Article


Image may be NSFW.
Clik here to view.

[The following error occurred attempting to run the project model server...

Hello all!  First, sorry to my bad english, i am studying to improve this. Ok, i am newbie here in the forum and i have a problem !  I searched in others platforms (github, stack) and i can not find...

View Article


Models from Portable Class Libraries

How do I reference a Portable Class Library as a model in creating a view.   I have all of my models in this library to work with a Windows universal app created in Visual Studio 2015 and now I am...

View Article

error after deploy core 1.1 to my site

<div class="content-container">I used visual studio 2017 to deploy a core 1.1 app to a subdomain on my domain and when I go to it I get this error . But if i run it local it works . All so deploy...

View Article

Is there any alternate or workaround to use XmlDsigC14NTransform in .net core...

Hello All,I need to transform xml into w3c based canonicalized format. I know there is a class XmlDsigC14NTransform in .net core 2.0 to perform the same functionality but I am using .net core 1.0 and...

View Article

ASP.net core 2.0 Change Razor pages folder

I want to put views in a different folder than pages when using Razor Pages.  instead of having all views within and nested within the Pages folder I want something like this : DomainShippingDataUtilpages

View Article


ViewModel 'empty' during a HttpPost controller callback

Hi everyone,using a functioning sample solution as model, I'm trying to implement an action of type HttpPost to handle a simple html form but for some reason the model's properties are left with...

View Article

ASP.NET CORE Subdomain redirect (Azure)

Dear SirsHow I can redirect from the URL subdomain.mysite.com to mysite.com/somecontroler/someaction/As AzureDNS does not support Redirection is it a bit challengeable.What do you suggest ? Thank you...

View Article


Scaffolding Razor Pages

I m trying to apply this example. I get this error when I run the scaffold command dotnet aspnet-codegenerator razorpage -m PatReg -dc ArtCoreDbContext -udl -outDir...

View Article

Strong-type OpenIdConnectOptions for aspnet core 2.0

I am trying to understand How can we utilize the strong-type when constructing the OpenIDConnectOptions.I know we can do the strong type casting for appsettings and other settings and can utilize that...

View Article


File uploads not working. Library methods changed in 2.0.

In my 1.1 app I used this method when saving a IFormFile:foreach (IFormFile source in files) { string navn = ContentDispositionHeaderValue.Parse(source.ContentDisposition).FileName.Trim('"'); var...

View Article

Applying EmitDefaultValue for a customised property

I have a DataMember defined as -[DataMember(EmitDefaultValue = false)] public int OccurNbr { get; set; }OccurNbr can be 0, which is a valid value. But if we specify EmitDefaultValue=false, then the...

View Article

Odd behavior with Razor View and HTTP Post .NET CORE 2.0

I have a simple entity... Student... I need to have two edit views for the student... One for Administrators and one for the student themselves...I have a HOME controller, and a STUDENTS controller......

View Article
Browsing all 9386 articles
Browse latest View live


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