Viewing the User Token from Visual Studio 2010 Debugger

When you’re debugging security related things, sometimes you need to take a look at the thread identities user token. When you’re inside of Visual Studio 2010 – in the watch windows you enter ‘$user’  and you’ll get the same as when in windbg with !token –n  

0

Additional Mime Types in Visual Studio 2010 Development Web Server

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…

0

Faking SPContext–for testing only…

Keith Dahlby has a good post on creating a fake SPContext.  Here’s the link and the code NOTE: This is not production safe code – use at own risk… http://solutionizing.net/2009/02/16/faking-spcontext/ public static SPContext FakeSPContext(SPWeb contextWeb) { // Ensure HttpContext.Current if (HttpContext.Current == null) { HttpRequest request = new HttpRequest("", web.Url, ""); HttpContext.Current = new HttpContext(request,…

0

Use an Action delegate to time a method…

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…

0

MiniProfiler– A simple but effective mini-profiler for ASP.NET MVC and ASP.NET.

Once in a while a good tool that I find out about that helps me developing solutions comes in real handy.  MiniProfiler is one of those tools. Developed by the StackOverflow folks it’s available in source or binary, and NuGet packages Take a look http://code.google.com/p/mvc-mini-profiler/ http://nuget.org/List/Packages/MiniProfiler

0

Slides for BUILD conference…

On the Channel 9 site where the BUILD conference sessions are available, there are several feeds that provide the media associated with the sessions. One that’s not listed explicitly is the PowerPoint slides – that feed is here: https://channel9.msdn.com/Events/BUILD/BUILD2011/RSS/slides

0