Archive for September, 2012

How to enable IE 9 compatibility mode for your website

September 28, 2012 3 comments

For each major release IE gains new features and brings its support to industry standards more closely. However it also increases risk that older websites may not display correctly.

As a matter of fact, playing with IE 10 Developer Preview we noticed some rendering errors on our documentation web pages. We fixed it using the compatibility mode feature introduced by IE 8. With the upcoming release of IE 10 many customer sites will fall into the same kind of problem so here is how to fix it:

We need to force the client browser to use the Compatibility View when they visit our site. This is done either at the webpage level by adding the following meta tag to the header of each webpage you want to use compatibility mode:

  <!-- Mimic Internet Explorer 9 -->
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
  <title>My webpage</title>


or at the folder level by adding the following header to each Web.config file of each web directory you want to use compatibility mode:

<?xml version="1.0" encoding="utf-8"?>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE9" />


or at the website level by implementing the META Switch directly on IIS as follow:

To configure IIS 7 on a Windows Server 2008-based computer to include a custom HTTP response header:

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. In the connections pane, expand the node for the server, and then expand .
  3. Click the Web site where you want to add the custom HTTP response header.
  4. In the Web site pane, double-click in the section.
  5. Under Actions, click Add.
  6. In the Name box, type X-UA-Compatible.
  7. In the Value box, type IE=EmulateIE9.
  8. Click OK.

To configure IIS 6 and earlier versions to include a custom HTTP response header:

  1. Click Start, click Run, type inetmgr.exe, and then click OK.
  2. Expand the server you want and then expand Web Sites.
  3. Right-click the Web site you want and then click Properties.
  4. Click the HTTP Headers tab.
  5. Under Custom HTTP headers, click Add.
  6. In the Custom header name box, type X-UA-Compatible.
  7. In the Custom header value box, typeIE=EmulateIE9.
  8. Click OK two times.

Note that all other browsers will simply ignore this custom HTTP Header. Also note that the compatibility mode set a the website level using your Web server can be overridden by setting a different compatibility mode at the web page level.

You can find more information here: Defining Document Compatibility.

Hope this helps.

Thibault NESTOR

September 26th 2012 Links: Visual Studio, Windows, SharePoint 2013, .NET 4.5, Roslyn, eBooks

September 26, 2012 Leave a comment

Here is our new entry in our link-listing series:


Visual Studio

Visual Studio 2012 released to the web

Visual Studio 2012 is available for download!


Windows 8

Windows 8 RTM is available for developers

Microsoft gives Windows 8 early access builds for developers.


Microsoft finally comes clean(er) on post-Metro naming plans

Microsoft is discontinuing its use of the term “Metro” used to describe the tiled user interface in Windows Phone and Windows 8. Its new name might be ‘Windows Store’.


Windows Server 2012

Windows Server 2012 is available

Windows Server 2012 is available!


SharePoint 2013

What’s Coming in SharePoint 2013

An updated user experience, some upgrades and I/O performance improvements, collaboration and social networking capabilities, better tagging, SkyDrive Pro replacing SharePoint workspaces and so on.



Announcing the release of .NET Framework 4.5 RTM – Product and Source Code

.NET Framework 4.5 is available as well as the reference source code under the Microsoft Reference Source License (MS-RSL). You’ll find improvements brought by this release and some guidelines to debug with the .NET Framework library reference source.


Roslyn September 2012 CTP is now available

Good work in progress!


Free eBooks

Programming Windows Phone 7

Microsoft Office 365: Connect and Collaborate Virtually Anywhere, Anytime

Large collection of Free Microsoft eBooks for you, including: SharePoint, Visual Studio, Windows Phone, Windows 8, Office 365, Office 2010, SQL Server 2012, Azure, and more.

Here is a compilation of a variety of free Microsoft eBooks including: SharePoint 2013, Office 2013, Office 365, Azure, Cloud, Windows Phone and so on. Enjoy!



Thibault Nestor

The CodeFluent Entities Portable Modeler

September 11, 2012 1 comment

CodeFluent Entities has always included out-of-the-box a nifty little tool called the “Portable Modeler”. It’s a standalone CodeFluent Entities modeler application, not dependent on anything but the CodeFluent Entities product binaries. It means it’s not dependent on Visual Studio, but still allows to create, modify and save a CodeFluent Entities model:

It exists as an .exe file located in the installation directory, appropriately named “CodeFluent.Modeler.Portable.exe”. Note the product setup does not install a shortcut on it so you’ll have to create one by yourself, and point to it:

When you run it, it will just display a standard windowed application with Open, Save, etc. menu:

You can start a New CodeFluent Entities project from scratch (“New”), you can import an existing database (“Import”), or open an existing model (“Open”). Note the “Open” command also supports Visual Studio .cfxproj  (the file type of a CodeFluent Entities Model when integrated Visual Studio). If you open an existing CodeFluent Entities model and just see a white panel like this…:

… don’t panic 🙂 It just means there is no design surface defined for this model, and we don’t do this automatically for you (it requires a model change as a design surface is also a CodeFluent Entities model concept, just like the others), so you can add one like this:

Give this new design surface a name (here I chose ‘def’), press ok on the New Surface dialog box, and then you should this something like this (depending on your surface rendering settings, here I’m using the ‘metro’ style):

That’s it! Now you have access to the modeler ribbon we all love (it’s – almost – the same as the one in Visual Studio), there is also a right-click menu, and a property grid. Design surfaces are displayed as a list of Tabs (we can see the ‘Def’ tab above).

Note this tool is not officially supported – beyond a best effort move as usual :-), but very practical for example if you want to give non-developer users the ability to open, view, and possibly change a model, as it does not requires Visual Studio to run. Of course, it lacks some features, notably source control, the cool solution wizards, and a solution explorer-like tree view.

Goodbye SQL-DMO!

September 10, 2012 1 comment

Starting with build 671, SQL-DMO is not longer a requirement for the CodeFluent Entities SQL Server Producer. That’s good news!

We have been relying on SQL-DMO for almost 7 years, and it has served us well. It has been marked as obsolete for something like 5 years or so, but the producer was still relying on it. One of the reasons we kept it for so long was to maintain  compatibility with SQL Server 2000. Now, we don’t support that database either (june 2012).

We have replaced SQL-DMO by a similar technology without any dependency on the newer SQL-SMO (replacement for SQL-DMO) either. This database abstraction technology – our own SMO-like layer – works not only for SQL Server but also for all our supported importers and producers supported databases and modeling systems, namely: SQL Server, Oracle, PostgreSQL, MySQL, SqlLite, Xmi, Enterprise Architect, Access and SqlServerCe. It’s mainly located in the CodeFluent.Runtime.Database.dll assembly that ships with the product and in satellite ones for specific targeted systems (CodeFluent.Runtime.PostgreSQL.dll for PostgreSQL, CodeFluent.Runtime.MySQL.dll for MySQL, etc.).


The R&D team.