Get Icon from UWP App
I want to extract the icon of an UWP App to build a Explorer like "Open With" menue. With the help of [SHAssocEnumHandlers](https://msdn.microsoft.com/en-us/library/windows/desktop/bb762109(v=vs.85)....
Error-Attempt by method 'X.set_DbConnection(System.Data.Common.DbConnection)' to access method 'Y.get_Settings()' failed
I created a console app and use EntityFramework 6.2 (for connection with MS SQL), MySql.Data 8.0.11 and MySql.Data.Entity 6.10.7 (for connection with MySQL). In this application I want to create a jo...
- Modified
- 7 May at 18:27
Web API 2 - Implementing a PATCH
I currently have a Web API that implements a RESTFul API. The model for my API looks like this: ``` public class Member { public string FirstName { get; set; } public string LastName { get; se...
- Modified
- 10 Feb at 04:52
How to make GET request with a complex object?
I try to make `GET` request via WebApi with complex object. Request is like this: Where `CustomObject` is: How do I compose a valid GET request?
- Modified
- 6 May at 18:45
Process.WaitForExit hangs even without using RedirectStandardError/RedirectStandardOutput
We have a service which starts a process and waits for process to exit when service is stopped/ user of service calls stop (to stop/kill process started by service). Sporadically, `process.waitForExi...
What is the difference between MockBehavior.Loose and MockBehavior.Strict in SimpleStub?
I'm a fresh man in VS Unit Test, and I'm learning to add mock module into my unit test project with the `SampleStub` Framework. And I now meet the trouble in understanding `MockBehavior.Loose` and ...
- Modified
- 3 May at 07:41
Swashbuckle/Swagger + ASP.Net Core: "Failed to load API definition"
I develop an ASP.NET Core 2 application and included Swagger. Everything worked fine until I introduced a method without explicitly defining the HTTP action: ``` public class ErrorController : Control...
- Modified
- 20 Jun at 09:12
Default proxy in .net core 2.0
I saw couple of questions asked about core 2.0 on how to make HttpClient to use default proxy configured on the system. But no where found right answer. Posting this question hoping someone who might ...
- Modified
- 29 May at 07:31
How to validate a JWT token
I'm trying to use JWT tokens. I managed to generate a valid `JWTTokenString` and validated it on the [JWT debugger](https://jwt.io/) but I'm having an impossible time validating the token in .Net. He...
C# how to mock Configuration.GetSection("foo:bar").Get<List<string>>()
I have a list like following in config.json file ` ``` { "foo": { "bar": [ "1", "2", "3" ] } }` ``` I am able to get the list at run-time using ``` Configuration.Get...
- Modified
- 6 May at 16:34
.NET Core IServiceScopeFactory.CreateScope() vs IServiceProvider.CreateScope() extension
My understanding is that when using the built in the dependency injection, a .NET Core console app will require you to create and manage all scopes yourself whereas a ASP.NET Core app will create and ...
- Modified
- 7 May at 07:6
What does "+" mean in reflected FullName and '*' after Member c#
I'm currently dealing with reflection in c#. After: ``` Assembly.LoadFile(@"C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.7\System.Numerics.Vectors.dll").GetTypes() ``` And i found this:...
- Modified
- 7 May at 16:19
ServiceStack.Text Disposes Input Stream
When deserializing data from a stream ServiceStack.Text closes the input stream. Since there is no issue tracker at Github and their web site refers to SO I post the question here. A call to ``` Jso...
- Modified
- 5 May at 21:49
How to make lazy-loading work with EF Core 2.1.0 and proxies
I have the following models: ``` public class Session { public int SessionID { get; set; } public int UserID { get; set; } public virtual User User { get; set; } } public class User { ...
- Modified
- 4 May at 17:33
Change or rename a column name without losing data with Entity Framework Core 2.0
I realised that I had spelt one of my column headers incorrectly so I changed it in the model and created a new migration to update it into the database. All worked perfectly until I realised that wha...
- Modified
- 4 May at 19:26
How can I resolve ServiceStack Framework/Core conflicts when I am only using the Core version of ServiceStack components
I am using Visual Studio 2017. I have a Framework 4.6.1 console application referencing ServiceStack.Client.Core v5.1.0. It also references four other Standard 2.0 DLL projects in the same solution, a...
- Modified
- 4 May at 17:47
NullReferenceException inside .NET code of SqlConnection.CacheConnectionStringProperties()
I'm facing really strange issue. Given the code below: ``` static void Main() { var c = new System.Data.SqlClient.SqlConnection(); c.ConnectionString = "Data Source=SOME_NAME;Initial Catalog...
- Modified
- 7 May at 08:20
Entity Framework Core connect to MSSQL database over SSH tunnel
I've seen a lot of posts asking similar questions, but none of which solved the issue I have. My setup is as follows: - `127.0.0.1:1433`- `L5000 -> 127.0.0.1:1433` When I enter the server name `127...
- Modified
- 14 May at 09:6
xUnit Theory with async MemberData
I have a unit test project using [xUnit.net](http://xunit.github.io/docs/getting-started-dotnet-core) v.2.3.1 for my ASP.NET Core 2.0 web app. My test should focus on testing a given DataEntry instan...
- Modified
- 4 May at 12:46
Why do Service Stack dot net core project templates include a types folder in the service model project with a .GitIgnore
I cannot figure out, nor can I find documentation, for the use of the "Types" folder in the ServiceModel project. I have used the Service Stack project template cli for .NET Core 2.0 web and self host...
- Modified
- 3 May at 13:25
Soap endpoints not appearing in servicestack Asp.Net core application
Newly created Asp.Net core application with ServiceStack.Core package does not expose Soap end point. It only expose Json endpoints as shown in the image below. Soap endpoint support are not supported...
- Modified
- 3 May at 13:15
string.Contains as a predicate not a function call?
I found this sample of code on SO (can't remember from where :/) that allowed me to check for line code arguments when launching my application : ``` if (e.Args.Length == 0 || e.Args.Any("-show".Cont...
Ajax helper tags documentation in Asp.net Core
Is there is any link for Ajax helper tags documentation in Asp.net Core. I am trying to learn ajax with asp.net core but i found no documentation for it. In asp.net mvc we use @Ajax.Form and then use...
- Modified
- 3 May at 06:37
ServiceStack Swagger UI 500 Error
I'm getting a 500 error when testing a ServiceStack API using Swagger UI. Here's the plugin code: ``` private void InitializePlugins(Container container) { Plugins.Add(new ValidationFeatu...
- Modified
- 2 May at 21:23
How To: Register ServiceStack's Redis Client Manager singleton in ASP.NET Core using the default container
I've been reading several documents and articles on how to ServiceStack's Redis client, but all of them use the ServiceStack's `AppHost` method and their built-in Func IOC But I don't want to mix diff...
- Modified
- 2 May at 19:36