Close

Http 500 Service could not be activated

I’d like to share the solution to an issue that I’ve been searching for almost a day. I had a working logic app that suddenly returned the following error: The requested service, ‘https://…/Service.svc’ could not be activated. See the server’s diagnostic trace logs for more information. The information on the server error was very scarce.…

Authorizing REST service using an API key

It’s quite common to use an API key as a means to authorize a REST service. The first step is to add a message handler in the Application_Start event of Global.asax: protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); GlobalConfiguration.Configuration.MessageHandlers.Add(new AuthorizationHeaderHandler()); } The AuthorizationHandler.cs file is contained in the App_Start folder. On initialization the apiKey and apiKeyEnabled setting…

Cannot use WebDeploy 3.6 on IIS 10.0

I am using IIS 10.0 on Windows Server 2016. I found that option Deploy -> “Export Web Application” (when you right-click a web application in IIS) was missing. The reason for this is, that there have been some security related changes to web deploy. Before downloading and installing web deploy 3.6, you will have to…

Client certificate by example

I never really dealt with client certificate validation. Therefore I try to explain in this post how to order and install a client certificate for use in BizTalk. In this case the client certificate was needed by a housing corporation named Stadgenoot. The client certificate was not requested by Stadgenoot, but by a trading partner…

WCF Authenticate Preemptively

Normally when you send a request to a service that uses basic authenication, you will initially send a service request without authorization header. The service will respond with a Http 500 error and will send the client an authentication request. This all happens automatically. The client will send the service request again. This time an…

Host WCF service in Azure

It’s possible to host a WCF service in Azure. Add a service reference to your WCF Service in a class library or another test project. Open the reference till you find file Reference.cs. Copy this file to a safe location Create a class library for the data contracts. Copy the data contracts from the Reference.cs…

SoapUI failed to add project

If you get an error when adding a new SOAP project in SoapUI, it’s best to try and open the wsdl in a browser first. That way you can see the errors related to the wsdl file. Don’t forget to set customErrors to Off in the web.config file. <system.web> <customErrors mode=”Off” /> </system.web> You can…