-
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
-
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...
-
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...
-
There have been several techniques that have been posted on getting the MVC3 reference assemblies deployed as part of your Windows Azure Solution. http://blog.smarx.com/posts/asp-net-mvc-in-windows-azure This is something I learned today is in Visual Studio 2010 SP1. If you open up the context menu for...
-
This post is to report some differences when using MVC or IHttpHandlers if you’re attempting to set the Cache-control : max-age or s-maxage value under IIS7.x using the HttpResponse.Cache methods. [UPDATE]: 2011-3-14 – The missing piece was calling Response.Cache.SetSlidingExpiration(true) as follows...
-
With the updates to Windows Azure CDN announced this week [ 1 ] I wanted to help illustrate the capability with a working sample that will serve up dynamic content from an ASP.NET site hosted in a WebRole. First, to get a good overview of the capability you can read the Overview of the Windows Azure...
-
Along with the release of WebMatrix announced here.. http://blogs.msdn.com/b/webplatform/archive/2011/01/12/webmatrix-shipping-january-13-2011.aspx A slew of dependencies were released as well. If you download WebMatrix, it will install these dependencies – also via a new release of the Web platform...
-
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...
-
WebMatrix is back – sort of. There used to be Web Matrix in the early days of ASP.NET. Now, it’s back again, and it’s ready with some of the upcoming preview capabilities coming out – such as a view engine called Razor. ASP.NET MVC 3 Preview 1 http://www.microsoft.com/downloads/details.aspx...
-
Here I am just doing some banking and low and behold the bank I work with seems to be rolling out some “Pilot” stuff. From the error below, I quickly determine that they’re way overdue for moving to a later version of the Framework (I mean 1.1 come on!!!). The second thing is, why the heck aren’t you...
-
Let’s face it, during development, managing all the certificates if you’re doing anything with validating SSL/TLS traffic is a pain. Now with Windows Identity Foundation (fka Geneva) we really have to get crackin on getting used to managing certificates, setting up SSL sites, etc. So, here’s great post...
-
I’ve been writing one off methods that apparently are handled quite well for a few things in the type System.Web.VirtualPathUtility. For example, if you just want the page name or the extension, you have this utility to quickly get that from the current request path. http://msdn.microsoft.com/en-us/library...