You are browsing the archive for hosting.

by Editor

Unhandled exception has occurred while running in Azure

March 22, 2012 in .NET, Articles, ASP.NET, News, Reference

Windows Azure, just like any other IIS website can crash if an unhandled exception occurs.  One way that this can happen is if you are calling an Async function call and in the function that is called on completion, you throw an exception. In this situation, you will see something in the Application event log that looks like this:      Note : you may not see both of these errors but either or both of them point to the same problem. The way to resolve this issue is to either wrap the code inside a Try/Catch block and catch the exception or see what is causing the exception and fix that bug.  But if a block of code can throw an exception, it is always good to wrap it so that it can’t cause the entire process to crash…(read more)

by Editor

Visual Studio 11 Express Beta for Web new features

March 22, 2012 in Articles, News, Reference

In earlier blog , we mentioned that Visual Studio 11 Express Beta for Web is available to download. Besides the common features seen in Visual Studio 2010 Web Express, it provides some new functionalities. TFS support VS11 Express Beta for Web added TFS support which including all of the TFS client features, such as source control, team explorer tool window, work item etc. It works with TFS 2010, Visual Studio 11 Beta TFS , and http://tfspreview.com/ . Unit test With VS11 Express Beta, you can create a unit test project into an existing web solution. Unit test explorer is fully functional to run unit tests and view results. MVC4 Beta MVC4 Beta templates are included in VS11 Express Beta for Web as well. When creating a MVC4 beta project with…(read more)

by Editor

Extending the Visual Studio 11 Web Browser Chooser and Browse With Menu to include Developer Profiles

March 21, 2012 in Articles, ASP.NET, ASP.NET MVC, News, Reference

I talked about some new features that have snuck made their way into the free version of Visual Studio for Web . One of the more useful ones is the Browser Chooser that allows you to quickly launch debug sessions with different browsers from within VS. I've actually been pushing on this for about 18 months, and even blogged about it in August of 2010 in " how to change the default browser in Visual Studio programmatically with PowerShell and possibly poke yourself in the eye ." In Visual Studio 11 Beta you get a nice dropdown with all the browsers (plus the new Page Inspector ). However, I got a good comment from blog reader Abhijit who said: The browser is a welcome addition (though past versions of VS do something similar). I'd…(read more)

by Editor

Microsoft Cuts Windows Azure Compute and Storage Pricing

March 21, 2012 in Articles, News, Reference

The savings begin with Microsoft’s Windows Azure Storage Pay-As-You-Go service, which now costs $0.125 per GB as opposed to $0.14 per GB, a savings of 12 percent. Microsoft also slashed the pricing for Windows Azure Storage’s 6 Month Plans as much as 14 percent across all tiers. Lastly, compute customers can now enjoy Windows Azure Extra Small Compute pricing of $0.02 per hour instead of $0.04 per hour, a savings of 50 percent. To exhibit the cost advantages offered by Windows Azure, Microsoft noted in a blog post that a 24×7 Extra Small Compute instance with a 100MB SQL Azure database can b…

by Editor

Features NO ONE NOTICED in Visual Studio 11 Express Beta for Web

March 20, 2012 in Articles, ASP.NET, ASP.NET MVC, News, Reference

There's a bunch of new stuff in Visual Studio 11 Express for Web that I suspect not everyone noticed. Remember that Express is our free version of Visual Studio. Sometimes I hear folks complain that Express isn't advanced enough, even though its free. Unit Testing is Built-into Visual Studio Express For example, no one noticed that Unit Testing is in Express. You can add a Unit Test to an existing Web Solution. I'll add a Unit Test Project, the right click on References and add a reference to System.Web.Mvc to my ASP.NET MVC Application. Note the new Add Reference dialog? It's got a search box, it's multi-threaded, and I can add multiple references by checkbox. That's new stuff, friends. Subtle, but it is one of those…(read more)

by Editor

Join us online on April 24 for the patterns & practices Symposium 2012

March 19, 2012 in Articles, News, Reference

Join us live on April 24th for our first ever online live streamed patterns & practices Symposium! Register at eventbrite to ensure you can attend and participate (and, of course, to help us gauge attendance so we can properly scale the streaming for the best experience). The April 24th online p&p symposium program 2012 will include keynote sessions and technical sessions focusing on building scalable applications in Azure, mobile development, node.js, CQRS, .NET Gadgeteer and a general overview of p&p roadmap. All sessions will be streamed live on Channel 9, and then made available for download later for people who couldn't participate (or who want to watch it again) The eventbrite registration site has the full and current…(read more)

by Editor

Digitally Signed Malware on the Rise

March 19, 2012 in Articles, News, Reference

Brought to the forefront in 2010 with Stuxnet, the infamous worm aimed at sabotaging industrial infrastructure, the use of stolen digital certificates is relatively new. Stuxnet’s creators digitally signed its rootkit components with stolen certificates from JMicron and RealTek, a pair of semiconductor manufacturers. The worm’s existence and complexity caught the security community by surprise. In fact, many researchers predicted that malware creators would begin adopting the same technique to work around driver signature enforcement employed by Microsoft in its 64-bit versions of Windows V…

by Editor

Drawing transparent glyphs on the HTML canvas

March 17, 2012 in Articles, ASP.NET, News, Reference

The HTML canvas has a set of methods, createImageData and putImageData, that look like they will enable you to draw transparent shapes pixel by pixel. The data structures that you manipulate with these methods are pseudo-arrays of pixels, with four bytes per pixel. One byte for red, one for green, one for blue and one for alpha. This alpha byte makes one believe that you are going to be able to manage transparency, but that’s a lie. Here is a little script that attempts to overlay a simple generated pattern on top of a uniform background: var wrong = document.getElementById( "wrong" ).getContext( "2d" ); wrong.fillStyle = "#ffd42a" ; wrong.fillRect(0, 0, 64, 64); var overlay = wrong.createImageData(32, 32), data…(read more)

by Editor

VS11 Beta JavaScript Feature comparison with VS2010sp1

March 15, 2012 in Articles, News, Reference

In Visual Studio 11 Beta, we have exciting JavaScript editing features for the developers. Last year, we blogged “ JavaScript Web development differences between Visual Studio 11 Developer preview and Visual Studio 2010 ”. Here are the differences between Visual Studio 11 Beta and Visual Studio 2010 . IntelliSense Description VS2010 Behavior Visual Studio 11 Beta Behavior Changed From VS11 Developer Preview ECMAScript 5 compliance No Yes. Visual Studio 11 Developer Preview fully supports ECMAScript 5. Auto-reducing Statement Completion List No Yes, if the IntelliSense is automatically enabled when typing. The following screen shots shows all the document's statement completion items that contains character "al": Completion Hint…(read more)

by Editor

Antivirus Poses as Windows Security Alert, March Patch

March 14, 2012 in Articles, News, Reference

The campaign’s attacks are said to begin when a Web user attempts to visit a WordPress blogger’s site. Instead of seeing the intended website, the user is redirected to a site hosting the rogue antivirus. The blogger will see that user’s traffic, however, even though they never get to see any actual content. The site performs a phony scan on the user’s computer and displays what appear to be existing Trojans found on the computer. In an attempt to look authentic, the rogue antivirus software carries the appearance of a typical Windows Explorer window and also employs a Windows Security Ale…