Category Development

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…

Could not load file or assembly System.Web.WebPages.Razor

Suddenly got the error message when starting a MVC application: Could not load file or assembly ‘System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified. Description: An unhandled exception occurred during the execution…