<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>System Center WebLog by Russ Slaten : MOM 2005</title><link>http://blogs.msdn.com/rslaten/archive/tags/MOM+2005/default.aspx</link><description>Tags: MOM 2005</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MOM 2005 MCF throws an exception when UpdateAlerts() is called</title><link>http://blogs.msdn.com/rslaten/archive/2007/11/08/mom-2005-mcf-throws-an-exception-when-updatealerts-is-called.aspx</link><pubDate>Thu, 08 Nov 2007 19:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5989673</guid><dc:creator>rslaten</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/rslaten/comments/5989673.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rslaten/commentrss.aspx?PostID=5989673</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rslaten/rsscomments.aspx?PostID=5989673</wfw:comment><description>&lt;P&gt;After calling UpdateAlerts() an exception is returned: "Value does not fall within the expected range". DBGView will show the following output: &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"&gt;[4680] [E] 04680.01796, (cdasmomconnectorframework.cpp::2114) Could not decode unknown vartype 36 ! &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"&gt;[4680] [E] 04680.01796, (cdasmomconnectorframework.cpp::2045) Could not decode unknown vartype 36 ! &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"&gt;[4680] [E] 04680.01796, (cdasmomconnectorframework.cpp::1991) Could not determine ADO type or typeLength for [0][0] Param Name is @AlertId and VARTYPE is 36 [hr=0x80070057]! &lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 7pt; FONT-FAMILY: Arial"&gt;[4680] [E] 04680.01796, (cdasmomconnectorframework.cpp::1342) AppendParamsFromSafeArray() failed for AlertHistory # 0 [hr=0x80070057] ! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This error occurred for a customer after compiling their custom application in Visual Studio 2005. This did not happen when it was compiled with Visual Studio 2003. It turns out that the MCF isn't designed to work with the .NET 2.0 runtime. The solution here is to compile the application in VS 2003 or us MSBee (&lt;A href="http://www.codeplex.com/MSBee" mce_href="http://www.codeplex.com/MSBee"&gt;http://www.codeplex.com/MSBee&lt;/A&gt;) to force the use of the .NET 1.1 runtime.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5989673" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rslaten/archive/tags/MOM+2005/default.aspx">MOM 2005</category></item><item><title>In MOM 2005, TimeOfFirstEvent and TimeOfLastEvent are set to 12/30/1899</title><link>http://blogs.msdn.com/rslaten/archive/2007/09/19/mom2005-timeoffirstevent-and-timeoflastevent-are-set-to-12-30-1899.aspx</link><pubDate>Wed, 19 Sep 2007 21:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4999541</guid><dc:creator>rslaten</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/rslaten/comments/4999541.aspx</comments><wfw:commentRss>http://blogs.msdn.com/rslaten/commentrss.aspx?PostID=4999541</wfw:commentRss><wfw:comment>http://blogs.msdn.com/rslaten/rsscomments.aspx?PostID=4999541</wfw:comment><description>I recently had a customer ask me why the TimeOfFirstEvent and TimeOfLastEvent fields in an alert get set to 12/30/1899 when their custom application, which uses the MOM Connector Framework (MCF), uses UpdateAlerts() to set the resolution state of an alert.&amp;nbsp; I did some research and found that SQL Profiler actually shows this old date being passed to the MCF_DoAddPendingAlertUpdate stored procedure.&amp;nbsp; After doing a code review and review of the SDK I noticed that this will occur if you don't specifically&amp;nbsp;set a value&amp;nbsp;for TimeOfFirstEvent and TimeOfLastEvent and/or you don't flip the boolean bit on TimeOfLastEventUseExisting and TimeOfFirstEventUseExisting.&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4999541" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/rslaten/archive/tags/MOM+2005/default.aspx">MOM 2005</category></item></channel></rss>