.NET

Red Gate Reflector

Well, it looks like one of the best .NET utilities out there has changed hands. Lutz Roeder, the original creator and developer of Reflector has agreed with Red Gate software (they of SQL Compare and SQL Toolkit fame) to let them continue development of it from now one. An interview with both Lutz and James Shore of Red Gate outlining the deal and what Red Gate hopes to do with Reflector can be found here on simple talk. Red gate are quite clear that they “will continue to offer the tool for free to the community.” but don’t categorically state...

posted @ Thursday, August 21, 2008 9:20 AM | Feedback (0)

Three Different Ways To Find The Currently Edited Row In A GridView

The GridView, and indeed all the other templated data bound controls, are lifeblood to an ASP.NET developer when it comes to creating websites. A little DataSource control here, a GridView there and even if it isn't exactly what you want, you've got a prototype page up and running in no time to start the real development with. Today's chores involved tweaking the contents of a GridView's EditItemTemplate so that the contents of one DropDownList (Clients) would change based on the contents of another (Roles) and should the Update button be clicked the values of both DropDownLists saved out to the...

posted @ Tuesday, August 05, 2008 5:06 PM | Feedback (1)

Enabling HttpListeners for Non-Admins

I've just started working through the Cardspace samples to learn some more about online identity layers (download them here if you're interested). The first example demonstrates a web service running on http://localhost:4123 requesting a certificate from a client. However, as a non-admin, I get the following error from Visual Studio when running the sample. AddressAccessDeniedException was unhandledHTTP could not register URL http://+:4123/HelloService/. Your process does not have access rights to this namespace Coincidentally, the error is totally analogous to a similar problem I've had while trying out the CR_Documentor plug-in that Travis Illig has created and it's Travis and...

posted @ Monday, July 28, 2008 1:50 PM | Feedback (0)

Assert.AreValueEqual

One of the interesting aspects of backfilling documentation is uncovering methods few seem to have discovered. Case in point, the Assert.AreValueEqual method in MbUnit v2. Rather than the straightforward AreEqual methods to compare the values of a property in an object or the AreSame methods to compare whether two objects are actually the identical object or of the same type, AreValueEqual verifies that two objects, expected and actual, both have a property described a PropertyInfo object, that the property is not null, and that the value of the property in both objects is equal. It's a...

posted @ Monday, July 21, 2008 10:13 PM | Feedback (1)

Learning that WAPs on IIS are for Admins Only The Hard Way

(Or rather "How a fixed bug and a rubbish COMException error dialog ended up making me take four months to learn that Web Application Projects running on IIS rather than Cassini can only be edited in VS when running with Administrative privileges" but that seems slightly long for a blog title post) I've been happily running VS2008 as a standard user since it came out. And with TestDriven.NET and VisualSVN, I'm motoring along quite well. Yesterday, I decided to upgrade VisualSVN to the latest version v1.5.1. And then bang!! I loaded up my current work and got this dialog. ...

posted @ Thursday, July 10, 2008 9:50 AM | Feedback (0)

The use of LINQ - in summary

As with all programming tasks, there are many different ways to create a program that solves the problem. The trick is, as ever, to write the program, get it working, and then optimize it. It may be that after you have your program up and running (and profiled), you'll discover that there are some places that you've used LINQ which would be better off using stored procedures running within your database or vice versa or using LINQ to access stored procedures. The trouble is that whether LINQ is the best approach for your apps is something that you'll find out...

posted @ Sunday, June 15, 2008 7:59 PM | Feedback (0)

EnableStateHash is no more. Long live EnableSecureHistoryState

Just a quick note on the new Browser History feature in .NET 3.5 SP1. I had some time to experiment with beta 1. Because of its long gestation period as part of the ASP Futures package, it has been written about a lot. However, as is the curse of beta software, there is a 'breaking change' between the b1 release and the futures package version that many blog articles write about. The feature is still enabled using the EnableHistory attribute on your page's ScriptManager object.<asp:ScriptManager runat="server" id="sm1" EnableHistory="true" /> However, the EnableStateHash attribute which you can use to have ASP.NET...

posted @ Friday, June 06, 2008 10:20 PM | Feedback (0)

Entity Framework & ADO.NET Data Services to Ship with VS 2008 SP1 & .NET 3.5 SP1

via ADO.NET Team Blog It’s settled! The Entity Framework (and the Entity Designer) along with ADO.NET Data Services will RTM as part of the Visual Studio 2008 and .NET 3.5 SP1 releases! Unfortunately, we don’t have official release dates at this point, but stay tuned. You’ll also want to keep an eye out for the upcoming SP1 Beta 1, which will be your next chance to check out updated bits for both of these products. Elisa FlaskoProgram Manager, Data Programmability

posted @ Friday, April 11, 2008 8:45 AM | Feedback (0)

Express Delivery

It's been a long time coming since the first alphas were released privately back in September last year, but the first public beta of .NET 2.0 is finally upon us. At last we've got a fairly stable build that we can openly talk about with anyone who's got the bandwidth to download it. For me, the best part of this beta 1 release are the Express variations of Visual Studio .NET and SQL Server. There’s also a replacement for betapalce as well in the shape of the MSDN Product Development Center. Sara Williams’ blog has a nice piece on shipping...

posted @ Tuesday, June 29, 2004 11:01 PM | Feedback (-1)