<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>WebLog of Ken Cox</title><link>http://weblogs.asp.net/kencox/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>‘By Design’? BindingFailure - An assembly failed to load while using XMLSerialization</title><link>http://weblogs.asp.net/kencox/archive/2012/05/10/by-design-bindingfailure-an-assembly-failed-to-load-while-using-xmlserialization.aspx</link><pubDate>Thu, 10 May 2012 19:27:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8462616</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=8462616</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2012/05/10/by-design-bindingfailure-an-assembly-failed-to-load-while-using-xmlserialization.aspx#comments</comments><description>&lt;p&gt;Here’s an issue that cost me several hours and I suspect that there’s something in Visual Studio 2010 – and the size of my solution – that’s to blame.&lt;/p&gt;  &lt;p&gt;I was quite happily working in the MsmqToWcf example of the &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=21459" target="_blank" mce_href="http://www.microsoft.com/en-us/download/details.aspx?id=21459"&gt;WF_WCF_Samples&lt;/a&gt; to learn about MSMQ. So far so good.&lt;/p&gt;  &lt;p&gt;However, when I moved to my real project I got an exception in debug mode:&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;The assembly with display name 'Report.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Report.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Unable to track down the error in my own project, I went back to the working example and gradually replaced the example code with my own code. Everything worked just fine!&lt;/p&gt;  &lt;p&gt;Back I went to my own project and boom! That stupid stopped by debugger again.&lt;/p&gt;  &lt;p&gt;A search on the InterWebs shows many people have had this one and it was reproduced in 2005 and &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/88566/bindingfailure-an-assembly-failed-to-load-while-using-xmlserialization" target="_blank" mce_href="https://connect.microsoft.com/VisualStudio/feedback/details/88566/bindingfailure-an-assembly-failed-to-load-while-using-xmlserialization"&gt;filed as a bug in Microsoft Connect&lt;/a&gt;. The strangest thing was to see it “Closed as By Design”.&lt;/p&gt;  &lt;p&gt;Okay, so Microsoft’s code is probing for a pre-generated assembly and throwing an exception as a binding failure.The debugger sees this and stops. &lt;/p&gt;  &lt;p&gt;And this behaviour is ‘By Design’? That’s because if you aren’t debugging it won’t actually fail. How reassuring!&lt;/p&gt;  &lt;p&gt;My sense is that since the identical code fails in one big project while working fine in another small one, there’s a timing issue in the code generation. Something behind the scenes isn’t ready on schedule and hundreds of developers have lost valuable time because of it. &lt;/p&gt;  &lt;p&gt;Maybe people at Microsoft have such high end equipment (e.g.,&amp;nbsp; solid state drives) that they can’t reproduce these types of anomalies? &lt;/p&gt;  &lt;p&gt;Anyway, as the guy says on TV, “JUST FIX IT”.&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8462616" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/bindingfailure/default.aspx">bindingfailure</category><category domain="http://weblogs.asp.net/kencox/archive/tags/msmq/default.aspx">msmq</category><category domain="http://weblogs.asp.net/kencox/archive/tags/xmlserialization/default.aspx">xmlserialization</category></item><item><title>Visual Studio 11 UI Update - Improvements in RC</title><link>http://weblogs.asp.net/kencox/archive/2012/05/09/visual-studio-11-ui-update-improvements-in-rc.aspx</link><pubDate>Wed, 09 May 2012 14:42:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8456838</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=8456838</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2012/05/09/visual-studio-11-ui-update-improvements-in-rc.aspx#comments</comments><description>&lt;p&gt;I see by the &lt;a href="http://blogs.msdn.com/b/visualstudio/archive/2012/05/08/visual-studio-11-user-interface-updates-coming-in-rc.aspx" target="_blank" mce_href="http://blogs.msdn.com/b/visualstudio/archive/2012/05/08/visual-studio-11-user-interface-updates-coming-in-rc.aspx"&gt;Visual Studio Blog&lt;/a&gt; that Microsoft has backed out the worst of the darkness in the default Visual Studio 11 interface. Many of the ALL CAPS headings are gone and they’ve even added some colour to the previously monochrome icons.&lt;/p&gt;  &lt;p&gt;This is certainly an improvement that we can live with. However, I still don’t understand why they’re being so stingy with the colour pixels. I call it the Visual Studio “Dungeon” theme. &lt;/p&gt;  &lt;p&gt;The most intriguing part is that they’ve retained ALL CAPS for the main menu headings while conceding to mixed case for submenus.&lt;/p&gt;  &lt;p&gt;I have no inside knowledge of this, but I speculate that someone high up at Microsoft has mandated an unappealing ‘Metro UI Standard’. Obtaining an exemption is tough. Thus, you can negotiate mixed case submenu items where it doesn’t show as much. Hmmm… Is it that ALL CAPS on main menus had to remain so as to be consistent with ALL CAPS on forthcoming Windows apps like OFFICE?&lt;/p&gt;  &lt;p&gt;It sounds like somebody in a position of authority declared that icons must now be flat, dull and hard to recognize. If their consumers scream loud enough, a group (like VS) might be allowed to add some colour pixels back into the icons. Not too many, mind you. We need to retain some dungeon-like consistency.&lt;/p&gt;  &lt;p&gt;All this is simply conjecture on my part. I really love the development features in Visual Studio. The productivity I get from Intellisense, syntax colouring, and the debugger far outweighs the minor annoyances of someone fiddling with the user interface colours. &lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8456838" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>A Small World in ASP.NET–NimblePros Acquired by Telerik</title><link>http://weblogs.asp.net/kencox/archive/2012/04/26/a-small-world-in-asp-net-nimblepros-acquired-by-telerik.aspx</link><pubDate>Thu, 26 Apr 2012 18:36:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8411963</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=8411963</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2012/04/26/a-small-world-in-asp-net-nimblepros-acquired-by-telerik.aspx#comments</comments><description>&lt;p&gt;A few weeks ago, fellow &lt;a href="http://aspinsiders.com/" target="_blank" mce_href="http://aspinsiders.com/"&gt;ASPInsider&lt;/a&gt; Steve Smith of &lt;a href="http://nimblepros.com/home.aspx" target="_blank" mce_href="http://nimblepros.com/home.aspx"&gt;NimblePros&lt;/a&gt; passed a client to me. It’s a part-time “tweaks and maintenance” gig for a small startup. I was quite happy to take this on. I’m mostly retired and no longer work fulltime but still want to keep my hand in ASP.NET and Visual Studio - and earn money for toys.&lt;/p&gt;  &lt;p&gt;The way I heard it at the time, NimblePros was giving up the smaller client because a bigger customer wanted the Nimble Pros to work fulltime on its projects. To ensure their availability, the big client was buying the whole company.&lt;/p&gt;  &lt;p&gt;So, I picked up the development work on the site and have been happily moving it towards the public release. My new client spoke about the need for additional search and filtering functionality on some grids. I said that if they weren’t wedded to a pure Microsoft solution, I’d recommend the impressive Telerik RadGrid that I’ve used in other projects.&lt;/p&gt;  &lt;p&gt;To that end, a couple of days ago, I noticed a new item in my TODO list mentioning “Telluric (sp???) as a possible tool”.&lt;/p&gt;  &lt;p&gt;Today, I learn that &lt;a href="http://www.telerik.com/company/press-center/company-news/telerik-acquires-partner-nimblepros.aspx" target="_blank" mce_href="http://www.telerik.com/company/press-center/company-news/telerik-acquires-partner-nimblepros.aspx"&gt;NimblePros is now part of Telerik&lt;/a&gt;. More specifically, part of the Telerik Enterprise Services group.&lt;/p&gt;  &lt;p&gt;Good luck to Steve and Michelle Smith and their NimblePros crew! It’s a small world, but yours just got bigger!&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;    &lt;p&gt;Full Disclosure: Telerik gave me a free subscription to its control suite when I was still an ASP.NET MVP.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8411963" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/RadGrid/default.aspx">RadGrid</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Telerik/default.aspx">Telerik</category></item><item><title>CSS Float: Visual Studio 11 Beta Still No Help</title><link>http://weblogs.asp.net/kencox/archive/2012/04/23/css-float-visual-studio-11-beta-still-no-help.aspx</link><pubDate>Tue, 24 Apr 2012 00:02:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8404860</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=8404860</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2012/04/23/css-float-visual-studio-11-beta-still-no-help.aspx#comments</comments><description>&lt;p&gt;Despite great strides in ASP.NET Design View, CSS float remains problematic for Visual Studio. A simple two column CSS float can be unintelligible at design time. You often have to scroll way to the right just to see where it went.&lt;/p&gt;  &lt;p&gt;Sometimes I think I spend half my day trying to get div boxes to float properly this way or that. It shouldn’t be that hard.&lt;/p&gt;  &lt;p&gt;We all know we’re supposed to use CSS instead of table cells. It would be nice if VS 11 beta had provided decent support for this often-used, standards-based Web page feature.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8404860" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://weblogs.asp.net/kencox/archive/tags/CSS/default.aspx">CSS</category></item><item><title>Not Happy With the Monochrome Visual Studio 11 Beta UI</title><link>http://weblogs.asp.net/kencox/archive/2012/04/03/not-happy-with-the-monochrome-visual-studio-11-beta-ui.aspx</link><pubDate>Tue, 03 Apr 2012 17:31:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8374642</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=8374642</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2012/04/03/not-happy-with-the-monochrome-visual-studio-11-beta-ui.aspx#comments</comments><description>&lt;p&gt;I can’t wait for a third-party to come out with tools to return some colour to the flat, monochrome look of Visual Studio 11 (beta). &lt;/p&gt;  &lt;p&gt;What bugs me most are the icons. I feel like a newbie when I have to squint and analyze the shape of icons on the debugging toolbar just to get the one I want. (Fortunately, the meddlers didn’t mess with the keyboard commands so I’m not totally lost.)&lt;/p&gt;  &lt;p&gt;Not sure what usability studies told MS that bland is better. Maybe it is for most people, but not for me.&amp;nbsp; Gray, shades of gray and black. Ugh. And don’t get me started on the stupidity of using all-caps for window titles. Who approved that?&lt;/p&gt;  &lt;p&gt;I see that there’s a UserVoice poll on the topic (&lt;a title="http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2623017-add-some-color-to-visual-studio-11-beta" href="http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2623017-add-some-color-to-visual-studio-11-beta" mce_href="http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2623017-add-some-color-to-visual-studio-11-beta"&gt;http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2623017-add-some-color-to-visual-studio-11-beta&lt;/a&gt;) but I doubt that anything will change Microsoft’s opinion in time for the release. Once a product gets to a stable beta, most non-crashing stuff gets pushed to the next version. I hope I’m proved wrong.&lt;/p&gt;  &lt;p&gt;Fortunately, Visual Studio is quite customizable. Unless ‘Bland’ is hard-coded, some registry tweaks and a collection of replacement icons should allow dissenters like me back to productivity.&lt;/p&gt;  &lt;p&gt;BTW, other than hating the UI, VS 11 beta is working quite well for me on a .NET 4 project.&lt;/p&gt;&lt;p&gt;Note: Although my username for the ASP.NET domain&amp;nbsp;includes the&amp;nbsp;letters&amp;nbsp;"[MVP]", I'm no longer an MVP. Apparently it's nearly impossible to change a username in the system. My apologies for the misleading identifier but I tried to have it changed without success.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8374642" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category></item><item><title>Fix: 'Unable to load one or more of the requested types' Errors</title><link>http://weblogs.asp.net/kencox/archive/2011/06/08/fix-unable-to-load-one-or-more-of-the-requested-types-errors.aspx</link><pubDate>Wed, 08 Jun 2011 19:44:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7823071</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>9</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7823071</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/06/08/fix-unable-to-load-one-or-more-of-the-requested-types-errors.aspx#comments</comments><description>&lt;p&gt;A long time ago, I reported on an &lt;a href="http://weblogs.asp.net/kencox/archive/2010/08/24/fed-up-with-system-data-metadata-edm-objectitemassemblyloader.aspx" target="_blank"&gt;intermittent ‘Could not load file or assembly‘ bug&lt;/a&gt; where ASP.NET 4 was encountering a bizarre error on start-up in System.Reflection.RuntimeModule.GetTypes(RuntimeModule module). I neglected to post a follow-up here.&lt;/p&gt;  &lt;p&gt;The workaround is to always set the &lt;em&gt;ContextTypeName&lt;/em&gt; property in your EntityDataSource. That is,&amp;#160; you should set the&amp;#160; ContextTypeName=&amp;quot;ProjectNameNameSpace.EntityContainerName&amp;quot; &lt;/p&gt;  &lt;p&gt;Here's an example of some mark-up:&lt;/p&gt; &lt;code&gt;   &lt;p&gt;&amp;lt;asp:EntityDataSource ID=&amp;quot;edsCategoryTypesFilter&amp;quot; runat=&amp;quot;server&amp;quot; ConnectionString=&amp;quot;name=OfficeBookDBEntities1&amp;quot;      &lt;br /&gt;&lt;strong&gt;&lt;font style="background-color: #ffff00"&gt;ContextTypeName&lt;/font&gt;&lt;/strong&gt;=&amp;quot;OfficeBook.OfficeBookDBEntities1&amp;quot; DefaultContainerName=&amp;quot;OfficeBookDBEntities1&amp;quot;       &lt;br /&gt;OrderBy=&amp;quot;it.CategoryName&amp;quot; EntitySetName=&amp;quot;AccountTypeCategories&amp;quot; EntityTypeFilter=&amp;quot;AccountTypeCategories&amp;quot;&amp;gt;       &lt;br /&gt;&amp;lt;/asp:EntityDataSource&amp;gt;&lt;/p&gt;    &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;/code&gt;  &lt;p&gt;I hope this helps somebody.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7823071" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Entity+Framework/default.aspx">Entity Framework</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/entitydatasource/default.aspx">entitydatasource</category><category domain="http://weblogs.asp.net/kencox/archive/tags/asp.net+4/default.aspx">asp.net 4</category></item><item><title>EULAs are Fun. Mock Them Mercilessly!</title><link>http://weblogs.asp.net/kencox/archive/2011/04/28/eulas-are-fun-mock-them-mercilessly.aspx</link><pubDate>Thu, 28 Apr 2011 20:43:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7772643</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7772643</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/04/28/eulas-are-fun-mock-them-mercilessly.aspx#comments</comments><description>&lt;p&gt;In my &lt;a href="http://weblogs.asp.net/kencox/archive/2011/04/27/telerik-s-free-decompiler-just-don-t-decompile-it.aspx" target="_blank"&gt;previous post&lt;/a&gt; about the new, free &lt;a href="http://www.telerik.com/products/decompiling.aspx" target="_blank"&gt;Telerik JustDecompile beta&lt;/a&gt;, I made fun of the license terms that specifically forbade you from decompiling their decompiler. As you might expect, this was a copy and paste oversight and has been fixed in the latest downloadable installer. Thanks Telerik!&lt;/p&gt;  &lt;p&gt;EULAs (speaking generally now) are a strange part of software distribution where the lawyers wield a club. For most consumers, the “I have read and agreed to the license conditions” checkbox is just a minor annoyance that they click through without a millisecond of concern. In fact, these agreements are fascinating and often laughable. You guys don’t know what you’re missing out there!&lt;/p&gt;  &lt;p&gt;The lawyers for some corporations are candidly upfront that they take no responsibility if their expensive software trashes your machine. They even have the nerve to put in (fine) print that the product may be so buggy as to be unsuitable for any purpose at all. (A morale booster for the QA team, no doubt.) Warning: You’re risking your life, liberty, and happiness by installing this code. Don’t say you weren’t warned! Some clauses focus on promises not to use Logo-based code in a nuclear power station or near anyone on life support. &lt;/p&gt;  &lt;p&gt;Do the CEOs and product managers read these things and push back? No. When challenged, powerful and highly-paid people cringe, cower, and dismiss the EULA as ‘a legal thing that we have no control over’.&lt;/p&gt;  &lt;p&gt;Debates have raged for years about whether EULAs (click or shrinkwrap) are enforceable.&amp;#160; Sure, you just agreed to hand over your first-born child by clicking “I Accept”. Now, what are the chances Company A’s corporate counsel would have the guts to seize your kid at school just because their stealth ‘phone home’ activation routine discovered that you installed their software on TWO VHDs?&lt;/p&gt;  &lt;p&gt;For my part, I don’t need the cost, stress, and ignominy of having my sorry butt hauled into court by a heartless corporate legal department – even if I’m 100% in the right. You lose even when you win against these guys. It’s far more fun (and safer) to read through the EULAs and then blog about their silliness. Show no mercy! &amp;lt;grin&amp;gt;&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7772643" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Telerik/default.aspx">Telerik</category></item><item><title>Telerik’s Free Decompiler: Just Don’t Decompile It!*</title><link>http://weblogs.asp.net/kencox/archive/2011/04/27/telerik-s-free-decompiler-just-don-t-decompile-it.aspx</link><pubDate>Wed, 27 Apr 2011 17:43:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7771694</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7771694</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/04/27/telerik-s-free-decompiler-just-don-t-decompile-it.aspx#comments</comments><description>&lt;p&gt;Telerik has released a beta version of its new ‘always free’ .NET decompiler, &lt;a href="http://www.telerik.com/products/decompiling.aspx" target="_blank" mce_href="http://www.telerik.com/products/decompiling.aspx"&gt;JustDecompile&lt;/a&gt;. These guys really know their marketing and community support. (Redgate recently disappointed the community by moving the popular &lt;a href="http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1" target="_blank" mce_href="http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1"&gt;.NET Reflector&lt;/a&gt; to a $35 paid-for product.)&lt;/p&gt;  &lt;p&gt;I’m not sure if its a beta glitch *, oversight, or a wacko lawyer requirement, but Telerik’s licence mentions &lt;strong&gt;twice&lt;/strong&gt; that you must not decompile JustDecompile.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;1.3.2 The Software and its constituent parts, such as any provided add-ons or other files, &lt;strong&gt;may not be reverse engineered, decompiled&lt;/strong&gt;, disassembled or separated for use, nor placed for distribution, sale, or resale as individual creations by you. &lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;2.6 &lt;strong&gt;You are not allowed to disassemble, decompile&lt;/strong&gt; or “unlock”, decode or otherwise reverse translate or engineer, or attempt in any manner to reconstruct or discover any source code or underlying algorithms of Software that is provided to you in object code form only.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Meanwhile,&amp;nbsp;JustDecompile doesn't generate VB.NET code yet - but &lt;a href="http://blogs.telerik.com/blogs/posts/11-04-27/introducing_justtrace_and_justdecompile.aspx" mce_href="http://blogs.telerik.com/blogs/posts/11-04-27/introducing_justtrace_and_justdecompile.aspx"&gt;according to the announcement&lt;/a&gt;, VB is coming 'in the near future'. Getting a quick VB version of a routine is one of my main uses for a decompiler and a .NET Reflector strong point.&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;p&gt;&amp;nbsp;Update April 28, 2011: Telerik has removed the offending terms from its installer.&amp;nbsp;See &lt;a href="http://weblogs.asp.net/kencox/archive/2011/04/28/eulas-are-fun-mock-them-mercilessly.aspx" mce_href="http://weblogs.asp.net/kencox/archive/2011/04/28/eulas-are-fun-mock-them-mercilessly.aspx"&gt;EULAs are Fun. Mock Them Mercilessly!&lt;/a&gt;&amp;nbsp;Ken.&lt;/p&gt;&amp;nbsp; &lt;p&gt;Full Disclosure: Telerik gives me (and other Developer MVPs) a free copy of their suite.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7771694" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/VB/default.aspx">VB</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Telerik/default.aspx">Telerik</category></item><item><title>We Need a Capped Plan for MSDN Azure Benefits</title><link>http://weblogs.asp.net/kencox/archive/2011/04/20/we-need-a-capped-plan-for-msdn-azure-benefits.aspx</link><pubDate>Wed, 20 Apr 2011 21:46:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7765982</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7765982</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/04/20/we-need-a-capped-plan-for-msdn-azure-benefits.aspx#comments</comments><description>&lt;p&gt;Like many developers, I’d like to play more with Windows Azure.&amp;#160; Microsoft recently &lt;a href="http://msdn.microsoft.com/en-us/subscriptions/ee461076.aspx" target="_blank"&gt;improved the MSDN Azure benefits&lt;/a&gt; – extending them to MSDN Professional subscribers.&lt;/p&gt;  &lt;p&gt;The trouble is, the onus is on the subscriber to avoid hefty charges caused by exceeding the ‘free’ storage, compute hours, and bandwidth. Here’s the wording:&lt;/p&gt;  &lt;p&gt;“For all usage that exceeds the free allocation above, customers will be charged at standard rates. To avoid charges customers should closely monitor their usage.”&lt;/p&gt;  &lt;p&gt;For my part, I don’t intend to hand my credit card over to Microsoft for unpredictable, open-ended charges. Nor do I want to watch a meter day and night.&lt;/p&gt;  &lt;p&gt;Instead, there should be a Capped Plan option to the MSDN Azure benefit with &lt;strong&gt;no credit card required&lt;/strong&gt;. In this option, Microsoft simply pulls the Azure plug if my application somehow uses up its free allocation. &lt;/p&gt;  &lt;p&gt;Developers need reassurance that learning, experimenting, or doing something stupid on Azure won’t run up a bill that gets their credit card over-extended and even revoked.&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7765982" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/MSDN/default.aspx">MSDN</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Azure/default.aspx">Azure</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Windows+Azure/default.aspx">Windows Azure</category></item><item><title>Fix: ASP.NET 4 Page on IIS 7 Misbehaves When Browser URL Doesn’t Include Default Page</title><link>http://weblogs.asp.net/kencox/archive/2011/03/30/fix-asp-net-4-page-on-iis-7-misbehaves-when-browser-url-doesn-t-include-default-page.aspx</link><pubDate>Thu, 31 Mar 2011 02:37:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7739301</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7739301</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/03/30/fix-asp-net-4-page-on-iis-7-misbehaves-when-browser-url-doesn-t-include-default-page.aspx#comments</comments><description>&lt;p&gt;After deploying an ASP.NET 4 application to the production server, data submitted in a form on the default page went nowhere. I discovered that the page worked normally &lt;em&gt;if I included the name of the default document&lt;/em&gt; as in http://mydomain.com/default.aspx. When I navigated to the site as&amp;#160; http://mydomain.com the postback misbehaved to the extent that there was no SQL connection – as if it didn’t even try.&lt;/p&gt;  &lt;p&gt;All this worked fine on the development server which is IIS 6. The production server is IIS 7.&lt;/p&gt;  &lt;p&gt;The fix was to go into my site’s master page and set the action attribute to default.aspx in the form tag:&lt;/p&gt; &lt;code&gt;   &lt;p&gt;&amp;lt;form id=&amp;quot;form1&amp;quot; action=&amp;quot;&lt;font style="background-color: #ffff00"&gt;default.aspx&lt;/font&gt;&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt; &lt;/code&gt;  &lt;p&gt;There’s a detailed &lt;a href="http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes#0.1__Toc256770154" target="_blank"&gt;explanation&lt;/a&gt;&amp;#160; in the section “Event Handlers Might Not Be Not Raised in a Default Document in IIS 7 or IIS 7.5 Integrated Mode”&amp;#160; of the ASP.NET 4 Breaking Changes document.&lt;/p&gt;  &lt;p&gt;Am I the only one who loses time on stuff like this?&lt;/p&gt;  &lt;p&gt;Ken&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7739301" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/IIS/default.aspx">IIS</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Windows+Server+2008/default.aspx">Windows Server 2008</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/asp.net+4/default.aspx">asp.net 4</category></item><item><title>Extracting the Date from a DateTime in Entity Framework 4 and LINQ</title><link>http://weblogs.asp.net/kencox/archive/2011/03/14/extracting-the-date-from-a-datetime-in-entity-framework-4-and-linq.aspx</link><pubDate>Tue, 15 Mar 2011 00:28:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7723870</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7723870</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/03/14/extracting-the-date-from-a-datetime-in-entity-framework-4-and-linq.aspx#comments</comments><description>&lt;P&gt;In my current ASP.NET 4 project, I’m displaying dates in a GridDateTimeColumn of&lt;A href="http://www.telerik.com/products/aspnet-ajax/grid.aspx" mce_href="http://www.telerik.com/products/aspnet-ajax/grid.aspx"&gt; Telerik’s ASP.NET Radgrid&lt;/A&gt; control. I don’t care about the time stuff, so my DataFormatString shows only the date bits:&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;telerik:GridDateTimeColumn FilterControlWidth="100px" &lt;BR&gt;&amp;nbsp; DataField="DateCreated" HeaderText="Created"&amp;nbsp; &lt;BR&gt;&amp;nbsp; SortExpression="DateCreated" ReadOnly="True"&amp;nbsp; &lt;BR&gt;&amp;nbsp; UniqueName="DateCreated" PickerType="DatePicker"&amp;nbsp; &lt;BR&gt;&amp;nbsp; &lt;STRONG&gt;DataFormatString="{0:dd MMM yy}"&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt; &lt;BR&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;My problem was that I couldn’t get the built-in column filtering (it uses Telerik’s DatePicker control) to behave.&amp;nbsp; The DatePicker assumes that the time is 00:00:00 but the data would have times like 09:22:21. So, when you select a date and apply the EqualTo filter, you get no results. You would get results if all the time portions were 00:00:00.&lt;/P&gt;
&lt;P&gt;In essence, I wanted my Entity Framework query to give the DatePicker what it wanted… a Date without the Time portion. Fortunately, EF4 provides the &lt;A href="http://msdn.microsoft.com/en-us/library/dd395596.aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/dd395596.aspx"&gt;TruncateTime&lt;/A&gt;&amp;nbsp; function. After you include&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;Imports System.Data.Objects.EntityFunctions&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;You’ll find that your EF queries will accept the TruncateTime function. Here’s my routine:&lt;/P&gt;&lt;CODE&gt;
&lt;P&gt;Protected Sub RadGrid1_NeedDataSource _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ByVal source As Object, _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Handles RadGrid1.NeedDataSource &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ent As New OfficeBookDBEntities1 &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim TopBOMs = From t In ent.TopBom, i In ent.Items _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where t.BusActivityID = busActivityID _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And i.BusActivityID And t.ItemID = i.RecordID _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By t.DateUpdated Descending _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select New With {.TopBomID = t.TopBomID, .ItemID = t.ItemID, _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .PartNumber = i.PartNumber, _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Description = i.Description, .Notes = t.Notes, _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #ffff00"&gt;.DateCreated = TruncateTime(t.DateCreated),&lt;/FONT&gt;&lt;/STRONG&gt; _ &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .DateUpdated = TruncateTime(t.DateUpdated)} &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RadGrid1.DataSource = TopBOMs &lt;BR&gt;End Sub &lt;BR&gt;&lt;/P&gt;&lt;/CODE&gt;
&lt;P&gt;Now when I select March 14, 2011 on the DatePicker, the filter doesn’t stumble on time values that don’t make sense.&lt;/P&gt;
&lt;P&gt;Full Disclosure: Telerik gives me (and other developer MVPs) free copies of their suite.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7723870" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Entity+Framework/default.aspx">Entity Framework</category><category domain="http://weblogs.asp.net/kencox/archive/tags/RadGrid/default.aspx">RadGrid</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Telerik/default.aspx">Telerik</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/asp.net+4/default.aspx">asp.net 4</category></item><item><title>Fix: CSS Problems in IE 8 With Over 31 StyleSheets</title><link>http://weblogs.asp.net/kencox/archive/2011/01/24/fix-css-problems-in-ie-8-with-over-31-stylesheets.aspx</link><pubDate>Mon, 24 Jan 2011 17:25:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7689059</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7689059</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2011/01/24/fix-css-problems-in-ie-8-with-over-31-stylesheets.aspx#comments</comments><description>&lt;P&gt;In my latest Web application, I went crazy trying to&amp;nbsp;find out why a popup/overlay window style was acting up in IE 8 but was fine in the latest version of FireFox. After too many hours of frustration and dead ends, I took the issue to my friends at Telerik Support (the site I’m developing uses their excellent RadControls for ASP.NET AJAX suite).&lt;/P&gt;
&lt;P&gt;Telerik diagnosed the problem immediately as too many stylesheets for Internet Explorer to handle. Huh?&lt;/P&gt;
&lt;P&gt;I didn’t know about this limit (bug) of 31 stylesheets - but even if I had, I’d have wagered that I didn’t have that many. It turns out that many 3rd party controls generate styles as resources using an httphandler in the web.config file. Worse, even HTML&amp;nbsp; style &lt;EM&gt;tags&lt;/EM&gt; count as stylesheets to IE! &lt;/P&gt;
&lt;P&gt;In my case, the solution was to add Telerik’s RadStyleSheetManager&amp;nbsp; control to my master page. Suddenly, the troublesome style issue was gone.&lt;/P&gt;
&lt;P&gt;From what I read on the InterWeb, Microsoft doesn’t plan to do anything about this limitation in IE 9, so it’s going to be around for a long while. You think Internet Explorer&amp;nbsp; would at least give us a helpful error message such as “Sorry, there are too many stylesheets for me to handle. The page probably looks weird because I’m a wimp and have given up applying the excess styles.”&lt;/P&gt;
&lt;P&gt;For more info on the issue, check out this blog post on Internet Explorer CSS limits:&lt;/P&gt;
&lt;P&gt;&lt;A title=http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx href="http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx" mce_href="http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx"&gt;http://blogs.telerik.com/kamenbundev/posts/10-05-03/internet_explorer_css_limits.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Full Disclosure: As a Microsoft MVP for ASP.NET, Telerik gives me a free licence to its control suite.&lt;/P&gt;
&lt;P&gt;Ken&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7689059" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+ASP.NET/default.aspx">.NET ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Telerik/default.aspx">Telerik</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Errors/default.aspx">Errors</category></item><item><title>Entity Framework Code-First to Provide Replacement for ASP.NET Profile Provider</title><link>http://weblogs.asp.net/kencox/archive/2010/12/10/entity-framework-code-first-to-provide-replacement-for-asp-net-profile-provider.aspx</link><pubDate>Fri, 10 Dec 2010 17:15:18 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7659370</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7659370</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2010/12/10/entity-framework-code-first-to-provide-replacement-for-asp-net-profile-provider.aspx#comments</comments><description>&lt;p&gt;A while back, I coordinated a project to add &lt;a href="http://weblogs.asp.net/kencox/archive/2010/09/05/using-the-sql-table-profile-provider-in-asp-net-4-web-applications-c-amp-vb.aspx" target="_blank"&gt;support for the SQL Table Profile Provider&lt;/a&gt; in ASP.NET 4 Web Applications.&amp;#160; We urged Microsoft to improve ASP.NET’s built-in Profile support so our &lt;a href="http://code.msdn.microsoft.com/aspnet4profile" target="_blank"&gt;workaround&lt;/a&gt; wouldn’t be necessary. Instead, Microsoft plans to provide a &lt;em&gt;replacement&lt;/em&gt; for ASP.NET Profile in a forthcoming release.&lt;/p&gt;  &lt;p&gt;In response to &lt;a href="https://connect.microsoft.com/VisualStudio/feedback/details/595053/add-support-for-the-sql-table-profile-provider-in-asp-net-4-web-applications" target="_blank"&gt;my feature suggestion on Connect&lt;/a&gt;, Microsoft says we should look for something even better using Entity Framework: &lt;/p&gt;  &lt;p&gt;“When code-first is officially released the final piece of a full replacement of the ASP.NET Profile will have arrived. Once code-first for EF4 is released, developers will have a really easy and very approachable way to create any arbitrary class, and automatically have the .NET Framework create a table to provide storage for that class. Furthermore developer will also have full LINQ-query capabilities against code-first classes. “&lt;/p&gt;  &lt;p&gt;The downside is that there won’t be a way to retrofit this Profile replacement to pre- ASP.NET 4 Web applications. At least there’ll still be the &lt;a href="http://code.msdn.microsoft.com/aspnet4profile" target="_blank"&gt;MVP workaround code&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;It looks like it’s time for me to dig into a &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/12/08/announcing-entity-framework-code-first-ctp5-release.aspx" target="_blank"&gt;CTP of EF Code-First&lt;/a&gt; to see what’s available.&amp;#160;&amp;#160; &lt;a href="http://weblogs.asp.net/scottgu/default.aspx" target="_blank"&gt;Scott Guthrie&lt;/a&gt; has been blogging about &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx" target="_blank"&gt;Code-First Development with Entity Framework 4&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;It’s not clear when the EF Code-First is coming, but my guess is that it’ll be part of the VS 2010/.NET 4 service pack.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7659370" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/MVP/default.aspx">MVP</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+ASP.NET/default.aspx">.NET ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/LINQ/default.aspx">LINQ</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/asp.net+3.5/default.aspx">asp.net 3.5</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Entity+Framework/default.aspx">Entity Framework</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Visual+Studio+2010/default.aspx">Visual Studio 2010</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/SqlTableProfileProvider/default.aspx">SqlTableProfileProvider</category><category domain="http://weblogs.asp.net/kencox/archive/tags/asp.net+4/default.aspx">asp.net 4</category></item><item><title>Help A Hacker: Give ‘Em The Windows Source Code</title><link>http://weblogs.asp.net/kencox/archive/2010/12/09/help-a-hacker-give-em-the-windows-source-code.aspx</link><pubDate>Thu, 09 Dec 2010 22:32:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7658894</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7658894</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2010/12/09/help-a-hacker-give-em-the-windows-source-code.aspx#comments</comments><description>&lt;P&gt;The announcement of another &lt;A href="http://www.computerworld.com/s/article/9200642/Microsoft_slates_another_monster_Patch_Tuesday?taxonomyId=82" target=_blank mce_href="http://www.computerworld.com/s/article/9200642/Microsoft_slates_another_monster_Patch_Tuesday?taxonomyId=82"&gt;Windows megapatch&lt;/A&gt; reminded me of a WikiLeaks story about Microsoft Windows that hasn’t attracted much attention.&lt;/P&gt;
&lt;P&gt;Alarmingly, we learn that the &lt;A href="http://www.guardian.co.uk/world/us-embassy-cables-documents/214462" target=_blank mce_href="http://www.guardian.co.uk/world/us-embassy-cables-documents/214462"&gt;hackers have the Windows source code&lt;/A&gt; to study and test for vulnerabilities. Chinese hackers used the knowledge to breach Google’s accounts and servers:&lt;/P&gt;
&lt;P&gt;“In 2003, the CNITSEC signed a Government Security Program (GSP) international agreement with Microsoft that allowed select companies such as TOPSEC access to Microsoft source code in order to secure the Windows platform”&lt;/P&gt;
&lt;P&gt;“CNITSEC enterprises has recruited Chinese hackers in support of nationally-funded "network attack scientific research projects." From June 2002 to March 2003, TOPSEC employed a known Chinese hacker, Lin Yong (a.k.a. Lion and owner of the Honker Union of China), as senior security service engineer…”&lt;/P&gt;
&lt;P&gt;Windows is widely seen as unsecurable. It doesn’t help that Chinese government-funded hackers are probing the source code for vulnerabilities. It seems odd that people who didn’t write the code can find vulnerabilities faster than the owners of the code.&lt;/P&gt;
&lt;P&gt;Perhaps the U.S. government should hire its own hackers to go over the same Windows source code and then tell Microsoft how to secure its product?&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7658894" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/Community+News/default.aspx">Community News</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Fix: The version of SQL Server in use does not support datatype 'datetime2'.</title><link>http://weblogs.asp.net/kencox/archive/2010/11/15/fix-the-version-of-sql-server-in-use-does-not-support-datatype-datetime2.aspx</link><pubDate>Tue, 16 Nov 2010 02:21:45 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7644757</guid><dc:creator>Ken Cox [MVP]</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/kencox/rsscomments.aspx?PostID=7644757</wfw:commentRss><comments>http://weblogs.asp.net/kencox/archive/2010/11/15/fix-the-version-of-sql-server-in-use-does-not-support-datatype-datetime2.aspx#comments</comments><description>This message appeared today after posting a new build to our ASP.NET 4 web app: The version of SQL Server in use does not support datatype 'datetime2'. The DBA doesn’t use datetime2 because it’s new in SQL Server 2008 and the site runs on 2005.&amp;#160;...(&lt;a href="http://weblogs.asp.net/kencox/archive/2010/11/15/fix-the-version-of-sql-server-in-use-does-not-support-datatype-datetime2.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7644757" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+ASP.NET/default.aspx">.NET ASP.NET</category><category domain="http://weblogs.asp.net/kencox/archive/tags/General+Software+Development/default.aspx">General Software Development</category><category domain="http://weblogs.asp.net/kencox/archive/tags/Entity+Framework/default.aspx">Entity Framework</category><category domain="http://weblogs.asp.net/kencox/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category></item></channel></rss>
