.NET
While the development server in Visual Studio 2010 is great for most work, it does have 1 shortcoming in that if you start adding content types that are not part of the base set of known Mime types built in, you won’t affect the proper header response that is emitted to the client/browser. For example MP4 files, out of the box the development web server emits application/octet-stream or something like that. What we really need is video/mp4. Now, with IIS Express, you can easily switch over to use...
I wanted an ability to be able to simply time methods and write to a log/trace sink and a very simple approach that I ended up using was to provide a method that takes an Action delegate which would be the method that is to be timed. The following is what I came up with (this is my reminder…) class Program { static void Main(string[] args) { TestMethod1(); } private static void TestMethod1() { LoggingHelper.TimeThis("doing something", () => { Console.WriteLine("This is the Real Method Body");...
So, as one of the OneTAP leads for Windows Azure focusing on the BizSpark folks, I run into many questions regarding HOWTO and in areas of Auto-Scaling, provisioning, authentication. The folks at Full Scale 180 (http://www.fullscale180.com) have created a nice sample application that demonstrates the following: Key Features Metering Automated Scaling Federated Identity Provisioning Contents Sample source code Design document Setup guide Sample walkthrough CloudNinja - Windows Azure Multi-tenant Sample...
This is a very nice addition and will make development across the various WebSSO protocols that much easier. Announcing the WIF Extension for SAML 2.0 Protocol Community Technology Preview! - Claims-Based Identity Blog - Site Home - MSDN Blogs
During hierarchy changes, MDS provides some basic rules for validating hierarchy members against some logic that is defined in the model within the MDS interface or through the Services interface. Behind the scenes, MDS is generating all sorts of T-SQL to ultimately enforce these rules. There is the ability to extend these rules with your own custom implementation if the configuration driven rules don’t suffice – either a SharePoint workflow or through custom CLR code packaged as an assembly. For...
How many of us cut our teeth with a Petzold book on Windows? Gee, I still have an OS/2 book on Presentation Manager from Mr. Petzold – pre-warp. Well, MS Press has released his latest book in XPS/PDF form, along with the samples up on the MS Press site. Free ebook: Programming Windows Phone 7, by Charles Petzold - Microsoft Press - Site Home - MSDN Blogs...
Throughout the blogosphere there’s been reports of an issue with ASP.NET that will bring a site to it’s knees – or so, it’s been overblown and reported as such. Microsoft has released an advisory here that discusses the matter. The workaround for now is something that any public website should’ve been doing anyway. That is, implement a custom error handling page and suppress revealing detailed errors. This is a normal part of a security audit and if you follow the STRIDE threat modeling you should...
Many times, especially during development, you could have certificates that are out of date, aren’t singed by any real authority (makecert, etc.), or even don’t match the host name that the request is issued against, but you want to test, etc. One example is if you want to run Fiddler to get a good over-the-wire trace of the HTTP traffic, when the endpoint is accessed over HTTPS. With Fiddler, you can capture HTTPS traffic, only thing is, it sticks it’s own certificate in the chain which doesn't...
Disclaimer: Use at your own risk – no warranties are granted or implied If you’ve worked with Windows Identity Foundation (WIF) without the help of ADFS 2.0, you’ll run into situations where you’ll need to potentially generate or regenerate the metadata used for federation. Additionally, while WIF supports SAML tokens, it doesn’t have support for SAML Passive Requestor protocol (urn:oasis:names:tc:SAML:2.... - you get that with ADFS 2.0. So, I needed the ability to quickly generate...
Make sure, for today at least, you navigate to “Downloads” instead of using the quick link on the right side. Summary This document is a collection of items from public blog sites, Microsoft® internal discussion aliases (sanitized) and experiences from various Test Consultants in the Microsoft Services Labs. The idea is to provide quick reference points around various aspects of Microsoft Visual Studio® performance testing features that may not be covered in core documentation, or may not be easily...
Full .NET Archive