IIS Manager missing in IIS 7 on Windows Server 2008

I recently installed an evaluation version of Windows Server 2008 (web edition) for some research thingy. So in order to use IIS, I added web server role using server manager wizard. Normally I would expect to see IIS Manager, so I can configure IIS for further use but I don&…

AppDomain.CurrentDomain.SetupInformation for .NET application using C#

AppDomain.CurrentDomain.SetupInformation property provides some general information about the currently executing assembly. This can provide more information about the assembly binding information for current instance of AppDomain used. Above property results instance of type AppDomainSetup class. Few properties you may find interesting about the currently executing assembly are as…

Use UTF-8 encoding for StringWriter in C#

All .NET string is in Unicode (UTF-16) encoding format. So when you are using StringWriter to create your XML it will use UTF-16 encoding. Example when creating XML : var serializer = new XmlSerializer(yourModel.GetType(), string.Empty); var stringBuilder = new StringBuilder(); using (var stringWriter = new StringWriter()) { serializer.Serialize(stringWriter, yourModel); stringBuilder.…

Monitoring data change using SqlDependency and C#

What is SqlDependency? As the word describes itself, it is used to notify your application or user when certain criteria or condition is satisfied. This condition (query in technical terms) is provided to SQL notification service to be observed upon and ask to be notified when the condition is met…