.NET MVC – Illegal characters in path

ScenarioRender a ASP.NET MVC Razor view with a model from the controller. Error / ExceptionSystem.ArgumentException: Illegal characters in path. CauseThe model from the controller was returning JSON and the view had declared “@model string” to handle the JSON. SolutionUpdates in…

Error when reading from PFX certificate SSL/TLS

Case Establish a secure connection to a server. Authentication with certificate. Error message The request was aborted: Could not create SSL/TLS secure channel. Start Microsoft Management Console, either from control panel or by run command “mmc”. In MMC select File…

Problems connecting to WCF service

Trying to connect to a WCF-service but get some error messages: The HTTP request is unauthorized with client authentication scheme Anonymous The authentication header received from the server was Basic The provided URI scheme https is invalid expected http The…

Insert default value SQL primary key

I have a table in Microsoft SQL Server where insert or updates isn’t possible. Table is only responsible to increment a unique id. The table looks like this: CREATE TABLE [dbo].[CustomerOrderNumbers]( [customerOrderNumberId] [int] IDENTITY(1,1) NOT NULL, [createdOn] [datetime] NOT NULL,…

Cordova build APK – Package damaged

I tried to build an APK (Android) in Cordova, build is successful so far so good! When transferring the file to my mobile I got error message during install “Installation is not possible, package is damaged”. I created a new…

Use only Swedish servers in tor browser

If you want to use only Swedish servers in Tor browser (or any other country) to connect on you can do it like this: 1. Open the file “torrc” at “Tor Browser\Browser\TorBrowser\Data\Tor\”. 2. Add line “ExitNodes {countryCode}”. You can use…

Export PFX file from CRT/CER/P7B

Certificate handling. If you want to export a PFX file from a .CRT, .CER or .P7B file, follow these steps: 1. Install Windows 10 SDK (). 2. Navigate to folder: C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64. 3. Start “certmgr.exe”. 4. In the window…