<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Montelof&#039;s Blog &#187; error</title>
	<atom:link href="http://montelof.wordpress.com/tag/error/feed/" rel="self" type="application/rss+xml" />
	<link>http://montelof.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 06 Oct 2011 02:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='montelof.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/032e562b7f2d72d4c03951dc283d2d27?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Montelof&#039;s Blog &#187; error</title>
		<link>http://montelof.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://montelof.wordpress.com/osd.xml" title="Montelof&#039;s Blog" />
	<atom:link rel='hub' href='http://montelof.wordpress.com/?pushpress=hub'/>
		<item>
		<title>OCIEnvCreate failed with return code -1 but error message text was not available.</title>
		<link>http://montelof.wordpress.com/2011/03/09/ocienvcreate-failed-with-return-code-1-but-error-message-text-was-not-available/</link>
		<comments>http://montelof.wordpress.com/2011/03/09/ocienvcreate-failed-with-return-code-1-but-error-message-text-was-not-available/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 14:10:27 +0000</pubDate>
		<dc:creator>montelof</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[programing]]></category>

		<guid isPermaLink="false">http://montelof.wordpress.com/2011/03/09/ocienvcreate-failed-with-return-code-1-but-error-message-text-was-not-available/</guid>
		<description><![CDATA[If anyone is getting this error it could be caused for a setting in the project properties: change update Database to False and the error will go away.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=montelof.wordpress.com&#038;blog=7755910&#038;post=172&#038;subd=montelof&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If anyone is getting this error it could be caused for a setting in the project properties:<br />
<a href="http://montelof.files.wordpress.com/2011/03/properties.jpg"><img src="http://montelof.files.wordpress.com/2011/03/properties.jpg?w=300&h=272" alt="" title="properties" width="300" height="272" class="alignnone size-medium wp-image-171" /></a></p>
<p>change update Database to False and the error will go away.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/montelof.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/montelof.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/montelof.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=montelof.wordpress.com&#038;blog=7755910&#038;post=172&#038;subd=montelof&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://montelof.wordpress.com/2011/03/09/ocienvcreate-failed-with-return-code-1-but-error-message-text-was-not-available/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fa60af85bba005898f62ed1aa527ae3?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">montelof</media:title>
		</media:content>

		<media:content url="http://montelof.files.wordpress.com/2011/03/properties.jpg?w=300" medium="image">
			<media:title type="html">properties</media:title>
		</media:content>
	</item>
		<item>
		<title>Error processing response stream. The XML element contains mixed content.</title>
		<link>http://montelof.wordpress.com/2010/09/30/error-processing-response-stream-the-xml-element-contains-mixed-content/</link>
		<comments>http://montelof.wordpress.com/2010/09/30/error-processing-response-stream-the-xml-element-contains-mixed-content/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 21:36:54 +0000</pubDate>
		<dc:creator>montelof</dc:creator>
				<category><![CDATA[Programacion]]></category>
		<category><![CDATA[ado dataservices]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">https://montelof.wordpress.com/2010/09/30/error-processing-response-stream-the-xml-element-contains-mixed-content/</guid>
		<description><![CDATA[Ok, in my last post I explained how to pass an array of values to the Webget method of an Ado DataService as a primitive value (csv), in this post Im going to show how to retrieve a primitive value from a Webget method avoiding the error message above. Lets start with the Dataservice: [WebGet] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=montelof.wordpress.com&#038;blog=7755910&#038;post=137&#038;subd=montelof&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Ok, in my last post I explained how to pass an array of values to the Webget method of an Ado DataService as a primitive value (csv), in this post Im going to show how to retrieve a primitive value from a Webget method avoiding the error message above.</strong></p>
<p><strong>Lets start with the Dataservice:</strong></p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;">[<span style="color:#2b91af;">WebGet</span>] <span style="color:green;">//we are going to return an int </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;color:blue;font-family:&quot;">public</span><span style="font-size:8pt;font-family:&quot;"> <span style="color:#2b91af;">IQueryable</span>&lt;<span style="color:blue;">int</span>&gt; DWTNewDownTime(<span style="color:blue;">int</span> metricArrayID, <span style="color:blue;">string</span> metricDate) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;">{<span>&#160; </span><span style="color:green;">//create the command as we used to do in 1.1 </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">DbCommand</span> cmd = <span style="color:blue;">this</span>.CurrentDataSource.Connection.CreateCommand(); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>cmd.CommandType = <span style="color:#2b91af;">CommandType</span>.StoredProcedure; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:green;">//add the parameters needed for the stored procedure </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">EntityParameter</span> MetricArrayID = <span style="color:blue;">new</span> <span style="color:#2b91af;">EntityParameter</span>(<span style="color:#a31515;">&quot;MetricArrayID&quot;</span>, <span style="color:#2b91af;">DbType</span>.Int16); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>MetricArrayID.Value = metricArrayID; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>cmd.Parameters.Add(MetricArrayID); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">EntityParameter</span> MetricDate = <span style="color:blue;">new</span> <span style="color:#2b91af;">EntityParameter</span>(<span style="color:#a31515;">&quot;MetricDate&quot;</span>, <span style="color:#2b91af;">DbType</span>.String, 50); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>MetricDate.Value = metricDate; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>cmd.Parameters.Add(MetricDate);<span>&#160;&#160;&#160;&#160;&#160;&#160; </span></span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:green;">//add an output parameter, this parameter should be returned as a SELECT not return from the stored procedure </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">EntityParameter</span> Res = <span style="color:blue;">new</span> <span style="color:#2b91af;">EntityParameter</span>(<span style="color:#a31515;">&quot;res&quot;</span>, <span style="color:#2b91af;">DbType</span>.Int16, 20); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>Res.Direction = <span style="color:#2b91af;">ParameterDirection</span>.Output; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>cmd.Parameters.Add(Res); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:green;">//constructs the command text </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>cmd.CommandText = <span style="color:blue;">string</span>.Format(<span style="color:#a31515;">@&quot;{0}.{1}&quot;</span>, <span style="color:blue;">this</span>.CurrentDataSource.DefaultContainerName, <span style="color:#a31515;">&quot;DWTGetMetricValuesNewDownTimeActions&quot;</span>); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:blue;">try </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>{<span style="color:green;">//open connection and execute an scalar </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cmd.Connection.Open(); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cmd.ExecuteScalar(); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>} </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:blue;">catch</span> (System.<span style="color:#2b91af;">Exception</span> ex) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>{ </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">throw</span> <span style="color:blue;">new</span> System.<span style="color:#2b91af;">Exception</span>(ex.InnerException.Message); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>} </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:blue;">finally </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>{<span>&#160;&#160; </span><span style="color:green;">//always close the connection </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>cmd.Connection.Close(); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>}<span style="color:green;">//return the result output value. </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">List</span>&lt;<span style="color:blue;">int</span>&gt; _list = <span style="color:blue;">new</span> <span style="color:#2b91af;">List</span>&lt;<span style="color:blue;">int</span>&gt; { <span style="color:#2b91af;">Convert</span>.ToInt32(Res.Value) }; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:blue;">return</span> _list.AsQueryable(); </span>
</p>
</p>
<p class="MsoNormal"><span style="font-size:8pt;line-height:115%;font-family:&quot;">}</span><span style="font-size:8pt;line-height:115%;"> </span>
</p>
</p>
<p>&#160;</p>
<p><strong>As I mention above the stored procedure should return the output parameter as SELECT.</strong></p>
<p><strong>now lets see the ModelView:</strong></p>
<p>&#160;</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;color:blue;font-family:&quot;">public</span><span style="font-size:8pt;font-family:&quot;"> <span style="color:blue;">void</span> DWTGetMetricValuesNewDownTimeActions(<span style="color:blue;">int</span> metricArrayID, <span style="color:blue;">string</span> metricDate) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;">{<span>&#160;&#160; </span><span style="color:green;">//create a DataserviceQuery as we normally do for other webget methods </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>QryInsertMetric = <span style="color:blue;">this</span>.context.CreateQuery&lt;<span style="color:blue;">int</span>&gt;(<span style="color:#a31515;">&quot;DWTNewDownTime&quot;</span>) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>.AddQueryOption(<span style="color:#a31515;">&quot;MetricArrayID&quot;</span>, metricArrayID) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>.AddQueryOption(<span style="color:#a31515;">&quot;MetricDate&quot;</span>, <span style="color:#a31515;">&quot;&#8217;&quot;</span> + metricDate + <span style="color:#a31515;">&quot;&#8217;&quot;</span>); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:green;">//then create a webclient that will be used to execute the above query </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:#2b91af;">WebClient</span> wc = <span style="color:blue;">new</span> <span style="color:#2b91af;">WebClient</span>(); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>wc.DownloadStringAsync(QryInsertMetric.RequestUri); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>wc.DownloadStringCompleted += (s, e) =&gt; </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>{<span>&#160;&#160; </span><span style="color:green;">//we have to parse the returning XML </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span>&#160;&#160;&#160; </span></span><span lang="ES-MX" style="font-size:8pt;color:#2b91af;font-family:&quot;">XDocument</span><span lang="ES-MX" style="font-size:8pt;font-family:&quot;"> xdoc = <span style="color:#2b91af;">XDocument</span>.Parse(e.Result); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span lang="ES-MX" style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></span><span style="font-size:8pt;font-family:&quot;">MetricValueID = <span style="color:#2b91af;">Convert</span>.ToInt32(xdoc.Root.Descendants(((<span style="color:#2b91af;">XNamespace</span>)<span style="color:#a31515;">@&quot;<a href="http://schemas.microsoft.com/ado/2007/08/dataservices&#038;quot" rel="nofollow">http://schemas.microsoft.com/ado/2007/08/dataservices&#038;quot</a>;</span>) + <span style="color:#a31515;">&quot;element&quot;</span>) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>.Select(xe =&gt; xe.Value).ToList().Single()); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160; </span><span>&#160; </span><span style="color:green;">//fire the property so you can catch it at your silverlight client </span>
</p>
<p>   </span></p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>FirePropertyChanged(<span style="color:#a31515;">&quot;MetricValueID&quot;</span>); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:8pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>}; </span>
</p>
</p>
<p class="MsoNormal"><span style="font-size:8pt;line-height:115%;font-family:&quot;">}</span><span style="font-size:9pt;line-height:115%;"> </span>
</p>
</p>
<p>&#160;</p>
<p><strong>Finally just catch the property change at your client:</strong></p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;color:blue;font-family:&quot;">void</span><span style="font-size:10pt;font-family:&quot;"> Downtimemodel_PropertyChanged(<span style="color:blue;">object</span> sender, System.ComponentModel.<span style="color:#2b91af;">PropertyChangedEventArgs</span> e) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;font-family:&quot;">{ </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span>&#160;&#160;&#160; </span><span style="color:blue;">if</span> (e.PropertyName == <span style="color:#a31515;">&quot;MetricValueID&quot;</span>) </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>{ </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:#2b91af;">Console</span>.WriteLine(Downtimemodel.MetricValueID.ToString()); </span>
</p>
</p>
<p class="MsoNormal" style="margin-bottom:0;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span>&#160;&#160;&#160; </span>}<span>&#160;&#160;&#160; </span></span>
</p>
</p>
<p class="MsoNormal"><span style="font-size:10pt;line-height:115%;font-family:&quot;">}</span></p>
<p> <strong></strong>
<p>and that’s it, I hope this help someone get home early.</p>
<p>some help from <a href="http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/7c71eff7-4951-480f-bbc1-b00046ee788b" target="_blank">Invoking a WebGet throws an exception</a> @ msdn</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/montelof.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/montelof.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/montelof.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=montelof.wordpress.com&#038;blog=7755910&#038;post=137&#038;subd=montelof&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://montelof.wordpress.com/2010/09/30/error-processing-response-stream-the-xml-element-contains-mixed-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fa60af85bba005898f62ed1aa527ae3?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">montelof</media:title>
		</media:content>
	</item>
	</channel>
</rss>
