The reason behind the "Cannot implicitly convert type System.Threading.Tasks.Task to XXX"
A quick article this time about an error message in C# when dealing with asynchronous code calls.
Read the complete articleA quick article this time about an error message in C# when dealing with asynchronous code calls.
Read the complete articleI wanted to split my blog into two separate blogs, one for my technology articles and one for everyday tips and tricks, so I searched for a way to do that on my Jekyll website which is hosted on a Git Page on GitHub.
Unfortunately Git Pages do not support the version 2.0 of the jekyll paginate plugin which would allow me to split the posts into Categories and iterate on each blog over a specific category.
Here are the steps I followed to solve this problem:
Read the complete articleWhen dealing with ASP.NET MVC you might use hidden fields to pass values of model properties from the view to an action of a controller. So you will find yourself writing something like that in your view:
Read the complete articleWe are dealing here with a security risk for your .NET Core application. Suppose you are having the following MVC model in your .NET application and the user can edit in a UI-form her Firstname and Lastname. The property Age cannot be edited on the form. The business logic tells us that it will be filled later. However, the user, with the help of simple tools such as Postman or Google console debugger can edit the Age property. Let us see how we can block such actions.
Read the complete articleWhen running unit-tets you will often want to read data from .txt or .xml files. On the runtime, these files have to be copied to the TestResults folder. By choosing Copy to Output Directory: Copy always
or Build Action: embedded Resource
for these files will not help and the file is not found when the unit-test runs.