# Monday, February 22, 2010

Users who are new to .NET web development keep asking asking questions about CSWorks installation errors related to IIS and ASP.NET, here are some of them:

Cannot connect to Internet Information Server. (-2147221164)

IIS (Internet Information Services) version 5 or higher must be installed

IIS (Internet Information Services) version 7 or higher and IIS 6 Management Compatibility (appcmd.exe) must be installed

All these messages signal about the same thing: IIS/ASP.NET is not working properly on this machine. Please follow the steps below to install IIS/ASP.NET on your machine

Windows 7, Windows Server 2008, Vista

I will describe the process for Windows Server 2008. Windows 7 interface is very similar, Vista interface is slightly different, but names and descriptions are pretty much the same.

In "Programs and Features", click on "Turn Windows features on or off". See screenshot.

Add Web Server Role if needed, and click on it to configure. See screenshot.

Select all Web Server role service required for ASP.NET application hosting as on the screenshot below. Please pay special attention to the "Application Development" and "Management Tools" sections. See W2K8 screenshot , or Windows 7 screenshot.

You may need to enable ASP.NET ISAPI extension manually. Find "ISAPI and CGI Restrictions" under IIS properties (see screenshot), and enable ASP.NET extensions (see screenshot).

Windows XP

Go to Settings -> Control Panel ->Add or Remove Programs -> Add/Remove Windows Components. Select "Internet Information Services", and select required components - see screenshot.

Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and run aspnet_regiis -i and aspnet_regiis -c.

Go to My Computer -> Manage -> Services and Applications -> Internet Information Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site properties so it uses ASP.NET 2.0. See screenshot.

Update: starting from CSWorks 1.4.3820, choose ASP.NET 4.0 in this drop-down.

Windows Server 2003

Go to Settings -> Control Panel ->Add or Remove Programs -> Add/Remove Windows Components. Select "Internet Information Services", and select required components - see screenshot.

Navigate to your Microsoft .NET windows directory which is usually C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and run aspnet_regiis -i and aspnet_regiis -c.

Go to My Computer -> Manage -> Services and Applications -> Internet Information Services, Select "Default Web Site", right-click on it and modify ASP.NET tab of site properties so it uses ASP.NET 2.0. See screenshot.

Update: starting from CSWorks 1.4.3820, choose ASP.NET 4.0 in this drop-down.

Select "Web Service Extension" node of local IIS server and enable ASP.NET v2.0 extension.See screenshot.

Sergey Sorokin   Monday, February 22, 2010 9:33:43 AM (Pacific Standard Time, UTC-08:00)  #     |  Comments [0]  | 
# Thursday, February 18, 2010

What's new:

  • Trend Control and Trend Demo
  • Breaking change in history database format: LastValue observations
  • Multiple Historical Data improvements
  • Historical Data documentation
Sergey Sorokin   Thursday, February 18, 2010 9:23:49 AM (Pacific Standard Time, UTC-08:00)  #     |  Comments [0]  | 
# Monday, January 11, 2010

What's new:

  • Historical Data Support
Sergey Sorokin   Monday, January 11, 2010 11:33:39 AM (Pacific Standard Time, UTC-08:00)  #     |  Comments [0]  | 
# Saturday, October 31, 2009

What's new:

  • Documentation added
  • Improved data source error handling
  • Breaking changes in client framework: web service config files
  • Alarm Agent samples
Sergey Sorokin   Saturday, October 31, 2009 2:00:49 PM (Pacific Standard Time, UTC-08:00)  #     |  Comments [0]  | 
# Friday, October 09, 2009

What's new:

  • Breaking changes in client framework (PlainDoubleDisplay instead of PlainNumericDisplay)
  • 64-bit OS support
  • Non-English OS Support
  • No more third-party OPC servers in the demo
  • No more emulator service in the demo
Sergey Sorokin   Friday, October 09, 2009 12:14:31 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  | 
# Monday, September 28, 2009

While working on one of my projects, I had to make WCF run over a farm of load-balanced message queues. After several days of web search, asking questions and coding I have come up with the following "Step-by step guide for setting up certificate security for WCF over MSMQ communication".

The goal is to implement a secured WCF communication based on MSMQ under the following requirements/assumptions/recommendations.

  • All MSMQ traffic must be encrypted and signed.
  • No involvement of Windows Domain security and Active Directory.
  • No code changes required on the client or on the server side.
  • MSMQ version 4.0 (W2K8) is used, but it would be nice to have a solution that works on MSMQ 3.0 (W2K3) as well.
  • There must be a well-established and straightforward routine for setting up secured communication that can be followed during test/staging/production deployment.

The weapon of choice is message-based certificate security. To put it simple, it means two things:

  • all security-related activities happen on WCF level, MSMQ engine works only as a transport;
  • certificate keys are stored on client and server machines.
  • Read on...

    msmq | security | wcf
    Sergey Sorokin   Monday, September 28, 2009 9:52:32 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  | 
    # Sunday, September 13, 2009

    What's new:

    • Breaking changes in DataManager (DataItem collection)
    • Microsoft Excel 2007 sample (SOAP Web Service)
    • No more third-party OPC RCWs
    Sergey Sorokin   Sunday, September 13, 2009 10:01:12 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  | 
    # Wednesday, September 09, 2009

    What's new:

    • Added LiveData Agent examples (WCF, SOAP, Multiplexor)
    • Added "caseSensitive" setting to OPC LiveData Provider
    • SQL LiveData Provider now supports ODBC data sources
    Sergey Sorokin   Wednesday, September 09, 2009 10:11:53 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  | 
    # Tuesday, August 18, 2009

    What's new:

    • Fixed a bug in SerializablePairList that messed up template parameter transfer
    • Added SQL LiveData Provider, tested with SQLite and MS SQL Server
    • No more third party TreeView control in alarm summary
    • Added support for integer data items on the client
    • Added support for all major .NET integer data types
    Sergey Sorokin   Tuesday, August 18, 2009 8:30:35 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  | 
    # Friday, July 31, 2009

    What's new:

    • Silverlight 3 support
    • Fixed a bug in LiveData Emulator that misinterpreted data writes
    Sergey Sorokin   Friday, July 31, 2009 10:43:48 PM (Pacific Daylight Time, UTC-07:00)  #     |  Comments [0]  |