<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.5.4 (http://www.squarespace.com/) on Fri, 03 Jul 2009 05:42:50 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>David Yack's Blog!</title><link>http://blog.davidyack.com/journal/</link><description></description><copyright></copyright><language>en-US</language><generator>Squarespace Site Server v5.5.4 (http://www.squarespace.com/)</generator><item><title>Snapshot of the Silverlight 4 Wish list</title><dc:creator>David Yack</dc:creator><pubDate>Thu, 02 Jul 2009 04:37:25 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/7/2/snapshot-of-the-silverlight-4-wish-list.html</link><guid isPermaLink="false">154714:1437668:4497047</guid><description><![CDATA[<p>It’s only been about 9 months since Silverlight 2 was <a href="http://weblogs.asp.net/scottgu/archive/2008/10/14/silverlight-2-released.aspx">released</a> in October 2008, we are nearing the release of Silverlight 3, and already the momentum is building for Silverlight 4.&#160; A thread recently has been started on the Silverlight forum to capture people’s wish list.&#160; You can read the full forum thread <a href="http://silverlight.net/forums/p/102856/240186.aspx">here</a> and add on your own wishes.&#160;&#160; </p>  <p>I’m preparing to finish writing part of a chapter that talks about “The Road Ahead” for our soon to be released Silverlight 3 book so I had some help pulling together a summary of what people are asking for already as of today.&#160; The following is just a snapshot but thought you might find it interesting if you didn’t have time to read the long forum list – The top 10 or so on the list all had multiple people requesting those items.</p>  <table border="0" cellspacing="0" cellpadding="0"><tbody>     <tr>       <td width="342">Printing support</td>     </tr>      <tr>       <td>Right-click context menus</td>     </tr>      <tr>       <td>Host HTML content</td>     </tr>      <tr>       <td>Better shaders</td>     </tr>      <tr>       <td>Better mouse support</td>     </tr>      <tr>       <td>Fix WriteableBitmap</td>     </tr>      <tr>       <td>Mic support</td>     </tr>      <tr>       <td>Better LocalMessage APIs</td>     </tr>      <tr>       <td>Better File IO Support</td>     </tr>      <tr>       <td>Full 3D w/GPU acceleration</td>     </tr>      <tr>       <td>WebCam support</td>     </tr>      <tr>       <td>Concurrent release on Linux </td>     </tr>      <tr>       <td>Audio streaming</td>     </tr>      <tr>       <td>Chrome in OOB applications</td>     </tr>      <tr>       <td>Deep linking/Navigation in OOB apps</td>     </tr>      <tr>       <td>Reconsider OOB model</td>     </tr>      <tr>       <td>Export UI as bitmap</td>     </tr>      <tr>       <td>Complete source code for controls</td>     </tr>      <tr>       <td>Better Unit Testing</td>     </tr>      <tr>       <td>Text right to left</td>     </tr>      <tr>       <td>Mobile support</td>     </tr>      <tr>       <td>Better tables (merge columns and such)</td>     </tr>      <tr>       <td>Copy text from a textblock</td>     </tr>      <tr>       <td>Make TCP/IP compatible w/Flash</td>     </tr>      <tr>       <td>SQL reports</td>     </tr>      <tr>       <td>Expose PixelShader.SetStreamSource()</td>     </tr>      <tr>       <td>Improve rendering performance</td>     </tr>      <tr>       <td>Tweening/morphing support</td>     </tr>      <tr>       <td>Intellisense in XAML for Blend</td>     </tr>      <tr>       <td>Animated images</td>     </tr>      <tr>       <td>Pop-up Silverlight windows</td>     </tr>      <tr>       <td>Faster Silverlight windowless mode</td>     </tr>      <tr>       <td>Silverlight as ActiveX control</td>     </tr>      <tr>       <td>Better compression</td>     </tr>      <tr>       <td>Custom Open/Save file dialogs</td>     </tr>      <tr>       <td>Complete DX10 support</td>     </tr>      <tr>       <td>Silverlight apps directly installed OOB</td>     </tr>   </tbody></table>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4497047.xml</wfw:commentRss></item><item><title>RIA Services Domain Data Source Invalid Property Errors</title><dc:creator>David Yack</dc:creator><pubDate>Sun, 28 Jun 2009 00:29:55 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/6/28/ria-services-domain-data-source-invalid-property-errors.html</link><guid isPermaLink="false">154714:1437668:4460218</guid><description><![CDATA[<p>Silverlight 3 has made it a little easier to pin point these types of errors but it can still be complex at times.&#160; One of those times is when the invalid property is on the DomainContext of your .NET RIA Services DomainDataSource control.&#160; You might see it getting this type of AG_E_PARSER_BAD_PROPERTY_VALUE exception.&#160; </p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/RIAServicesDomainDataSourceInvalidProper_10387/?fileId=3454618"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/RIAServicesDomainDataSourceInvalidProper_10387/?fileId=3454619" width="444" height="81" /></a>&#160; </p>  <p>If taking the line number to the XAML file along with the position indicates it’s the DomainContext property that’s where it gets interesting.&#160; I’ve been caught in this trap a few times as I scratch my head trying to figure out why it thinks DomainContext is invalid when I know for sure it is a valid property.&#160; Unfortunately, there’s not an inner exception that you can get more details from so you are kind of stuck! So how do you get more info?&#160; </p>  <p>The quickest way I have&#160; found is simply remove the DomainContext property and set it via the code behind with some quick temporary code.&#160; Then when you run the code in the debugger you will still get the exception but now will get a much clearer message typically than you got before.&#160; In this case I was simply looking for a method that wasn’t exposed so the fix was easy now that I found the problem!</p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/RIAServicesDomainDataSourceInvalidProper_10387/?fileId=3454620"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/RIAServicesDomainDataSourceInvalidProper_10387/?fileId=3454621" width="477" height="81" /></a></p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4460218.xml</wfw:commentRss></item><item><title>First look at Bing.com</title><dc:creator>David Yack</dc:creator><pubDate>Mon, 01 Jun 2009 20:21:01 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/6/1/first-look-at-bingcom.html</link><guid isPermaLink="false">154714:1437668:4161504</guid><description><![CDATA[<p>Today was the first day that Bing.com was open to the public.&#160; In case you didn’t hear Bing.com is the new brand for Microsoft’s search&#160; You can read the press release <a href="http://www.microsoft.com/presspass/press/2009/may09/05-28NewSearchPR.mspx">here</a>.&#160; It will take a while to decide if it’s better than live.com was, or for that matter if it is any better than Google or Yahoo.&#160; My guess is that it will be better in some ways and still lacking in some.&#160; But clearly they have been thinking through more about how the user uses search.&#160; </p>  <p>One quick search comparison that I think quickly highlight how they are going after the “Organized Search Experience” and the “Simplified Tasks and insight” as they put it.&#160; First, I tried searching on my camera – Nikon D200 and here’s what I got for results from Google </p>  <p>&#160;<a href="http://blog.davidyack.com/resource/WindowsLiveWriter/FirstlookatBing.com_C94E/?fileId=3237752"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/FirstlookatBing.com_C94E/?fileId=3237753" width="360" height="284" /></a> </p>  <p>That same search on Bing.com produced the following results</p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/FirstlookatBing.com_C94E/?fileId=3237754"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/FirstlookatBing.com_C94E/?fileId=3237755" width="348" height="292" /></a> </p>  <p>You can see on the left, a list of tasks or actions I can take.&#160; So if I click on Lenses it takes me to search results for Lenses.</p>  <p>Bing.com is clearly a work in progress as some things still say Live or Virtual Earth but rebranding takes time.&#160; I also hope that more work is done on the display of search results to use more of my display.&#160; Currently Google, Bing and Yahoo all only utilize half of my wide screen monitors which is pretty crazy.&#160; Maybe they could all spend some time on new layouts of results for wide screens!</p>  <p>Virtual Earth was also rebranded Bing Maps for Enterprise – more details on that <a href="http://blogs.msdn.com/virtualearth/archive/2009/05/28/rebranding-microsoft-virtual-earth-to.aspx">here</a>.&#160; I’m still a little skeptical on that rebranding, but I will try to keep an open mind!&#160;&#160; I can understand the consumer part of that being rebranded because it was already confusing being called Live Search Maps, but Virtual Earth had enterprise name recognition.</p>  <p>So go try Bing.com and let me know what you think of it!&#160; I think it’s interesting to watch as the search game evolves – I still think there’s room for a lot more innovation that Google, Yahoo and Microsoft just don’t know what it is yet.&#160; It will probably be some small startup that will have the magic invention!</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4161504.xml</wfw:commentRss></item><item><title>Visual Studio 2010 / .NET 4 Training Kit May Preview</title><dc:creator>David Yack</dc:creator><pubDate>Wed, 20 May 2009 15:44:50 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/5/20/visual-studio-2010-net-4-training-kit-may-preview.html</link><guid isPermaLink="false">154714:1437668:4040234</guid><description><![CDATA[<p>Along with the release of the Visual Studio 2010 Beta there is now an updated training kit.&#160; You can download the updated training kit <a href="http://www.microsoft.com/downloads/details.aspx?DisplayLang=en&amp;FamilyID=752cb725-969b-4732-a383-ed5740f02e93">here</a>.</p>  <p>The training kit is has presentations, labs and demos for the following topics </p>  <ul>   <li>C# 4.0 </li>    <li>Visual Basic 10 </li>    <li>F# </li>    <li>Parallel Extensions </li>    <li>Windows Communication Foundation </li>    <li>Windows Workflow </li>    <li>Windows Presentation Foundation </li>    <li>ASP.NET 4 </li>    <li>Entity Framework </li>    <li>ADO.NET Data Services </li>    <li>Managed Extensibility Framework </li>    <li>Visual Studio Team System </li> </ul>  <p>The training kit is a good way to get to know some of the new features of .NET 4 and Visual Studio 2010.</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4040234.xml</wfw:commentRss></item><item><title>Update .NET RIA Services Domain Service from Model</title><dc:creator>David Yack</dc:creator><pubDate>Wed, 20 May 2009 05:36:41 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/5/20/update-net-ria-services-domain-service-from-model.html</link><guid isPermaLink="false">154714:1437668:4038206</guid><description><![CDATA[<p>You might start looking for this option if your working with .NET RIA Services and make a change to your underlying data model and want to reflect it in your .NET RIA Services Domain Service.&#160; This option doesn’t exist but you can accommodate for it not being there with a slight work around.</p>  <p>Using my example, I just added a table X to my database.&#160; I then went to my Entity Framework model and did a “Update Module From Database” and selected my new table to add it to the model.&#160; At this point the most important thing to do before worrying about .NET RIA Services is to save and build your project.&#160; If you fail to do this its likely that when the .NET RIA Services wizard runs it won’t see the change yet.</p>  <p>Next, assuming we already have a Domain Service created let’s call it “MyDomainService&quot; for our example.&#160; You can’t simply right click and say “Update Domain Service and have it see the new Table X we just added.&#160; So the simplest way right now to handle that is to create a new temporary domain service – let’s call it “MyDomainServiceTemp”.&#160; When you see the selection of entities select only the new Table X you just added.&#160; If you are allowing edit make that selection as well as indicate if you want metadata.&#160; The wizard will now generate the files for the new temporary domain service.&#160; Once the code generation is completed, open up the new domain service and copy the methods from the temp file to your real MyDomainServicve file.&#160; You will need to do the same thing for the Metadata file that was generated.&#160; Once you have copied the code from both files, delete the temporary domain service files from your project and build.&#160; At this point you now have added the new Table X to your domain service.</p>  <p>Adding columns is easier, really the only thing you have to deal with if you add a column is to add it to the metadata buddy class.</p>  <p>I’ve already passed along my 2 cents that this should be a right click update model type experience, however, you too should post on the forums that you want it added as well!</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4038206.xml</wfw:commentRss></item><item><title>Suppressing ValidationException During Debugging</title><dc:creator>David Yack</dc:creator><pubDate>Mon, 18 May 2009 08:02:16 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/5/18/suppressing-validationexception-during-debugging.html</link><guid isPermaLink="false">154714:1437668:4012759</guid><description><![CDATA[<p>Validation for Silverlight .NET RIA Services throws a ValidationException if during validation it detects invalid data. </p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126499"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126500" width="213" height="77" /></a> </p>  <p>When your debugging this can cause your debugger to break on the property setter each time a validation error occurs.&#160; </p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126501"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126502" width="422" height="77" /></a> </p>  <p>After 5 or 6 times of getting that exception and having to switch over and continue will drive you crazy.&#160; Yes, Microsoft is aware that throwing an exception for validation isn’t the best plan, but currently that’s the only option for Silverlight.&#160; </p>  <p>You can turn off breaking on this unhandled exception by adding the type to the list of exceptions and unchecking breaking on user-unhandled exceptions of that type.&#160; </p>  <p>Go to the Debug – &gt; Exceptions menu item and click the Add… button on the right side&#160; In the Type select “Common Language Runtime Exceptions” and input System.ComponentModel.DataAnnotations.ValidationException in the Name field.</p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126503"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126504" width="360" height="103" /></a> </p>  <p>After you click OK – you should now see it show up in the list as you do below.</p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126505"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126506" width="386" height="69" /></a> </p>  <p>Uncheck the far right check box “User-Unhandled” and it should look like the following</p>  <p><a href="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126508"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blog.davidyack.com/resource/WindowsLiveWriter/SuppressingValidationExceptionDuringDebu_1C3E/?fileId=3126509" width="397" height="81" /></a> </p>  <p>Now simply click “OK” to save the change and go back to your debugging without the interruptions!</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-4012759.xml</wfw:commentRss></item><item><title>Windows 7 RC Just Around the Corner</title><dc:creator>David Yack</dc:creator><pubDate>Sat, 25 Apr 2009 00:02:59 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/4/25/windows-7-rc-just-around-the-corner.html</link><guid isPermaLink="false">154714:1437668:3791040</guid><description><![CDATA[<p>There have been rumors floating around for a while, but today Microsoft confirmed via the Windows 7 <a href="http://windowsteamblog.com/blogs/windows7/archive/2009/04/24/windows-7-release-candidate-update.aspx">blog</a> that Windows 7 RC is on track for April 30th download on MSDN and public downloads on May 5th.</p>  <p>You can start reading now about some of the changes since the beta <a href="http://blogs.msdn.com/e7/archive/2009/02/26/some-changes-since-beta.aspx">here</a> and <a href="http://blogs.msdn.com/e7/archive/2009/03/13/a-few-more-changes-from-beta-to-rc.aspx">here</a>.</p>  <p>There’s also a good blog post <a href="http://windowsteamblog.com/blogs/windowssecurity/archive/2009/04/21/end-to-end-trust-and-windows-7.aspx">here</a> on the end to end security changes.&#160; One highlight I saw was the right click enable of Bitlocker on a disk volume.</p>  <p>Another good one is on mobile security <a href="http://windowsteamblog.com/blogs/windowssecurity/archive/2009/04/20/windows-7-security-helping-enable-the-mobile-workforce.aspx">here</a> – it talks about how in Windows 7 you will be able to have multiple active firewall policies.&#160; The DirectAccess sounds real interesting I will have to add that to my list of things to research.&#160; DirectAccess basically sounds like it deals with the need to jump on / off VPN to get to server resources like a SharePoint stored file.&#160; BitLocker To Go (sounds like take out food!) is for removable USB drives – I’m hoping this will make it easier to protect the contents without driving me crazy! </p>  <p>Windows 7 will be able to Burn ISO Images Natively which will be nice (details <a href="http://windowsteamblog.com/blogs/windowsexperience/archive/2009/04/13/burn-iso-images-natively-in-windows-7.aspx">here</a>).&#160; I didn’t see though what everyone wants ability to simply mount an ISO – let’s just hope I missed it and it will be a surprise! </p>  <p>I’m really looking forward to the RC, I’ve been running Windows 7 Beta since it came out on a desktop machine and my X61 tablet.&#160; In reality the desktop was a better experience, but with the tablet the main issue was with the suspend and issues after it wakes up.&#160; So like all things if you just don’t sleep you won’t have problems!&#160; I chalk that all up to the drivers and hopefully now as we hit RC with this drop of Windows 7 things should be smooth on both computers. </p>  <p>So go put a note on your calendars to check MSDN on the 30th!</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-3791040.xml</wfw:commentRss></item><item><title>Silverlight 3 Out of Browser and Data Services</title><dc:creator>David Yack</dc:creator><pubDate>Thu, 23 Apr 2009 04:53:55 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/4/23/silverlight-3-out-of-browser-and-data-services.html</link><guid isPermaLink="false">154714:1437668:3772969</guid><description><![CDATA[<p>The other night I was in the process of getting a rather large application converted to run as an out of browser application with Silverlight 3 and I hit a problem I wanted to share.&#160; I figured if I hit it someone else would and would be great to save you some time.&#160; </p>  <p>The application uses ADO.NET Data Services to do some queries for lookup values and other application data.&#160; After a few tweaks for minor things to get it to run on Silverlight 3 I was off and running trying to get it to work out of the browser (OOB).&#160; After doing the typical stuff&#160; like looking for any HtmlPage.* calls and making sure they only happen if HtmlPage.IsEnabled is true I was able to get the application up and running.&#160; In case your not familar with HtmlPage.IsEnabled it allows you to check if the Html Bridge is active and you can work with the HtmlPage elements.&#160; When an application runs OOB you can’t make calls to HtmlPage.* methods without getting a Html/Dom is disabled unhandled exception being thrown.&#160; So by wrapping any calls to HtmlPage with checks to see if the Html Bridge is enabled you can avoid that error when running OOB.</p>  <p>Ok, now back to the ADO.NET Data Services error – all was going well the application was starting up OOB.&#160; Just when I thought things were going well I got a weird error on a Data Services calling “CreateNativeRequest”</p>  <p>Looking at the stack trace of the error showed this:</p>  <p>at System.Data.Services.Http.ScriptXmlHttpRequest.CreateNativeRequest()&#160;&#160; at System.Data.Services.Http.ScriptXmlHttpRequest..ctor()&#160;&#160; at System.Data.Services.Http.HttpWebRequest.InvokeRequest()&#160;&#160; at System.Data.Services.Http.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)&#160;&#160; at System.Data.Services.Client.QueryAsyncResult.BeginExecute()&#160;&#160; at System.Data.Services.Client.DataServiceRequest.BeginExecute(Object source, DataServiceContext context, AsyncCallback callback, Object state)&#160;&#160; at System.Data.Services.Client.DataServiceQuery`1.BeginExecute</p>  <p>I thought maybe it was because I was using a absolute Uri to talk to the host so I gave a relative URL a try in a test application&#160; and got the following error:</p>  <p> at System.Windows.Browser.HtmlPage.VerifyThreadAndEnabled()&#160;&#160; at System.Windows.Browser.HtmlPage.get_Document()   <br />&#160; at System.Data.Services.Client.DataServiceContext..ctor(Uri serviceRoot)    <br />&#160;&#160; at TestSL3DSOOB.PersonDS.MyContext..ctor(Uri serviceRoot)    <br />&#160;&#160; at TestSL3DSOOB.MainPage..ctor()</p>  <p>So you probably noticed the call to HtmlPage.get_Document above and can probably infer from that that it must be doing some HtmlPage.* calls which as we discussed earlier aren’t compatible with running Silverlight 3 OOB.</p>  <p>So at least for the beta, I’m going to have to wait to see if this gets fixed when Silverlight 3 releases but for now hopefully knowing about the issue will save you a few hours of head bashing!&#160; That said, if you haven’t tried building a Silverlight 3 OOB application give it a try – I run a twitter client OOB and the funny thing is I still once and a while start looking for the browser address bar to type in a URL! </p>  <p>Speaking of Twitter – if your on Twitter add me to your list – <a href="http://Twitter.com/DavidYack">http://Twitter.com/DavidYack</a></p><p></p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-3772969.xml</wfw:commentRss></item><item><title>Silverlight AG_E_PARSER_BAD_TYPE Errors</title><dc:creator>David Yack</dc:creator><pubDate>Thu, 09 Apr 2009 02:26:33 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/4/9/silverlight-ag_e_parser_bad_type-errors.html</link><guid isPermaLink="false">154714:1437668:3597996</guid><description><![CDATA[<p>The AG_E_PARSER_BAD_TYPE error isn’t a new error but one that if you get can sometimes give you a headache!&#160; In reading some of the forum posts like <a href="http://silverlight.net/forums/t/14936.aspx">this one</a> you read things like renaming, inherited user controls etc can cause them to happen.&#160; Today and a few times in the past I’ve hit this with particular obvious reasons it happened.&#160; </p>  <p>The most common scenario I’ve seen is where you have a user control in a class library “Lib A” and it’s used by an application “App A”.&#160; When running App A it produces a AG_E_PARSER_BAD_Type when the user control in App A tries to call InitializeComponent().&#160; What’s interesting is in trying to create a repro for the Silveright team I’ve tried several times creating an App B, and App C that use Lib A and no luck those work fine.&#160; </p>  <p>What’s even more interesting is what I’ve found fixes it and gets the InitializeComponent() method to run fine.&#160; Simply by creating an instance in the code behind of the Lib B user control prior to calling InitializeComponent does the job.&#160; I could probably dig a little deeper to find why that helps, but sometimes a little mystery is ok!</p>  <p>So as you can see in the following example adding the dummy instance of MapBuilderControl did the job.</p>  <p>public PropertyMapping()</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>  <blockquote>   <p>&#160; <strong>MapBuilderControl x = new MapBuilderControl();</strong></p> </blockquote>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; InitializeComponent();</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>  <p>Clearly, that’s far from the ideal resolution, but if you find yourself getting this error – give it a try!</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-3597996.xml</wfw:commentRss></item><item><title>Silverlight 3 Means Business</title><dc:creator>David Yack</dc:creator><pubDate>Tue, 24 Mar 2009 15:09:56 +0000</pubDate><link>http://blog.davidyack.com/journal/2009/3/24/silverlight-3-means-business.html</link><guid isPermaLink="false">154714:1437668:3434944</guid><description><![CDATA[<p>For years there has been debate between applications deployed to the desktop and applications accessed via the web browser. Like political opponents the debate has been fierce and each side evolving over the years. Deployment complexity and richness of the user interface have always been two of the central battles fought. Each technology has made dramatic improvement including things like Click Once to ease deployment of Smart Client's to AJAX to make web applications more responsive and user friendly. Ongoing investments by Microsoft in WPF and ASP.NET AJAX 4 make clear that neither of these concepts will go away in the foreseeable future.</p>  <p>Silverlight however brings to the table a number of unifying concepts that both web and desktop developers should find appealing. Early on, Silverlight was thought by many to be simply a glorified Adobe Flash competitor offering a way to build a video player with the Microsoft tools. The reality, while it may well be a competitor in that space, its potential for being able to build rich business applications is really where it starts to get interesting. Additionally, as you consider the number of .NET capable developers already trained to build applications using similar Microsoft .NET related technologies it becomes clearer how Silverlight traction will begin to outpace competitors in the space at an amazing rate.</p>  <p>The time has arrived for anyone involved in business application architecture and related technology decisions to begin to engage in understanding the changing landscape. This would include not only ISVs, but also corporate developers building internal line of business applications. That's not saying everyone should move today to Silverlight, but should invest in understanding what changes are emerging. By making the investment in learning, you will be well positioned as the application user interface space continues to evolve over the next couple of years.</p>  <p>Today's introduction of Silverlight 3 beta makes real the commitment toward Silverlight being more than just a media player. Silverlight 3 introduces more business focused controls, more data and business logic connectivity as well as what could turn out to be the real “Click Once&quot; deployment experience.</p>  <p>Silverlight 3 along with Microsoft .NET RIA Services extend the core connectivity plumbing to offer a richer way of extending business data and logic to the client application. As we will discuss in the future these services make it possible to share business logic as appropriate with the Silverlight client while keeping centralized business rules. This goes directly toward addressing and reducing complexity and developer productivity issues of these types of applications.</p>  <p>Traditionally, plug-ins like flash and Silverlight run in a web browser. As the lines between a true desktop application and a web application blur, so does the ability of Silverlight to run outside the browser. Live Mesh offered the first glimpse when it was announced at Microsoft PDC in October 2008 of a Silverlight application out of the browser with Mesh. Silverlight 3 continues that capability allowing a user to choose to install a Silverlight application to their start menu or desktop for easy access. When launched after saving the Silverlight application runs in a standalone process outside the browser window. Unlike competing technologies, this out of browser experience still allows the developer to use the same code and binaries both in and out of the browser. Using local storage resources and Silverlight's support to detect network availability these out of browser applications can also still run offline disconnected from the network. For many, this will be the unifying capability to further bring together desktop and web application development.</p>  <p>It's easy to jump to conclusions that ASP.NET is dead, or WPF is dead and it's important to understand how Silverlight fits in. The reality is, that all three technologies offer unique value propositions for developers building applications. While nobody has a crystal ball to predict the future we can look at how that plays out today. Today, ASP.NET offers applications the broadest deployment across a diverse set of clients. For broad consumer focused applications ASP.NET will continue to be the most viable option. Silverlight will start to be introduced more often in these applications as rich islands offering users specialized functionality. Developers will continue to build WPF applications to take advantage of having full access to desktop devices and the ability to have other desktop specific features. In some cases we will see lite versions of applications built on Silverlight, with full or more desktop feature enabled versions offered in WPF. In fact, frameworks and strategies are starting to emerge to improve the ability to build an application targeted for both Silverlight and WPF. </p>  <p>Join us as we continue to discuss and connect all these concepts into a clearer picture of how you build business applications using Silverlight. We will start with the basics of when to use Silverlight, move on to architecture concepts, and then steadily discuss the core building blocks that are required to put together a business application. </p>  <p>Earlier, we launched a new <a href="http://blog.slria.com">blog</a>, a new <a href="http://twitter.com/slria">Twitter account</a> and soon a new website that will be supporting a <strong>Silverlight 3 book</strong> focused on building business applications with Silverlight. Soon we will be releasing more details about the book and how you can get early access.&#160; If you would like to get notified sign up for the book notification list <a href="http://www.slria.com/">here</a>.</p>]]></description><wfw:commentRss>http://blog.davidyack.com/journal/rss-comments-entry-3434944.xml</wfw:commentRss></item></channel></rss>