Data dodania Pytanie
2018-02-15 23:02 Best practices for connecting from ASP.NET Core to SQL Server? »
I've had some recent difficulty with SQL Server not liking the default AppIdentityUser for logins, so I went ahead and created a custom DB user with w...
(1) odpowiedzi
2018-02-14 14:02 Missing/changed API when migrating from DNX to ASP.NET Core 2.0 »
I have been working on migrating an application from obsolete DNX to ASP.NET Core 2.0. While doing so it found that there has been few changes in the ...
(1) odpowiedzi
2018-02-13 21:02 Getting HTTP 400 Bad request on Angular 5/ASP.NET Core 2 project »
I'm having troubles configuring XSRF for my Angular 5/ASP.NET Core 2 project. On the Server I've added in Startup.ConfigureServices: services.AddAn...
(0) odpowiedzi
2018-02-09 04:02 What is the proper place for db seeding from json files in ASP.NET Core 2.0? »
In my Core 1.0 app, Startup ctor loaded several extra json files into the configuration... public Startup(IHostingEnvironment env) { Environment ...
(1) odpowiedzi
2018-02-08 09:02 IntelliSense for Razor Pages routes »
I was toying with new Razor Pages in ASP .NET Core 2.0 and noticed some problems with IntelliSense. When using tag helper for MVC controller I get us...
(0) odpowiedzi
2018-02-07 22:02 Extending the UserManager »
In my .NET Core 2.0 MVC project I added additional values to extend the ApplicationUser public class ApplicationUser : IdentityUser { pub...
(2) odpowiedzi
2018-02-07 10:02 IConfiguration object is null. »
I'm trying to read connection strings from appsettings.json and I'm using: services.AddSingleton(Configuration); This line from startup throws null...
(3) odpowiedzi
2018-02-06 17:02 Application Variables in ASP.NET Core 2.0 »
How would I go about setting and accessing application-wide variables in ASP.NET Core 2.0? Details: I have a variable, let's call it CompanyName, wh...
(2) odpowiedzi
2018-02-06 15:02 Connect to Oracle database from asp.net core »
First off I have read other posts about connecting to an Oracle database, unfortunately they could not help me. I'll describe what I have tried and ho...
(1) odpowiedzi
2018-02-02 11:02 Define routing value in app.UseExceptionHandler »
I have a Multilanguage project for which all urls include the language code to set the current language. The URLs have the following format: http://w...
(0) odpowiedzi
2018-02-02 08:02 Global Error Catcher »
In my project I want to log all the errors happen in the application in a database table. I catch almost all errors using try catch blocks, but I cann...
(1) odpowiedzi
2018-01-29 19:01 Bootstrap not working in Razor Pages »
Bootstrap is working in my index page and other pages which are by default generate....But the folder i create inside pages and scaffold using crud on...
(1) odpowiedzi
2018-01-27 23:01 How to use Bootstrap 4 in ASP.NET Core »
I want to update Bootstrap in ASP.NET Core with NuGet. I used this: Install-Package bootstrap -Version 4.0.0 It did add the dependencies but how do...
(4) odpowiedzi
2018-01-24 22:01 Migrate WCF bindings from ASP.NET to ASP.NET Core Full Framework »
I want to migrate an existent ASP.NET project to a ASP.NET Core Full Framework project. This project references a class library with .NET Framework 4....
(1) odpowiedzi
2018-01-24 06:01 How can i use #Scrips.Render with .Net core 2.0 mvc application? »
How can i use #Scrips.Render with .Net core 2.0 mvc application? I am converting the code from .Net Framework 4.6.1 to .Net core 2.0. i have read fro...
(1) odpowiedzi
2018-01-22 14:01 .Net Core 2.0 Authorization always returning 401 »
After adding [Authorize] to a controller, I'm always getting a 401 from it. While debugging, I see the return AuthenticateResult.Success being reached...
(1) odpowiedzi
2018-01-21 00:01 Not creating database using Migration command Update-Database in ASP.Net Core 2 »
I created new ASP.Net core project with WebAPI. Using the below link. jwt-authentication-with-aspnet-core-2-web-api-angular-5-net-core-identity-and-f...
(1) odpowiedzi
2018-01-20 10:01 RazorView/RazorPages related data »
I have some data specific to each razor view and and i do not want to hard-code it to each view. So, i want to add view related compile-time data to e...
(2) odpowiedzi
2018-01-19 15:01 IOptionsSnapshot Dependency Injection from Class »
i have a .net core 2.0 application which has an appsettings.json file which holds the configuration for the service. In my startup script i added thi...
(1) odpowiedzi
2018-01-15 12:01 HTTP: to send big data »
ASP.NET Core MVC 2 I need to send big raw data (the byte[]). My POST-request contains the Content-Type: application/octet-stream header. This is th...
(0) odpowiedzi
2018-01-14 21:01 MapRoute for Razor Pages »
In ASP.NET MVC we can map URLs to controllers, actions, and parameters. For example, the following MapRoute is the default used in an ASP.NET MVC appl...
(0) odpowiedzi
2018-01-14 18:01 How to query bind parameter? »
I'm trying to query bind the parameter id. It keeps coming through as 0. s2 has a value when supplied: id=0, s=null http://localhost/api/values/123 ...
(2) odpowiedzi
2018-01-13 14:01 How to validate a claim in id_token when using OpenIdConnect middleware? »
I'm using Oath2 with Google authentication in my ASP.NET Core MVC app. I want to restrict logged in users to a certain G Suite domain which according...
(1) odpowiedzi
2018-01-11 16:01 Swagger default value for parameter »
How do I define default value for property in swagger generated from following API? public class SearchQuery { public string OrderBy { get; s...
(2) odpowiedzi
2018-01-07 04:01 Generating a nice URL with tag helpers in asp.net core 2 »
How can I generate a nice URL with tag helpers? for example: <a asp-controller="Article" asp-action="FilterByTag" asp-route-tagId="@ta...
(1) odpowiedzi
2018-01-06 18:01 ASP.NET Core Authorization based on query string »
I have an endpoint in my Web API which looks like this: api/customers?salesRepId=123 Now, if I don't supply the salesRepId in the querystring, I wa...
(2) odpowiedzi
2018-01-05 17:01 External authentication in ASP.NET core Web API and Angular Client »
I have an angular application that uses asp.net core Web API. I need to add external authentication for google and facebook sign in so that my web and...
(0) odpowiedzi
2018-01-05 15:01 IIS Express not stopping when debug session ends »
All of a sudden IIS Express no longer stops when I stop debugging a web site in Visual Studio 2017. I'm not sure when this behaviour started, but I h...
(0) odpowiedzi
2018-01-03 11:01 .Net Core returning an int in HttpResponseMessage »
I'm trying to replicate the following ASP.Net code in .Net Core: return Request.CreateResponse( HttpStatusCode.OK, 100 ); I have tried: using (Mem...
(1) odpowiedzi
2017-12-31 11:12 How to integrate bootstrap material design with .net core 2.0 mvc app »
I've found a good looking theme for my future website. I do not know angularjs and I don't want to learn it. I'm working with .net core, vs code, on...
(0) odpowiedzi
2017-12-29 14:12 How to manually initiate Razor page (or create, initiate and pass IActionResult of MVC Controller to the response stream)? »
I wrote a library that generates/compose MVC Controller code for vairous Actions (Index, Details, Edit, Create, Delete) as delegates (generates from m...
(0) odpowiedzi
2017-12-27 19:12 What is the right way to implement classes as a component in .Net Core? »
I'm trying to implement some providers in my code. Now, providers can be different types. For example a provider can fetch a url, read some xml and pa...
(0) odpowiedzi
2017-12-24 19:12 .Net core 2.0 Angular template - webpack converts the templateUrl to template »
I've opened a new .net core 2.0 Angular application just for fun, and immediately I've noticed that the angular metadata attribute is converted from t...
(0) odpowiedzi
2017-12-23 23:12 an alternative for HttpContext.Current.Items.Contains(DataContextKey) in ASP.NET Core 2 »
I'd like to upgrade some codes to ASP.NET Core 2. I know that the HttpContext.Current is removed from ASP.NET Core 2 and must use IHttpContextAccessor...
(1) odpowiedzi
2017-12-23 17:12 Cannot serialise to XML in ASP.NET Core 2 »
I'm very confused at the moment with a basic ASP.NET Core 2 API project and content negotiation and returning something other than JSON. I've had th...
(1) odpowiedzi