Monday, November 30, 2009

MeasureUp FAIL

I’m currently studying for the 70-536 on my way towards MCTS certification.

I have the self-paced training kit and thought I’d do the Training Kit Exam Prep “Powered by MeasureUp”

Things go without technical issues until I get to scoring.

Then I am greeted with:

---------------------------
Application Message
---------------------------
An unanticipated error has occurred in the application.InsertScoreHistory

[Microsoft OLE DB Provider for ODBC Drivers] [3604] [Microsoft][ODBC Microsoft Access Driver] Syntax error in date in query expression '#30.11.2009 21:51:40#'.
---------------------------
OK   Cancel  
---------------------------

Trying to review a particular answer fails with:

---------------------------
Application Message
---------------------------
An unanticipated error has occurred in the application.GoToQuestionSelected

[Microsoft.VisualBasic] [13] Conversion from string "7." to type 'Short' is not valid.
---------------------------
OK   Cancel  
---------------------------

I then eventually end up at the FAQ page at MeasureUp and find

I'm receiving Error: Mismatch 13.
In order for tests to display correctly, your computer's regional settings should be set to English (United States).

In the control panel, please double click on the icon labeled Regional Settings. Please choose English (United States), and click the box that says "use default properties for this input locale."

Alternatively, in the regional settings, look at the Currency tab. If it is set the decimal symbol to . (dot) instead of , (coma), that may be enough to get it working properly.

If the trouble persists, try setting the keyboard language layout to English (United States). In the control panel, double click on the icon labeled "Keyboard". Then click on the tab labeled input locales. Select the Add button. And then choose English (United States) as the input locale.

W T F !?!

It’s kinda ironic that one of the skills measured is “Implementing globalization, … in a .NET Framework application”

What’s even more tragic is that if I actually DO change to en-us, trying to start a new test fails, this time with:

---------------------------
Application Message
---------------------------
An unanticipated error has occurred in the application.PreviousSessionTestRecord

[Microsoft.VisualBasic] [13] Conversion from string "30.11.2009 21:58:26" to type 'Date' is not valid.
---------------------------
OK   Cancel  
---------------------------

Tuesday, November 10, 2009

roleProvider app.config parsing troubles

I recently had the pleasure of trying to get our RC out the door, while doing that we realized that for whatever reason, Microsoft seems to use a non-standard parser for the app.config file.

Basically this does not work:

<system.web>
  <
roleManager defaultProvider="MyCustomProvider" enabled="true">
    <
providers>
      <
clear></clear>
      <
add name="MyCustomProvider" type="Namespace.MyCustomProvider, MyAssembly"/>
    </
providers>
  </
roleManager>
</
system.web>

While this does:

<system.web>
  <
roleManager defaultProvider="MyCustomProvider" enabled="true">
    <
providers>
      <
clear/>
      <
add name="MyCustomProvider" type="Namespace.MyCustomProvider, MyAssembly"/>
    </
providers>
  </
roleManager>
</
system.web>

Of course, the well known commercial installer making tool we are using insists of creating the former… :(

A workaround is to throw the file through an identity XSLT transform in a custom tool / custom action run after custom actions from said vendor have done their job.

Oh, the bug reported on connect is already closed as Won’t Fix