Galin Iliev's blog

Software Architecture & Development

MS Operations Manager on Windows Server 2008

logo-header-sc-operationsmanager-dg Today I’ve installed System Center Operations Manager 2007 and run into an issue with WebConsole. When started it gave me error 402. Access Denied – the yellow screen of death for ASP.NET applications. Luckily it was very easy to fix – with a single option change in IIS Manager:

Just Windows Authentication should be enabled.

image

 

image Note: In order to install Operations Manager 2007 WebConsole and pass prerequisites check IIS 6 Management compatibility should be installed:

Hope this helps

Code coverage on (external) WCF Service

This is not very wide known feature in Visual Studio that has been there even in version 2005 but still there are not many articles on it.

When you try to get code coverage from functional tests then the default UI features in VS won’t help. This is because code coverage is measured only on referenced assemblies (from what I was able to understand). The steps below actually describe the process of collecting code coverage data.

In order collect code coverage information on service – could be remotely hosted WCF service, or local WCF service but hit through endpoint – following steps should be executed:

1. Instrument the assemblies – did you think that code coverage is that simple :). VsInstr.exe is the tool for that.

   1: VsInstr.exe /coverage wcfService.dll

2. Deploy assemblies – This step means actually installing deployed instrumented assemblies on the IIS. On other side default WcfSvcHost.exe also can be used:

 WcfSvcHost.exe" /service:%cd%\WcfService.dll /config:%cd%\WcfService.dll.config

3. Start VS monitor that collects data  -this is separate tool - VSPerfCmd.exe.  Sample usage is

VSPerfCmd.exe /start:coverage /output:”C:\CoverageData.coverage” /cs

4. Run your tests that hit the service.

5. Stop the monitor.

 VSPerfCmd.exe /shutdown

6. Open c:\CodeCoverageData.coverage in VS

Hope this helps…

Ops. Almost forgot. I wasn’t able to make it work on x64 bit machine. For this purpose I had to use x86 version of .. Windows, of course :) !

Here are some useful links:

Office 2010 – office in the web

“Office 2010” will be official name of Office 14 and will be ready in “the first half of next year”.

Office 2010 — previously known by the code name "Office 14" — will include slimmed-down versions of Word, Excel, PowerPoint and OneNote that let people create and edit documents in a Web browser. Consumers will have access to a free, ad-supported version, and Capossela said the company is still hammering out what to charge businesses that want a version without ads.

source MSNBC

What’s changed in Windows Server 2008 R2

TechNet has a list of changes that will be released in Windows Server 2008 R2:

  • What's New in Active Directory Certificate Services
  • What's New in Active Directory Domain Services
  • What's New in AppLocker
  • What's New in Biometrics
  • What's New in DNS
  • What's New in Failover Clusters
  • What's New in Group Policy
  • What's New in Hyper-V
  • What's New in Network Access Protection
  • What's New in Network Policy Server (NPS)
  • What's New in Networking
  • What's New in Remote Desktop Services
  • What's New in Server Manager
  • What's New in Service Accounts
  • What's New in Smart Cards
  • What's New in User Account Control
  • What's New in the Web Server (IIS) Role
  • What's New in Windows PowerShell
  • What's New in Windows PowerShell Cmdlets for Roles and Features
  • What's New in Windows Search, Browse, and Organization
  • What's New in Windows Security Auditing
  • WCF vs. UFC

    There are too many acronyms in today’s worlds so let me help you understand these two:

    • WCF –Windows Communication Foundation
    • UFC - Ultimate Fighting Championship

    You might started to think how these two are related?!

    Well they are not :). But I find some analogy between the martial arts events and the new initiative to popularize .NET platform for enterprise programming – WCF called WCF Champ Web Campaign.

     
    (photo courtesy
    Flickr). This is the pretty face of UFC.

    Developing web services old-fashioned way could be as cruel. Evidence can be seen on official website of WCF Champ Web Campaign as well as on YouTube in Hi Definition format.

    WCF Champ Web Campaign website offers great links to resources for jumpstart with this great framework. The resources are grouped in several categories describing why WCF can be of great use for:

    • Individual Developer
    • Enterprise  
    • Web
    • and what the future look

    Take a look at WCF Champ Web Campaign website. It’s fun and useful.

    Note: The analogy between WCF and UFC is done only for fun and shouldn’t be considered in any other way.