Browse by Tags

All Tags » MSDN (RSS)

Why Use Random Values For Unit Testing

On a previous post I introduced a library for generating random values for purposes of unit testing. I received a few comments and questions on my blogs [ ^ ][ ^ ][ ^ ][ ^ ]. Simon says that he’d “generally want every instance of the test I run to be...

Replacing Loaded Assemblies

Recently I’ve been asked if it would be possible to replace the assemblies loaded by a .NET Windows Service application while it was running like with ASP.NET . Like with ASP.NET, an application start and end events where needed. The solution is quite...
Posted by Paulo Morgado | with no comments
Filed under: , , ,

Using Random Values For Unit Testing

When writing my unit tests I don’t like to use hard coded fixed values because I either end up using the same values or, because of that, tests may succeed by coincidence. Over time, I have developed an helper class to generate random values for testing...

More On ASP.NET Validators And Validation Summary Rendering of Properties

On previous posts [ ^ ][ ^ ] I mentioned the size of ASP.NET validators and validation summary rendering and the fact that expando attributes are being used to add properties. Mohamed also mentions this issue. Besides the fact that custom attributes aren't...

Microsoft Tech-Ed EMEA 2008 – Registration Open

Microsoft Tech-Ed EMEA 2008 is open for registration. Do notice that, this year, the event for IT Professionals happens before the event for Developers .
Posted by Paulo Morgado | with no comments

Microsoft Source Analysis for C# (aka StyleCop)

I’ve learned from a fellow GASP er of the release of Microsoft Source Analysis for C# (aka StyleCop) . It’s still a work in progress but it’s already very useful.

Pedro Félix Is Blogging

Pedro Félix is blogging about WCF .
Posted by Paulo Morgado | with no comments

Getting .NET 1.1 CLR String Hash Codes In The .NET 2.0 CLR

Everyone knows (or, should know) that values values retrieved from the GetHashCode method should not be persisted for later use, specially with strings , because: The behavior of GetHashCode is dependent on its implementation, which might change from...
Posted by Paulo Morgado | with no comments
Filed under: , , ,

MSDN And TechNet Virtualized

Lately I've been analyzing various solutions for resource (applications, desktops and servers) virtualization, pooling and provisioning from the various players in this market ( Microsoft , Citrix , VMware , Sun , HP ). There are many advantages to...
Posted by Paulo Morgado | with no comments

Rendering ASP.NET Validators And Validation Summary Property As HTML Attributes

Yesterday I blogged about the cause of ASP.NET validators and validation summary slowness . At that point I wasn't aware of the existence of the XHTML conformance configuration (thanks Nuno ). With the XHTML conformance configuration set to Legacy...

The Cause Of ASP.NET Validators And Validation Summary Slowness

When building ASP.NET pages, if you use too many validators and validation summaries your pages can become very slow. Have you ever wondered why? Lets build a simple page web page with a few validators. Something like this: The page is composed of: 2...

Build Your Own LINQ Provider

Mehfuz has been building a toolkit for creating LINQ providers and it's available at CodePlex : LINQExtender He has even built a LINQ provider for flickr with it: LINQ.Flickr
Posted by Paulo Morgado | with no comments

Stretching Type Inference

Note: Code in italics is not actual C# 3.0 syntax. Local Variable Type Inference C# 3.0 brought us local variable type inference mainly because of LINQ . The output of a query can vary from an IEnumerable<T> or an IQueryable<T> to a single...

Framework Design Studio On MSDN Code Gallery

I just came across this today: Framework Design Studio is a set of tools for reusable library designers. The package contains a GUI tool for viewing, reviewing, and comparing versions of managed APIs. It also contains a command line tool for generating...
Posted by Paulo Morgado | with no comments

Web Authoring Component install fails when installing Visual Studio 2008

While trying to install Visual Studio 2008 Team Suite in my Windows XP Professional system it kept failing when installing Visual Studio because it couldn't find the Web Authoring Component (after installing having just successfully installed it)...
Posted by Paulo Morgado | with no comments
Filed under: , ,

Upgrading the WCSF EventBroker Extension to WCSF 2.0

While preparing the demos for my session at TechDays Portugal 2008 , I've noticed some changes in the Web Client Software Factory 2.0 that prevented the EventBroker Extension from compiling and running. The problem ended out just being a little change...

WCSF 2.0 And IIS7 Integrated Pipeline Mode

While preparing the demos for my session at TechDays Portugal 2008 , I've noticed that the Web Client Software Factory 2.0 doesn't work with IIS7 in integrated pipeline mode because it's trying to access the Request property of the current...

IE8 Beta 1 is out

If you want to download IE8 Beta 1 and test it, it's here . Read the Release notes and the IE8 Readiness Toolkit which will give a detailed description of the features. If you have any feedback, use the feedback form , which allows you to submit bugs...
Posted by Paulo Morgado | with no comments

Web Client Software Factory 2.0 shipped

Web Client Software Factory 2.0 February 2008 Release Resources MSDN site: http://msdn.microsoft.com/webclientfactory Community site: http://www.codeplex.com/websf About the Deliverable The Web Client Software Factory (WCSF) provides a set of guidance...

FormsAuthentication And Query String Parameteres

Today I ran into this strange"feature" of ASP.NET : When redirecting to the login page, the query string parameters are encoded with the requested URL into the ReturnUrl query string parameter of the request to the login page, but are also in...
Posted by Paulo Morgado | 2 comment(s)
Filed under: , , ,
More Posts Next page »