UWP Standard CMS Enveloped Encryption

I need to implement AES Encryption Algorithm in Cryptographic Message Syntax (CMS) [standard](https://www.rfc-editor.org/rfc/rfc5652) to encrypt my data in Windows Universal App (found reference [here...

7 Oct at 07:59

Which C# version .NET Core uses?

I know that [C# version depends on .NET Framework](https://stackoverflow.com/a/19532977/240564). But .NET Core which version uses? Particularly .NET Core 2? C#7?

Convert DataTable to IEnumerable<T> in ASP.NET Core 2.0

I need to generate an 'IEnumerable from a DataTable that I receive as an input from another system. The following code worked in ASP.NET 4.6.1. ``` public static IEnumerable<UserAssignmentDto> Sta...

27 Aug at 02:8

React Router Pass Param to Component

``` const rootEl = document.getElementById('root'); ReactDOM.render( <BrowserRouter> <Switch> <Route exact path="/"> <MasterPage /> </Route> ...

26 Aug at 19:7

How do you show underlying SQL query in EF Core?

At 3:15 from the end of this "[.NET Core 2.0 Released!](https://channel9.msdn.com/Blogs/dotnet/NET-Core-20-Released/)" video, Diego Vega shows a demo of new features in Entity Framework Core 2.0. As p...

13 Jan at 22:13

How to Add an implementation of 'IDesignTimeDbContextFactory<DataContext>' to the project in asp.net-core-2.0

Here are the list of packages which I have installed : [Installed Packages](https://i.stack.imgur.com/UQLme.png) I am using Entityframework core 2.0. First time I have successfully created database u...

Flutter remove all routes

I want to develop a logout button that will send me to the log in route and remove all other routes from the `Navigator`. The documentation doesn't seem to explain how to make a `RoutePredicate` or ha...

5 Feb at 16:12

ServiceStack Renaming SyncReply Client

I am looking at using a ServiceStack web service in place of an existing third-party web service. I have matched the DTOs used by the third-party service. However, the client is expecting a proxy cl...

25 Aug at 21:0

Force Windows Challenge

I have a AuthorizationProvider that needs to use both Anonymous and Windows and I can't seem to get then windows challenge to work using: ``` if (principal == null || principal.Identity == null || st...

28 Apr at 09:23

How to allow only positive number to be entered in editorforfield in asp.net mvc 5

I want a field to allow on positive number. I tried below attempt: Model ``` [Required] [GreaterThanZero(ErrorMessage = "Only positive number allowed.")] public int PositiveNumber { get; set; } ``` ...

25 Aug at 18:15

Azure AD B2C - Role management

I have an Asp.NET MVC Application connected with Azure AD B2C. In the Administrator settings I've created an Administrators Group: [](https://i.stack.imgur.com/7xTKl.jpg) In my code I would like to...

ASP.NET Core 2 + Get instance of db context

I am trying to get an instance of the DbContext (so I can do some additional work upon startup with it), I get the following error when trying to get an instance in the Configure method: System.Inval...

npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY

I am trying all possible ways to create a React application. I have tried Maven, and now I am trying `create-react-app` from Facebook Incubators. When I tried to run the command `create-react-app my-a...

OrmLite Code-First approach keeping existing database data?

I am trying Code-First approach of ServiceStack.OrmLite that will auto generate db structure. However, I find that the db structure will be re-generated again when I change the code structure (and er...

How to remove x-powered-by header in .net core 2.0

I tried to use this middleware: ``` public class SecurityHeadersMiddleware { private readonly RequestDelegate next; public SecurityHeadersMiddleware(RequestDelegate next) { this....

28 Aug at 02:32

ASP.NET Core - Add role claim to User

I've an ASP.NET Core (based on .NET Framework) using Windows Authentication. Point is, I need to add a role claim on that user and this role is stored in a distant database. I've read so much thing a...

ASP.NET Core localization decimal field dot and comma

I have a localized ASP.NET Core Web Application: en-US and it-IT. On en-US the decimal separator is dot, in it-IT the decimal separator is comma. I have this ViewModel ``` public class MyViewModel ...

25 Aug at 12:15

ef core doesn't use ASPNETCORE_ENVIRONMENT during update-database

I use visual studio to update all my environments with a certain migration. It had worked fine using the command below. ``` update-database -Migration initMigrationProduct -c ProductContext -Environme...

Only on Firefox "Loading failed for the <script> with source"

I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers except Firefox. Excerpt from my code: ``` $('#button').click(function () { var formD...

25 Oct at 13:35

How can I update a secret on Kubernetes when it is generated from a file?

I've created a secret using ``` kubectl create secret generic production-tls \ --from-file=./tls.key \ --from-file=./tls.crt ``` If I'd like to update the values - how can I do this?

ASP.NET Core 2.0 disable automatic challenge

After upgrading my ASP.NET Core project to 2.0, attempts to access protected endpoints no longer returns 401, but redirects to an (non-existing) endpoint in an attempt to let the user authenticate. T...

descriptor.ControllerDescriptor.ControllerName in AspNetCore.Mvc

I'm building an ASP.NET Core 2.0 Web Application. In ASP.NET WEB I used System.Web.Mvc where I had the following line to get the ControllerName: ``` descriptor.ControllerDescriptor.ControllerName ```...

25 Aug at 07:20

Error while reading json file in dotnet core "the configured user limit (128) on the number of inotify instances has been reached"

I have an console application (in dot net core 1.1) which is scheduled in cron scheduler for every 1 min. Inside the application there is call to configuration file. I'm attaching the code below. ``...

Will CLR check the whole inheritance chain to determine which virtual method to call?

The inheritance chain is as follows: ``` class A { public virtual void Foo() { Console.WriteLine("A's method"); } } class B:A { public overrid...

25 Aug at 00:42

Azure Service Bus Topics Multiple subscribers

I am new to Azure Service Bus and would like to know if I can multiple subscribers to a queue or topic? In rabbit MQ I can have multiple subscribers to 1 publisher. What I am trying to do is, I am u...

25 Aug at 00:37