using xamarin forms with IServiceProvider
I was looking into "Dependency Injection" on xamarin forms and found some concepts that use something like `ContainerBuilder`. The solutions found online such as [this](https://learn.microsoft.com/en-...
- Modified
- 20 Feb at 16:22
HttpContext.Response.Body.Position = 0 - "Specified method is not supported" error
I've got some logging middleware I've setup that grabs and logs information utilizing HttpContext. I need to set the position of the HttpResponse.Body to 0 in order to read the whole stream, however,...
- Modified
- 5 Jul at 13:40
NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)
I've just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha. HTML files in the web host director work prior to php files making there way main di...
- Modified
- 10 Aug at 03:52
Error CS1061 “...Does Not Contain Definition and No Extension Method...accepting a first argument of type ” could be found
I am new to .NET visual studio, building windows Form Application. I had the following error described below, when trying to build a solution. I am not sure if it has to do with something related to...
The following constructor parameters did not have matching fixture data
I'm trying to test my controllers using `xUnit` but getting the following error during execution of Customer Controller: > "The following constructor parameters did not have matching fixture data: Cus...
- Modified
- 19 May at 07:46
How to change root path ~/ in Razor in asp.net core
The simplest question for which I can't find an answer. I have an asp.net core 2.1 MVC application with Razor. Application widely uses `~/path` syntax. Everything works great if application runs fro...
- Modified
- 3 Jul at 13:31
How to refresh a token for Microsoft Graph
I'm connecting to the Microsoft Graph using: ``` public GraphServiceClient GetAuthenticatedClient(string token) { GraphServiceClient graphClient = new GraphServiceClient( new DelegateAuth...
- Modified
- 3 Jul at 18:21
Best practice calling scalar functions with Entity Framework Core (2.1)
I often need to call scalar functions that are defined on a SQL Server from my web applications (ASP.NET Core / EF Core). Since these functions are just simple helper functions and I also use a lot of...
- Modified
- 26 Jan at 17:3
Using Entity Framework Core migrations for class library project
This seem to be [an issue that have been fixed already](https://github.com/aspnet/EntityFrameworkCore/issues/5320), at least for the SQLite databases. My solution consists of 3 projects: 1. WPF pro...
- Modified
- 3 Jul at 02:15
How do I customize ASP.Net Core model binding errors?
I would like to return only standardized error responses from my Web API (Asp.net Core 2.1), but I can't seem to figure out how to handle model binding errors. The project is just created from the "A...
- Modified
- 3 Jul at 00:39
How to use `@ts-ignore` for a block?
The `// @ts-ignore` comment enables the TypeScript compiler to ignore the line below it. How can one ignore a whole block of code with TypeScript?
- Modified
- 4 Oct at 16:24
Difference in output with waitKey(0) and waitKey(1)
I've just begun using the OpenCV library for Python and came across something I didn't understand. ``` cap = cv2.VideoCapture(0) while True: ret, frame = cap.read() #returns ret and the frame ...
No authenticationScheme was specified, and there was no DefaultForbidScheme found with custom policy based authorization
I have a custom policy based authorization handler as defined below. Authentication is handled before the user hit this application so I only need authorization. I am getting the error: > No authent...
- Modified
- 8 Apr at 20:2
UseSqlServer missing from AddDbContext
Just upgraded to asp.net core 2.1 and it seems like no longer exists in the options for . (where I pass in the connectionstring) What am I supposed to use instead?
- Modified
- 2 Jul at 14:37
ReactJS API Data Fetching CORS error
I've been trying to create a react web app for a few days now for my internship and I've encountered a CORS error. I am using the latest version of reactJS, and placing this in the `create-react-app`,...
- Modified
- 2 Jul at 06:33
No executable found matching command "dotnet-aspnet-codegenerator" asp.net core 2.1 project in mac
I am following a tutorial from https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages-mac/model?view=aspnetcore-2.1 on creating an asp.net core 2.1 project in mac. When trying to scaffold...
- Modified
- 5 May at 15:49
How do you change the value inside of a textfield flutter?
I have a `TextEditingController` where if a user clicks a button it fills in with information. I can't seem to figure out how to change the text inside of a `Textfield` or `TextFormField`. Is there a ...
.NET Core 2.1 Override Automatic Model Validation
In the latest .NET Core 2.1, an automatic validation for the model state validation is introduced ([https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/#mvc](https://blogs.msdn...
- Modified
- 1 Jul at 17:39
FirebaseInstanceIdService is deprecated
Hope all of you aware of this class, used to get notification token whenever firebase notification token got refreshed we get the refreshed token from this class, From following method. ``` @Override ...
- Modified
- 25 Jul at 12:56
JWT Authentication - UserManager.GetUserAsync returns null
In `AuthController` when authenticating I create a few - `UserID` is one of them. ``` ... Subject = new ClaimsIdentity(new[] { new Claim(ClaimTypes.Name, user.UserName), new Claim("UserID", user...
- Modified
- 2 Jul at 18:1
Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>)
I need some help with this error: > Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse () at Object.success (dashboard.js:22) at fire (jquery-3.3.1.js:3268) at Object.fireWith [as resolv...
- Modified
- 31 Aug at 09:50
How to use Swagger in ASP.Net WebAPI 2.0 with token based authentication
I have a ASP.Net WebApi with token based authentication and I want to use swagger to create documentation for this RestApi. The Api has for now only 2 methods, one for requesting a token i.e. `http:/...
- Modified
- 15 Apr at 17:25
NSubstitute - mock out parameter behaviour for any parameter
I'm trying to mock `IConfigurationProvider` with NSubstitute. I need the method `bool TryGet(string key, out string value)` to return values for differing keys. So something like this: ``` var config...
- Modified
- 30 Jun at 17:44
Is there unpivot or cross apply in ServiceStack ormlite?
I am using ServiceStack 4.5.14. I want to pass a list of Guid to such as below query. Table Name: Image Columns: (Id -> Type=Guid) (ImageId -> Type=Guid) (Guid -> Type=Guid) ``` var result = Db.Execut...
- Modified
- 12 Feb at 19:31
How to get Client IP address in ASP.NET Core 2.1
I'm working on ASP.Net Core 2.1 with Angular Template provided by Microsoft Visual Studio 2017. My Client App is working fine. After competition of User Authentication, I want to start User Session Ma...
- Modified
- 30 Jun at 18:40