Category Archives: Development

Dotnet development

ApplicationPool creation in Metabase with Csharp

In our project we create IIS application pools from code. For this we connect to the metabase with DirectoryEntry. This is COM and the exceptions are ridiculous somewhat cryptic. Below is code to create an Application Pool. The comments describe … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Basic Authentication on the Mono framework

Use the NetworkCredential constructor with username and password as strings. The SecureString constructor resulted in a request without the password in the Authorization header.

Posted in Development | Tagged , , , | Leave a comment

Remote Debugging to Azure VM

Add Remote Debugging tools setup to your automation script and use point-to-site VPN to do remote debugging. Continue reading

Posted in Development | Tagged , , , | Leave a comment

Azure VM on Virtual Network

Create a Virtual Network and use it when creating new Virtual Machines in Windows Azure so they can find each other. Continue reading

Posted in Development | Tagged , | Leave a comment

Disable viewstate on IIS 7.5

Remove the viewstate with javascript to allow post to other page without viewstate in IIS 7.5. This avoids the “Validation of viewstate MAC failed” exception. Continue reading

Posted in Development | Tagged , , , , , | Leave a comment