Month: March 2010

VS.NET: Cannot implicitly convert type ‘SomeType[]’ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’

There seems to be a known bug / issue in Visual Studio 2010 RC when dealing with Service References (to a WCF Service). The Collection Type of the Service Reference is set to custom and you start getting compilation errors like: Cannot implicitly convert type ‘SomeType[]’ to ‘System.Collections.ObjectModel.ObservableCollection<[Namespace].SomeType>’   …


Netsh AdvFirewall: Manage Windows Firewall using NetShell

Ok, this one’s about managing your Windows Firewall with Advanced Security (WFAS). Today, most companies disable the Windows Firewall. Why? i think this has several reasons. One reason probably is that they think the LAN is safe and there is no need for a Firewall – negligent! Other reasons might be: laziness, missing understanding /…

Microsoft Exchange 2007 / 2010 – Statistics using Exchange Management Shell (EMS)

Using Microsoft Exchange 2007 / 2010 Management Shell (PowerShell with extensions), you can pull out some very exciting statistics. That was never that easy in the pre Exchange 2007 era….

PowerShell: Creating large dummy files with .NET

Ok, this one’s is cool i think. Whenever i needed a large dummy file, i opened up notepad, write ASDFASDFASDFA CTRL-A, CTRL-C, CTRL-V,CTRL-V,CTRL-V,CTRL-V. CTRL-A, CTRL-C, CTRL-V,CTRL-V,CTRL-V,CTRL-V,CTRL-V.. Then i saved the file, opened up a CMD-Shell and wrote copy dummyFile.txt+dummyFile.txt+dummyFile.txt until the file was large enough.. ok, there’s fsutil.exe which does the same in a much…

WCF: Configuring HTTP / HTTPS to host a System.ServiceModel WCF Service

Using Windows Communication Foundation (WCF) over HTTP either requires the use of a host, such as Internet Information Services (IIS), or manual configuration of the HTTP settings through the HTTP Server API. This post describes how to manually configure WCF when using HTTP and HTTPS….

PowerShell: Running PowerShell Scripts as Scheduled Task

Schtasks.exe – Enables an administrator to create, delete, query, change, run, and end scheduled tasks on a local or remote computer. Running Schtasks.exe without arguments displays the status and next run time for each registered task. If you have jobs that need to execute regularly, you can manage them with a PowerShell script and make…