Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

It's Been a While

AddThis Social Bookmark Button
The news about the orphaning of Silverlight hit me like a rock. I dove head first into Silverlight/MVVM a few years ago and had begun to feel like I could bend it to my will. I was disappointed, unhappy, and just sad about this news. Pair that with a very bad case of "empty nest" syndrome (I really miss my daughters!), and I was too low to get excited about creating a blog post. A few weeks ago, I began to feel the weight of this depression ease. After having some fun with a preview of VS
2012, a European trip with my immediate family, a week in Wisconsin with my extended family, and a long week-end at Comic-Con with my oldest daughter, I was starting to feel normal again. (See the Comic-Con pictures here.) I'm glad to be back here, in the blog-sphere.
...(Read whole news on source site)

Be the Next Microsoft Employee Finale

AddThis Social Bookmark Button
Here’s a little fun … … Are you the next Microsoft employee? Here is the final episode of Be the Next Microsoft Employee, where the winner gets the grand prize -- a job at Microsoft.   It really happens too – the winner started July 30th, 2012.  Check out the finale episode of Be the Next Microsoft Employee: (Note – If the video doesn’t play for you, try watching directly on YouTube at Be the Next Microsoft Employee.) It’s a great little video.   One of the contestants even poses the question –
“To Azure? … or Not to Azure?” If you think just being technically strong is the name of the game, that’s not so. I couldn’t help but think of shtick by comedian Mitch Hedberg where he complains that to be a comedian, you have to be more than a comedian to be successful. “So you're a comedian, but can you act? … It's like asking a cook, OK, so you're a chef, but can you farm?” I liked this comment by judge, Tim DiMarco: “In addition to technical skills, your ability to...(Read whole news on source site)

Using OData in Windows 8 Apps for Windows 8 RTM

AddThis Social Bookmark Button
The following is an excerpt from Chapter 6 of my book, Building Windows 8 Apps with C# and XAML. The Open Data Procotol (OData) is a web protocol used for querying and updating data. It is a REST-based API built on top of Atom that uses JSON or XML for transporting information. Windows 8 applications have native support for OData clients once you download and install the client from: http://go.microsoft.com/fwlink/?LinkId=253653 To access OData services, you simply add a service reference the same way you would for a SOAP-based web service. A popular OData service to use
for demonstrations is the Netflix movie catalog. You can browse the service directly by typing http://odata.netflix.com/catalog/ into your browser. In most browsers you should see an XML document that contains various tags for collections you may browse. For example, the collection referred to as Titles indicates you can browse all titles using the URL, http://odata.netflix.com/catalog/Titles. The Netflix project (available from Chapter 6 in the download available at http://windows8applications.codeplex.com) shows a simple demonstration of using this OData feed. The main URL was added as a service reference the same way the weather service was added in...(Read whole news on source site)

What is Inversion of control and why we need it?

AddThis Social Bookmark Button
Most of programmer need inversion of control pattern in today’s complex real time application world. So I have decided to write a blog post about it. This blog post will explain what is Inversion of control and why we need it. We are going to take a real world example so it would be better to understand. The problem- Why we need inversion of control? Before giving definition of Inversion of control let’s take a simple real word example to see why we need inversion of control. Please have look on the following code. public class class1 {
private class2 _class2; public class1() { _class2=new class2(); } } public class class2 { //Some implementation of class2 } I have two classes “Class1” and “Class2”.  If you see the code in that I have created a instance of class2 class in the class1 class constructor. So the “class1” class is dependent on “class2”. I think that is the biggest issue in real world scenario as if we change the “class2” class then we might need to change the “class1” class also. Here...(Read whole news on source site)

A Method for Populating a Dropdown List in ASP.NET MVC

AddThis Social Bookmark Button
I’m asked quite a bit how to bind a dropdown list in ASP.NET MVC. So there are about 10,000 ways to do it, but here’s one. First, we’ll create a simple interface to return a list of SelectListItem so we can use the built-in DropDownListFor() later on. public interface ISelectListProvider
{
IEnumerable Provide();
}
Then we can create a SelectListProviderAttribute to take in the Type of list provider we want. You can see in this example I'm instantiating the object with StructureMap...you could do this with Activator or something else.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class SelectListProviderAttribute : Attribute
{
public ISelectListProvider Provider { get; private set; }

public SelectListProviderAttribute(Type providerType)
{
if (typeof(ISelectListProvider).IsAssignableFrom(providerType))
{
Provider = (ISelectListProvider) ObjectFactory.GetInstance(providerType);
}
else
...(Read whole news on source site)

Unable to start debugging WWAHost.exe error with Windows 8 HTML Apps

AddThis Social Bookmark Button
Introduction All throughout my blog you will find tons of blog posts for common problems that I have encountered while developing applications using Microsoft Technologies. This post is no exception. While I was recently working on a Windows 8 HTML application, I kept getting the following error from VS2012 RTM. I searched and searched the net for an answer and came up empty. Most everyone said, “Upgrade to the RTM bits!” But I was already on the RTM bits of VS2012 and Win8. So what next? The first thing I decided to do
was figure out what exactly WWAHost.exe was. What is it? Microsoft defined it here as: “The process that hosts and executes a Metro style app using JavaScript is called WWAHost.exe. This process provides a superset of functionality greater than that provided by the Microsoft Internet Explorer browser. Therefore, if your web app runs under Internet Explorer (and does not incorporate the unsupported technologies listed later in this topic), it can also easily be run under WWAHost.exe.” So now that we know it is a process that hosts and executes a Metro Style App using...(Read whole news on source site)

Important Note: The Visual Studio 2010 ALM Virtual Machine is Expiring Soon

AddThis Social Bookmark Button
The Visual Studio 2010 ALM Virtual Machine will stop working on September 10, 2012 and will not be updated. If you are still using that virtual machine, please upgrade to the Visual Studio Visual Studio 2012 RTM ALM virtual machine. The 2012 version is based on final RTM software and includes all of the sample data and hands-on-labs / demo scripts which were available in the 2010 ALM virtual machine. The good news is that 2012 virtual machine uses a different build process which effectively gives it an infinite shelf life, since you can retain the original
RAR files and extract a fresh copy whenever you need to. That fresh copy can be activated and will work for 180 days.
...(Read whole news on source site)

Updated: Visual Studio 2012 RTM ALM Virtual Machine and Hands-on-Labs / Demo Scripts

AddThis Social Bookmark Button
The Visual Studio 2012 RTM ALM Virtual Machine is now available! This new VM replaces the previously available Visual Studio 2012 RC ALM virtual machine to use the final Visual Studio 2012 RTM releases.   This is the most comprehensive ALM virtual machine yet. It includes 20 hands-on-labs / demo scripts. 8 of these labs highlight features/scenarios which are brand new in Visual Studio 2012, and the remaining 12 of these scenarios were upgraded from the older Visual Studio 2010 ALM virtual machine.   Go here to start your downloads and to read
more about this release!
...(Read whole news on source site)

Adding an Admin user to an ASP.NET MVC 4 application using a single drop-in file

AddThis Social Bookmark Button
I'm working on an ASP.NET MVC 4 tutorial and wanted to set it up so just dropping a file in App_Start would create a user named "Owner" and assign them to the "Administrator" role (more explanation at the end if you're interested). There are reasons why this wouldn't fit into most application scenarios: It's not efficient, as it checks for (and creates, if necessary) the user every time the app starts up The username, password, and role name are hardcoded in the app (although they could be pulled from config)
Automatically creating an administrative account in code (without user interaction) could lead to obvious security issues if the user isn't informed However, with some modifications it might be more broadly useful - e.g. creating a test user with limited privileges, ensuring a required account isn't accidentally deleted, or - as in my case - setting up an account for demonstration or tutorial purposes. Challenge #1: Running on startup without requiring the user to install or configure anything I wanted to see if this could be done just by having the user drop...(Read whole news on source site)

Home