Error creating new MVC Controller for Entity Framework

I downloaded and installed Visual Studio 11 (2012) RC today but I am getting an error every time I try to add a MVC controller to a project. 

Unable to retrieve metadata for 'MyNamespace.TestEntity. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

I know this bug existed in Visual Studio 11 Beta but it is marked as fixed in Microsoft Connect.  If anyone has a fix for this, please post!



You can vote for this bug on Microsoft Connect here:

Brenton House

Posted by Brenton House | with no comments

Google introduces the Knowledge Graph

Google is rolling out a HUGE new feature in the next few days.  They call it the “Knowledge Graph” and it is supposed to be a much smarter system for gathering the search results that you want.  This will set SEO experts scrambling to see how to best optimize sites and content!


[via Google]

Introducing the Knowledge Graph

When you search, you’re not just looking for a webpage. You’re looking to get answers, understand concepts and explore.

The next frontier in search is to understand real-world things and the relationships among them. So we're building a Knowledge Graph: a huge collection of the people, places and things in the world and how they're connected to one another.

This is how we’ll be able to tell if your search for “mercury” refers to the planet or the chemical element--and also how we can get you smarter answers to jump start your discovery.

See it in action

When you search for things, people, or places that Google knows about, we can use the Knowledge Graph to enhance your search results.

Find the right thing
The words you search with can often have more than one meaning. With the Knowledge Graph we can understand the difference, and help you narrow your results to find just the answers you're looking for.

Get the best summary
See key facts about your search with the most useful and interesting information for that particular topic, based on the questions other people have asked.

Go deeper and broader
Make unexpected discoveries and explore a topic more deeply with a springboard of information at your fingertips. What you find may surprise you!

See where your curiosity will take you. Give it a try.

Brenton House

Basic WCF Authentication with SQL Membership Provider

There is an interesting article on Code Project about using WCF Basic Authentication with SQL Membership Provider.   Obviously, there are much more sophisticated ways of securing WCF services but it is an interesting how-to for getting basic security for WCF up and running.

WCF Basic Authentication with SQL Membership Provider

We will show you how to set up WCF Basic Authentication using the SQL Membership Provider provided by Microsoft.It is highly recommended that you walk through the explanations by looking at the source code as it will help you gain a more solid understanding.You can also run the application on your computer.
We will assume you already know how to setup WCF to run in https, since basic authentication without https would be meaningless because the user name and password would be passed as plain texts in the network.

We will show you:

  • How to setup the database and the Web Site Administration Tool from the .net framework for managing the Users and Roles
  • How to setup the WCF Basic Authentication under https and use SQL Membership Provider to validate users and roles
  • How to make your WCF service consumable by other other platforms such as Java by making the WSDL a single file

You can also see how to make your service consumable by any technology and also set up error handling here.


Brenton House

Posted by Brenton House | with no comments

Frequently Asked Questions about Free Upgrade on SkyDrive


You’ve been with us a long time, and through a lot of changes. We appreciate you sticking with us, and we want to make it easy for you to keep using your 25 GB of free online storage. All you need to do is go to the SkyDrive storage page and choose Upgrade my storage. That’s it—you’re locked in for 25 GB for free.*

Frequently asked questions

  1. Why is the storage limit changing?
    When designing the new SkyDrive, we wanted to create personal cloud storage that was both powerful and that had enough storage to meet the needs of most people—for free. The new SkyDrive offers 7 GB of storage. That’s enough for 20,000 Office docs or 7,000 photos. And unlike before, you can upload big files (up to 2 GB) and automatically sync files or entire folders to SkyDrive right from your PC.

    We also wanted to offer additional storage options for people who needed more, without applying a single limit to everyone. So we now offer affordable plans to add up to 100 GB of additional storage to SkyDrive.

  2. What are the new features?
    SkyDrive for PC or Mac: Install SkyDrive on your computer and you can access files in your SkyDrive right from your desktop—online or offline. Files in your SkyDrive folder are automatically kept up to date across your PCs and Macs. Available for Windows 8 Consumer Preview, Windows 7, Windows Vista, and Mac OS X Lion.

    Apps for Windows Phone, iPhone, and iPad: Get to your files while you’re on the go with the new SkyDrive for iPad app and updated apps for Windows Phone and iPhone. And of course you can still go to from your phone’s browser.

    Fetch files: Forgot to put a file in your SkyDrive folder? You can access any file stored on your PC running Windows from

    Increased upload sizes: Now you can upload and share files up to 2 GB.

  3. What happens if I don’t upgrade my storage? Will I lose my stuff?
    No. In the new SkyDrive, everyone gets 7 GB of free storage. If you were using close to this amount before the latest update, we’ve automatically upgraded your storage already . You can always see how much storage you have by signing into SkyDrive and checking the storage meter.

  4. Where can I go to learn more?
    You can get more information about SkyDrive on our website. If you have any questions, you can get answers in the SkyDrive forum.

Brenton House

Posted by Brenton House | with no comments

Microsoft Cloud services are changing... Windows Live is dead. Long live SkyDrive. 

We have talked quite a bit about SkyDrive and using your Microsoft account for the sign-in and roaming capabilities of Windows 8. These are just two aspects of a broad service infrastructure that you can tap into when using Windows 8 (and Windows Phone, Xbox LIVE, and a host of other services and apps). We want to talk more about the capabilities and features of cloud services for Windows 8 and Windows Phone. To get started, Chris Jones, the VP of our Windows Live group responsible for the development and operations of all of the services and apps, authored this post to introduce the reimagined role of cloud services in Windows 8.


Brenton House

Posted by Brenton House | with no comments

Microsoft SkyDrive has received a major upgrade!

Microsoft SkyDrive has received a major upgrade that allows you to sync 25GB for free. Upgrades are dirt cheap at $10/YEAR for an extra 20GB of space. Everyone is preparing for Google's 100GB Google Drive announcement...

I have installed the client on Windows 7 and on Mac OS X Lion. Haven't had any issues yet but I will post updates with how it works. If everything goes well, it will replace my Dropbox for sure!

Brenton House

Using Windows 8 and Visual Studio 11 Together

So I broke down and installed Windows 8 Preview on a machine... Not the experience I was expecting. I hope that this is nothing like the final version because Windows 8 Preview looks horrible and it is even harder to navigate.

Anyways, I decided to see if I could put Visual Studio 11 on it. I know, beta on beta, but that's how I roll. This won't be a really long post about it because it won't even install on it. I tried several different methods but no luck.

Since I was less than impressed with the Windows 8 UI, I opted to wipe the machine and put Windows 7 on it. Haven't had any problems with Windows 7 and Visual Studio 11 Beta together!

Post comments if you have had a better experience and how you worked around any issues!

Brenton House

Installing latest Windows 7 updates could cause unbootable system

Be careful when installing the latest updates that just came out from Microsoft yesterday.  I have only tried them on one machine but after installing the latest updates from Windows Update, my machine rebooted and Windows 7 will no longer start.

I have tried repairing my installation but that does nothing for the situation. 

The Starting Windows logo comes up for a couple of seconds and then the machine automatically reboots again.

Brenton House

Activating Windows 7 on different hardware

With Vista, if you replaced hardware on your machine or put your hard drive in a new computer, Windows would prompt you to activate online.  You were typically given 5 or so activations before your key would no longer work.

With Windows 7, if you replace hardware, you still get the Windows Activation message saying that you must activate in 3 days.  However, now you must reactivate using the automated phone system.  Online activation can only be accomplished if you are reactivating with the same hardware.


I wonder if you can now reactivate more than 5 times on the same hardware?  This would make sense since they are storing your hardware information to match up with your activation key.

Brenton House

Avoid creating hidden 200MB partition in Windows 7

The first few times I installed Windows 7, I noticed that it created a hidden 200MB active partition on my primary hard drive.  The purpose of this partition is to store the boot files and the Windows Recovery Environment (WinRE) for repairing your computer if necessary.  Once it is created, it is very difficult to remove and you risk your computer not booting.

Now this is a good idea in theory and for most people, this won’t matter.  But when I am setting my my systems (at least with Vista and Windows 7) is that I install the OS on a machine and configure it exactly the way I want it.  I then install all the software on it and take an image of it using Acronis TrueImage.  I can then take that image and setup a new computer (with different hardware) within a matter of minutes.

This whole 200MB partition deals complicates the imaging process and so I looked into the details of it.  Apparently if you install Windows 7 on a drive with unpartitioned or unallocated space.   Create the primary partition first by choosing Drive options (advanced).  When you get this dialog box: “To ensure that all Windows features work correctly, Windows might create additional partitions for system files.”  Hit Cancel.  The boot files will now be put on the primary partition that you created earlier.


If you aren’t going to be imaging your system or you want to setup dual boot, you can go ahead and let Windows 7 do it’s thing and create the extra partition.

Brenton House

More Posts Next page »