.net 4.0
-
IIS6 Change Framework Version without restart of W3SVC service
browse to the location of the folder containing the version of asp_net regiis such as: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 run aspnet_regiis -lk to get the virtual path you will need in the next command. to see which ID matches your website launch IIS… Continue reading
-
Impersonation with Network Credentials in C# .Net
(Mostly) unmodified code, courtesy of Phil Harding (see references below for original post). References http://platinumdogs.wordpress.com/2008/10/30/net-c-impersonation-with-network-credentials/ Continue reading
-
Logon failure: unknown username or bad password
The following error occurred on an application deployed to a Server 2008 machine which was not part of the domain, but on the same network. The application needed to query to domain controller for permissions related to the users browsing… Continue reading
-
aspnet_setreg in Server 2008
The aspnet_setreg utility is very useful for storing encrypted domain credentials, connection strings and other values referenced in a web.config which should not be visible in plaintext. One such technique is when using the .Net “impersonation” mechanism. Typically, this would… Continue reading
-
IIF in C#
I always find myself referencing my other projects for this one when I jump between languages, so decided to toss it on the web. Both examples are in the context of ASP .Net, but syntax also applies np to Winforms… Continue reading
-
Serialize and Deserialize classes and objects in .Net
Serialization is a powerful tool and a major factor in many intermediate development technologies such as webservices. Simply call “SerializeObject” and pass in the class name of your object for the “T” parameters, and your object will be serialized as… Continue reading