ASP.NET News from Blogger: Marc's Musings   Get the feed of: Marc

Total News: 83

MS10 - 070 Post Mortem analysis of the patch

Now that Microsoft has patched the POET vulnerability, I thought it would be instructive to see what they changed. Now I'm not masochistic enough to disassemble aspnet_wp.exe or webengine.dll so there...

And as for me? I've done nothing.

My last post was 18 months ago... I deleted the two that followed it because they were time-sensitive. I've been sucked into twitter, StackOverflow, parenthood and real life. Coming soon, I hope, wil...

SQL Server Data Services via cURL

I just noticed a really cool article on using Microsoft's new SQL Server Data Services which explains how to use cURL at the command line to talk to the SSDS RESTful interface.What's cURL?If you've ne...

You can't hold onto nothing

A while back, we were looking for an easy way to count "hits" against content in a CMS-like system. For the sake of discussion, pretend we have a table called ContentEntry that represents th...

Sometimes you make a hash of things.

So, hash has been on my mind lately.  No, not that kind of hash, or that kind either.  First, there was last week, when I installed Internet Explorer 8 beta 1.  I was reading the releas...

Individual label RSS subscriptions now available

It seems there are several not-very-overlapping audiences for this blog. There are people reading for the SQL stuff, especially the datetime related stuff. There are people reading for the Lightweight...

New release of UriTemplate / UriPattern library

Today I released a new version of the UriPattern and UriTemplate library on CodePlex (previously announced here). There are two changes in this release:A bug reported by Darrel Miller where the meta c...

VTOs, RTOs and GetHashCode() -- oh, my!

Introduction Checking out a new blog today [Davy Brion's Blog] I stumbled across a very nice entry about Implementing A Value Object. Go read that now if you don't know what a value object is, what im...

Please tell me the rest of the code doesn't look like this...

This is not right:internal static bool DoesDbExist(SqlConnection conn, string database){    using (SqlCommand cmd = conn.CreateCommand())    {    &nbs...

UriTemplate project on CodePlex

I've just created a new project on CodePlex, and it's got the first (and hopefully only) release available. Enjoy UriTemplate. Some background whining... I admit that sometimes I get a little jealous...

Version 2 of ASP.Net Rss Toolkit released!

Thanks to some amazing work by Piyush Shah of Microsoft, the ASP.Net RssToolkit originally authored by Dmitry Robsman has grown up big and strong! The new release adds some awesome features that many ...

ORDER BY with TOP 100 PERCENT in VIEW bug hotfixed.

Anyone who has been bitten when going from SQL Server 2000 to SQL Server 2005 due to the (intentional) decision by Microsoft to ignore the ORDER BY in a VIEW that returns the entire result set can now...

Version 1.3 of Attrice Team Foundation Sidekicks released!

The fine folks at Attrice have just released version 1.3 of the Team Foundation Sidekicks. This time, they have added something very near and dear to my heart -- the ""Shelveset Sidekick"". If y...

When failing to understand the constructor gets you..

So I was persuing the April release 3.0 of the Microsoft Enterprise Library code and noticed this amusing little bit of code in the CachingStoreProvider.cs file:private ICacheItemExpiration[] GetCache...

What does single sign-on mean to you (with ASP.Net examples)

While looking for sample code for simply cross-domain single sign-on for a new project, I stumbled across Micheal Morozov's excellent detailing of six different common meanings when someone talks abou...

Today in blinding science - Adoptive parents actually care more.

Who out have expected this outcome?Amazing, really, that parents that struggle through the convoluted course of modern adoptions seem to care for thier children more than biological parents. I'm so th...

The best to you and yours on International Zebra Day

Once again this year, I wish you all a wonderous and happy International Zebra DayEvery year January 31st, since 1978, I and many like me okay, maybe not like me have celebrated the joys of God's grea...

A cross-browser client-side javascript implementation of the WHATWG Web Forms 2.0 repetition model.

A javascript client-side implementation of the WHATWG Web Forms 2.0 repetition model.Awesomely cool. ...

Great step-by-step to getting back a dead SQL server database

The step-by-step progression of how to recover a SQL Server database gone bad. Pop Rivett and the Suspect Database. ...

ASP.Net RSS Toolkit published on CodePlex.

In February of 2006, Dmitry Robsman released a very cool RSS Toolkit that eases both consuming and publishing RSS feeds in an ASP.Net application.The RSS toolkit includes support for consuming as well...

IFilter Text Extracter now hosted on CodePlex

My IFilter Text Extractor that I mentioned previously has now been uploaded to it's new CodePlex home. If you have any enhancement requests or problems, please use the appropriate forums on CodePlex.I...

The .Net Framework 2.0 language pack install fails on Vista

I've discovered that you can't install the .Net Framework Language Packs on Vista. They all claim to have already been installed, yet the localized resources directories are not present.Looks like the...

Extending the available range of DateTime in SQL Server 2005

Since I get so many hits for my various SQL DateTime articles, I thought I would point out an awesome contribution by Mladen Prajdic on building a UDT for SQL Server 2005 in CLR that gives you al...

COM and IDL and C++ and IFilter, oh my!

It's a blast from the past! On the Developmentor Advanced .Net mailing list recently, there was a bit of discussion about doing text extraction from Word documents. This is something I did in a past l...

IL Visualizer gets better!

Haibo Luo's most-excellent tool for IL visualization just got a bunch better. I could not have built my Dynamic class without this tool, it's just plain awesome. The new version adds support for ...

Microsoft .Net Framework 3.0 now released

Not that I like the "version number" any more than I like the whole Web 2.0 thing, but YAY! Get the goods here. Technorati tags: WFP, WCF, WWF, InfoCard, Microsoft, Windows Workflow Foundation...

So how exactly is it that I'm faster than the C# compiler anyway?

I've had this one in the hopper for a while, but recently people have been asking, so...I was curious about why my Dynamic Reflection Library code was benchmarking as 6% faster than native code (e.g. ...

DuckTyping for existing classes

First off, if you don't lurk on CodeProject, I mock you... but assuming you either don't, or just missed this one, Gnter Prossliner posted a great bit of code that lets you dynamically "implement" a...

Looking for a new job?

I keep hearing that nobody can find a decent developers. Of course finding decent jobs can be a bit tough, but now the fine guys at The Daily WTF have come up with a great way to syndicate job listing...

Internet Explorer 7, bogus repros on Secunia and Midnight Madness

By now you all realize that IE7 has been released on the 18th. And now we have a report of the first vulnerability. This one is purported to be a problem with the way that IE handles redirections that...

Dynamic Reflection Library now hosted on CodePlex

For your ease of access and better place for any bug-reports or enhancement requests, I've placed my Dynamic library on CodePlex. ...

He's ALIVE!

It was the best of times, he's posted again: It's been over two years since I blogged. It's was the worst of times: ...I left the CLR team and the Developer Division So it seems that the only way...

Miniature Earth

Percentages are boring, but what if you mapped many statistics about the world population down to a population of 100. What would the world look like. Check out this presentation on the miniature Eart...

Team Foundation Server is gaining traction, do you know it well enough to teach?

I'm very pleased with my experiences thus far with Team Foundation. It's version control tools are excellent, the work item stuff is very flexible, but in truth I haven't worked with much of the rest ...

The easy way to prep a solution for sharing

How many times have you downloaded a .Net project from somewhere and unzipped it to find all kinds of kruft that should NEVER have been shipped to anyone? Things like .SUO files, .USER files, the obj ...

How to do late Dynamic method creation

In this post comment, I was asked about how to do creation of method delegates whose types can vary somewhat when using the Dynamic class. It's really a matter of using the unspecified form of a gener...

They're back!

Ahhh, the warm feelings of nostalgia wave over me... in less than a month, I get to see if the sweet memory is a suite reality. Check out the New Turbo C++/Turbo Delphi/Turbo C# homepage. ...

Yield to the power of the DataSource

The new declarative model for data sources in ASP.Net 2.0 is very seductive in its simplicity. I've all-too-often seen people doing date-picker and time-pickers by listing the times individually in Li...

Fixing forums.asp.net RSS feed issues.

I use RSSBandit as my feed reader, and it is awesome. I noticed, however, that it was having issues with the forum feeds from ASP.Net. A typical feed from there looks like this http://forums.asp.net/r...

Updated files for Dynamic method caller available...

I've updated the Utilities.zip and DynamicComparer.zip files with my latest cleanup of the DynamicCall stuff. This version fully supports static methods is much simpler, uses less working set and is f...

Things to remember when creating delegates and doing LCG...

In my AcquiringObjectDataSource articles part three I promised to show what things look like using the DynamicCall library I've previously posted. In doing that, I've had to make the DynamicCall stuff...

Recycling messages (or how not to be responsible for translating error messages).

In the continuing saga of my replacement for ObjectDataSource and ObjectDataSourceView, I have had to reimplement some of the methods in those classes. This is done, of course, by using Reflector to s...

I can see clearly now, the pain is gone (or how one little virtual makes the whole view clear)

In part one of this little series, I introduced the first player in our little play, AcquringObjectDataSource. Quite literally, the only reason that class was necessary was to insure that we create a ...

Enough with the whining, just fix ObjectDataSource already...

What's the deal?If you have ever tried to use ObjectDataSource with any O/R Mapper or just business entities that have "persistent state", you no-doubt know the issues I've whined about. It really b...

Need a date range in SQL without filling a table?

It's evidentally SQL week here at Chez Brooks. Today I needed a really high performance query to deliver a date range table between two dates. Simple, and there seem to be tons of variants out there, ...

More on DATEs and SQL

Building on this First/Last day of month post (oddly, one of the main ways people seem to land on my blog), here are some other commonly needed SQL queries:Beginning of periodMidnight of any day (i.e....

The power of generics compells you, the power of generics compells you...

Once again I've devoted some time to the exorcism of the daemons of Reflection. This time, I'm chasing the cost of calling MethodInfo.Invoke against an arbitrary (chosen at run-time) method. In previ...

Driving Directions Syntax Coadified [SIC]

Noah Coad finally comes up with a concise and simple to follow syntax for giving written driving directions. I love it and plan to adopt it post-haste. I'm only changing two things. I'm putting a slas...

Things to consider when using SQL 2005 Query Notifications

When looking into why I was getting immediate notifications of a SQLDependancy being changed, I discovered a really nice MSDN2 page that documents the things to watch out for, Special Consideration...

More about exception handling and new coolness from Joshua Flanagan

Regular readers of my blog (all 14 of you), will know that I'm a stickler for handling exceptions correctly in applications. I strongly believe that you should only catch exceptions you can handle, ne...

View Other bloggers