Microsoft

This one is for future-Sam, the next time I spend 20 minutes searching Google for a solution to this problem. Smart quotes convert neutral quotation marks to typographic quotation marks automagically. They can be a real pain in some applications, when your text is displayed to other users in a different font (mIRC, for example). Non-smart, neutral, double quotes look like "this." Smart, typographic, double quotes look like “this.” Applications that use Microsoft Rich Edit controls allow you to turn smart quotes on or off with CTRL-SHIFT-' (that’s a neutral single quote). Hopefully I won’t...

posted @ Monday, May 06, 2013 5:47 PM | Feedback (0) | Filed Under [ Microsoft ]

Update ReSharper 7.1.3 has been released. See JetBrain's release notes for guidance. After installing Visual Studio 2012 Update 2, the unit test runner in ReSharper fails to run tests – all unit tests display “pending” status and never complete. This is a known issue with current versions of ReSharper (7.1.2 and 8.0). http://stackoverflow.com/questions/15829723/cant-run-mstest-unit-tests-via-resharper-after-upgrading-to-vs-2012-update-2 http://youtrack.jetbrains.com/issue/RSRP-339546 http://youtrack.jetbrains.com/issue/RSRP-339987 Grab the latest “private” 7.1.3 build from the links above, install, and carry on with your unit testing. There...

If you’re running a mixed team of developers with different versions of Visual Studio, you’re going to run into problems with solution and project file version compatibility. Theoretically, Visual Studio 2012 changed that; all solution and project files are backwards compatible! Yay! Problem solved. Except for our old friend .dbproj from Visual Studio 2010. Visual Studio 2012 converts .dbproj files into .sqlproj files, which Visual Studio 2010 can’t open. Google tells me that I just have to install SQL Server Data Tools for Visual Studio 2010, and everything will be great! Except that the current...

This one’s for my reference, mostly; hopefully I don’t spend hours trying to debug this error next time. The scenario is that you’re using an EntityDataSource to bind some entities to a ListView. Inside the ListView, you’ve got a nested data-bound control that’s trying to bind to a collection property of the current entity. For example, you bind a list of CustomerOrder entities to the parent ListView, and then bind the collection of CustomerOrder.CustomerOrderLines to a child ListView to render the products the customer has purchased on each order. Using the EntityDataSource in its default state gives...

A couple of years ago I posted my solution for the infamous “A potentially dangerous Request.Form value was detected from the client” error when using TinyMCE with ASP.NET 4.0. The solution worked (mostly) without turning off request validation. Since then, I’ve changed my approach slightly; I’ve dropped the Moxiecode TinyMCE ASP.NET assembly and have gone with a purely JavaScript solution. I think it works better, and it’s a lot cleaner and more up to date. There are a few parts to this: Implementing TinyMCE JavaScript version Decoding HTML server-side...

If you’re using ASP.NET Routing (without the MVC abstractions), you’ll be trying to route http://www.mysite.com/Default.aspx sooner or later. This won’t work: public static void RegisterRoutes(RouteCollection routes) { routes.Add("Default", new Route("Default.aspx", new RouteHandler("~/Site/Default.aspx"))); } It won’t work because the request isn’t actually for Default.aspx, the request is for the site root, which IIS will catch. IIS responds by attempting to serve the default page for the site (probably Default.aspx), which may or may not exist. To route requests to the site root, you’ll need to do this instead: public static void RegisterRoutes(RouteCollection routes) { routes.Add("Default", new Route(string.Empty, new RouteHandler("~/Site/Default.aspx"))); } We’re...

By now, you’ve all read that Drive Extender has been pulled from “Vail” and “Aurora”. Here’s Microsoft’s announcement post and attempt at damage mitigation: When weighing up the future direction of storage in the consumer and SMB market, the team felt the Drive Extender technology was not meeting our customer needs. Therefore, moving forward we have decided to remove the Drive Extender technology from Windows Home Server Code Name “Vail” (and Windows Small Business Server 2011 Essentials and Windows Storage Server 2008 R2 Essentials) which are currently in beta. While this removes the...

The nasty ASP.NET error-handling security vulnerability has been patched. Go hit Windows Update right now. And if you’re a web developer, make sure your customer sites get the same treatment.

From ScottGu: A few hours ago we released a Microsoft Security Advisory about a security vulnerability in ASP.NET.  This vulnerability exists in all versions of ASP.NET. An attacker using this vulnerability can request and download files within an ASP.NET Application like the web.config file (which often contains sensitive data). At attacker exploiting this vulnerability can also decrypt data sent to the client in an encrypted state (like ViewState data within a page). You can download the .vbs script here.  Simply copy/paste the script into a text file...

Update I’ve updated my solution for this issue to be more robust and easier to follow. Please read the latest post instead. TinyMCE is a great little WYSIWYG JavaScript text editor that we use quite often inside administration pages. It’s lightweight and just works out of the box. Well, except for the little issue of HTML encoding its output. When you submit an ASP.NET form that contains the TinyMCE text editor, you get this lovely message: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentBody$TextBoxBodyHtml="<p>Test!</p>"). Which is good,...

Search

Site Sections

Recent Posts

Archives

Post Categories

WHS Add-In Tutorial

WHS Blogs

WHS Development