Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Jesse Ezell Blog

<i>.NET and Other Interesting Stuff</i> <div id="ad"><script type="text/javascript"><!-- google_ad_client = "pub-1219444915196145"; /* 468x60, created 1/25/10 */ google_ad_slot = "1898962835"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div>

  • MS Dumps .NET Remoting

    Yes, it is final, MS is dropping .NET Remoting support. Funny. COM+, DCOM, and MSMQ will be supported by Indigo, but .NET Remoting WILL NOT. More info in this video.

  • Creating *Valid* XHTML Documents

    While working on our CMS, we ran into a common problem that no one seems to have solved completely yet, creating valid XHTML documents from IE's non-validated HTML editing component. The common suggestion with .NET is to use the SgmlReader to make a pass over your doc and then just output directly to an XmlWriter using WriteNode. While it may seem like a good suggestion, you don't really gain much with this approach, because what you are generating is definately not XHTML, it is HTML with closing tags. The following block of code shows how to extend this method to create truly valid XHTML. For the sake of simplicity, there are a couple missing pieces from this code (like handling element nesting appropriately and running a validation against the schema after conversion to make sure you were able to convert the doc), but this should get you started in the right direction.

  • Structs are Better?

    “Going to the big class hierarchy is again, you write more code than you need to, and you get too much connection between different parts. I particularly dislike classes with a lot of get and set functions. That is often an indication that it shouldn't have been a class in the first place. It's just a data structure. And if it really is a data structure, make it a data structure.” [1]

  • Non Techical Solutions

    Brian Sullivan offers some non technical ways MS can improve security. What should be noted though is that most of the time, these attacks that take over everyone's computer are based on known security flaws that have had patches available for months. What Microsoft really needs to do is some type of consumer awareness project. How about some radio / tv / web ads about what the hell Windows Update is and how Microsoft provides this service to help you secure your computer against the viral hordes. Then, users might realize 1) That windows update exists and 2) that they should use it. As it is now, must users think that when they have this kind of attack they should have been running anti-virus software, but the truth is that many times anti-virus software doesn't help all that much against these types of attacks. Patching those holes is really the best solution we have right now.