XMLSigner No longer works in 4.6.2 - Malformed reference element
After Upgrading an application from 3.5 to 4.6.2 The following block of code no longer works. I get "Malformed reference element" Errors, even though it worked just fine as a 3.5 application. The code...
- Modified
- 5 Sep at 13:53
EF Core - Error when adding a related entity
I get an error when I try to update a related entity of an entity that I already got from database. For illustration purposes I have these entites: ``` class Car { int Id ..; string Name ..; ...
- Modified
- 4 Sep at 16:14
Environment variables configuration in .NET Core
I'm using the .NET Core 1.1 in my API and am struggling with a problem: 1. I need to have two levels of configurations: appsettings.json and environment variables. 2. I want to use the DI for my con...
- Modified
- 28 Feb at 16:55
ASP.NET Core 2 API call is redirected (302)
I'm trying to migrate this project [https://github.com/asadsahi/AspNetCoreSpa](https://github.com/asadsahi/AspNetCoreSpa) from .net core 1.1 to 2.0 but have a problem after a successful login. After ...
- Modified
- 14 Jan at 20:54
Root URL's for ServiceStack and .NET Core 2
I've recently had cause to upgrade a servicestack service from .NET Core 1.1 to .NET Core 2.0. Previously, my root URL was defined in the program class a bit like this... `IWebHost host = new WebH...
- Modified
- 18 Sep at 09:58
How to map nested child object properties in Automapper
I have current map: ``` CreateMap<Article, ArticleModel>() .ForMember(dest => dest.BaseContentItem, opts => opts.MapFrom(src => src.BaseContentItem)) .ForMember(dest => dest.BaseContentItem.T...
- Modified
- 31 Aug at 16:44
How to create .ics file using c#?
[](https://i.stack.imgur.com/cryPd.png)I used below code for creating .ics file but it's not working can any one help me,where its going wrong. ``` System.Text.StringBuilder sbICSFile = new System.Te...
AOP in Dotnet core : Dynamic Proxy with Real Proxy in Dotnet core
I am migrating my application from .Net Framework 4.5.1 to Dot Net Core. I was using [RealProxy](https://msdn.microsoft.com/en-us/library/system.runtime.remoting.proxies.realproxy(v=vs.110).aspx) Cla...
How to manually parse a JSON string in net-core 2.0
I have a json string with the following structure ``` { "resource": "user", "method": "create", "fields": { "name": "John", "surname: "Smith", "email": "john@gmail...
- Modified
- 4 Sep at 03:44
Dictionary with class as Key
I am studying electronic engineering, and I am a beginner in C#. I have measured data and I would like to store it in a 2 dimensional way. I thought I could make a `Dictionary` like this: ``` Dictiona...
- Modified
- 15 Jul at 16:26
MahApps and Property Grid
First of all, great thanks to MahApps. What a cool project! I have an existing application written in WPF that I have applied the MahApps library to. I used this tutorial: [http://mahapps.com/guid...
- Modified
- 7 Sep at 10:11
Dependency injection for generic class
I have a generic class and a generic interface like this: ``` public interface IDataService<T> where T: class { IEnumerable<T> GetAll(); } public class DataService<T> : IDataService<T> where T :...
- Modified
- 3 Sep at 16:46
Use async without await when I don't need response
I want send a SMS from my app. SMS will send when I send a get request to an specific URL. All of my methods are async, but when I instance an `HttpClient` and want to use `response.Content.ReadAsStri...
- Modified
- 3 Sep at 11:18
Fill Ellipse with wave animation
I have created an ellipse in Windows Phone 8.1 Silverlight App and UWP both and I wanted to fill it with animating waves, For this purpose, I am following this [solution](https://stackoverflow.com/que...
- Modified
- 11 Sep at 15:26
Configuration.GetSection always returns Value property null
Every time I call `Configuration.GetSection`, the `Value` property of the returned object is always null. My `Startup` constructor ``` public Startup(IHostingEnvironment env) { var builder = new...
- Modified
- 3 Nov at 21:17
.net core Console application strongly typed Configuration
On an .NET Core Console app, I'm trying to map settings from a custom appsettings.json file into a custom configuration class. I've looked at several resources online but was not able to get the .Bin...
Pass ILogger or ILoggerFactory to constructors in AspNet Core?
The MS docs article ["Introduction to Logging in ASP.NET Core"](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging?tabs=aspnetcore2x#log-category) gives 2 examples of constructor injec...
- Modified
- 26 Jul at 12:15
Writing and Reading excel files in C#
I am writing a program that takes data from a website via selenium web driver. I am trying to create football fixture for our projects. I am so far, I accomplished to take from the website. Also stil...
- Modified
- 2 Sep at 11:11
Protobuf equivalent of JsonHttpClient?
is there an equivalent of the new (-ish) JsonHttpClient that uses protobuf-net instead of JSON ? I realize that the old-style ProtobufServiceClient exists, but I'd like to replace it with something th...
- Modified
- 2 Sep at 02:28
Sending http requests in C# with Unity
How can I send HTTP GET and POST requests in C# with Unity? What I want is: - - - What I've tried: - - - Most problems were with threading, I'm not experienced enough in it in C#. IDE, I use, i...
Cannot get BHO working in 64 bit
I'm working on IE11 Browser Helper Object. I got it working when I build it in x86. The problem is, I want to use the project on x64 the BHO extension isn't working when it's built on x64. The extens...
- Modified
- 4 Sep at 09:19
Identity Server(OAuth2) implementation with integration to legacy systems(Forms Auth, ADFS,AD)
We are currently building a RESTful API(.Net Core, [IdentityServer 4](https://github.com/IdentityServer/IdentityServer4), EF6). We have released an MVP version of it. It also references a WCF servic...
- Modified
- 6 Sep at 12:20
ThenInclude not recognized in EF Core query
My IQueryable looks like this: ``` IQueryable<TEntity> query = context.Set<TEntity>(); query = query.Include("Car").ThenInclude("Model"); ``` > 'IQueryable' does not contain a definition for 'ThenI...
- Modified
- 7 Feb at 17:1
How to get param from url in angular 4?
I'm trying to get startdate from the URL. The URL looks like `http://sitename/booking?startdate=28-08-2017` My code is below: aap.module.ts ``` import {...}; @NgModule({ declarations: [...
- Modified
- 6 Feb at 17:59
Submit a form in vue. How do I reference the form element?
I want to do a classic form submission from my Vue page, from a method. I don't want to use an `<input type="submit">`. How do I reference the form element in the page from my method? Surely I don't h...
- Modified
- 14 Sep at 18:44