Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
Error The algorithm HS256 requires the SecurityKey.KeySize to be greater than 128 bits Net-Framework/ASP_dot_Net-Core/Auth
Error The algorithm HS256 requires the SecurityKey.KeySize to be greater than 128 bits
19.01.2018 13
Error: System ArgumentOutOfRangeException The algorithm: 'HS256' requires the SecurityKey KeySize to be greater than '128' bits The error message occurs when creating a security token for authentication Asp Net Core Wep Api, Identity, Authentication, JWTBearer

Asp WPF: Web API Read Values from Asp Net Api with HttpClient Net-Framework/ASP_dot_Net-Core/API
Asp WPF: Web API Read Values from Asp Net Api with HttpClient
17.01.2018 14
This example shows how to read the values ​​from a web server with API in WPF ASP Net Core Web API is installed on the server (IIS Express Server with SQL Server Express local DB) As desktop program a WPF application is installed

WPF: Set Startup Window Net-Framework/WPF/Code-Samples
WPF: Set Startup Window
17.01.2018 12
Where to put in WPF, with which windows the application should start? Solution: In the file: App xaml in the header is the setting StartupUri = "MainWindow xaml" Here you can change the setting

ASP.Net: create a website with authentication auth Net-Framework/ASP_dot_Net-Core/Auth
ASP.Net: create a website with authentication auth
17.01.2018 20
Start Visual Studio and choose under the menu File-> New-> Project Then in the dialog: New Project at Visual C # -> Net Core -> ASP NET Core Web Application select In the Location field set the directory where the web application will be s

Asp Auth: Account Views Forms Net-Framework/ASP_dot_Net-Core/Auth
Asp Auth: Account Views Forms
17.01.2018 12
The following view forms are set with the standard installation of Asp Net Core Authentification, with user-password combination root Account Register Manage Index

ASP: Create web application with authentication Net-Framework/ASP_dot_Net-Core/Auth
ASP: Create web application with authentication
16.01.2018 16
In the Package Manager Console, the command PM> update-database To run This creates the authentication database with the appropriate context description fo

UWP: Selectionbox Usercontrol Net-Framework/UWP-Universal-Windows-Plattform
UWP: Selectionbox Usercontrol
16.01.2018 12
The following code is for building your own text box combination element, with which you can select texts or enter manually You only have to create a subdirectory Usercontrols in the project, create a new usercontrol and insert the following code there

C #: find value in a dictionary and compare Net-Framework/c_hash_/Code-Examples
C #: find value in a dictionary and compare
16.01.2018 15
How do you find a value in a dictionary in C #? A dictionary consists of key-value elements, that is, there are always pair entries with a key and a value such as Settings are for example a dictionary The dictionary offers as a simple

Settings: Save List Array in Settings Net-Framework/UWP-Universal-Windows-Plattform/Basics/UWP-Settings
Settings: Save List Array in Settings
15.01.2018 22
The type List can not be saved directly in the settings because a list is not serializable That's why I use a list here and save it in a Settings container In settings containers, values can be grouped together This example shows how

UWP: List as sortable text array Net-Framework/UWP-Universal-Windows-Plattform/UWP-Code
UWP: List as sortable text array
15.01.2018 20
With List you can form a simple array of strings or values under UWP List list_Test = new

XAML: The name UserControl does not exist in the namespace Net-Framework/UWP-Universal-Windows-Plattform/XAML
XAML: The name UserControl does not exist in the namespace
12.01.2018 21
Description: when adding a new UserControl the following error is displayed in the Mainpage: Error message: The name "UcSelection" does not exist in the namespace "using:Rename_Images_Vi

UWP: Textchanged with Enter Enter Net-Framework/UWP-Universal-Windows-Plattform/UWP-Controls/Textbox
UWP: Textchanged with Enter Enter
12.01.2018 18
Under UWP Universal Windows Platform applications, the _TextChanged event always fires whenever the textbox or input fields change In Windows desktop applications, this was only possible after completion of the entire input with Enter or Tabulator

ASP.Net: A database operation failed while processing the request. Net-Framework/ASP_dot_Net-Core/Errors
ASP.Net: A database operation failed while processing the request.
11.01.2018 22
The first time an Asp Net MVC Core 2 application with Authentication is called, the error occurs: A database operation failed while processing the request

API: Data Modify and Create with Api Example Net-Framework/ASP_dot_Net-Core/API
API: Data Modify and Create with Api Example
10.01.2018 24
With API interfaces, clients such as smartphones, desktop programs or IoT devices can exchange data with an Internet server Api corresponds to the so-called REST interface on the Internet, where data is exchanged with HttpGet, HttpPut and HttpPost

API error: Could not get any response Net-Framework/ASP_dot_Net-Core/Errors
API error: Could not get any response
10.01.2018 27
When executing the API request to an ASP Net application, the feedback comes in the API client: Could not get any response This seems to be like an error connecting to

Problem ASP.Net: ID is increased by 1000 Net-Framework/ASP_dot_Net-Core/API
Problem ASP.Net: ID is increased by 1000
10.01.2018 18
Error Description: When entering new records via an API in ASP Net Core MVC, it may happen that the ID is not increased by 1 as specified, but increased by 1000 Reason: It may be that the incoming record has a weigh

Postman: Check API Controller with Chrome Extension Net-Framework/ASP_dot_Net-Core/Tools
Postman: Check API Controller with Chrome Extension
09.01.2018 29
To check the data of the API interface, you now have direct access via the URL Api Instead of the address in the browser localhost: 51081 Projects to enter for the website in the browser, Now give the URL localh

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de