Archive for the ‘Visual Studio 2010’ category

Visual Studio 2012 Tip of the day

January 12th, 2013

I have multiple screens when I am at work so when I take my laptop home I like to work on that and as a result I have issues with windows not showing up on the screen. If you are like most Visual Studio users you make heavy use of the ‘Find in Files’ tool (CTRL+SHIFT+F), its a very handy tool. Well, if you run multiple monitors and you try to find it, it will more than likely be somewhere else and you won’t be able to find it. If you would like this window to show up, it’s gonna cost you some personalization to your studio environment, but it was worth it to me, so I went ahead and did this to get my find tool back:

Just simply Navigate to Window > Reset Window Layout, and agree to the Are you sure you want to…? prompt, that will reset your docked windows but will bring back these floating ones, but these little floating windows are pretty valuable IMO, I hope this helps.

Windows Azure Error: Not running in a hosted service or the Development Fabric.

May 23rd, 2012

You may get this error sometime when you are trying to launch your azure project out of studio and it will show up in the Yellow Screen of Death or YSOD, here is a screenshot of it.

Basically you will get this error if you either didn’t set your Azure Project as the startup project or you didn’t load Visual Studio under administrative privileges, I hope that this helps.

Keyboard stops responding in Visual Studio 2010 when editing js files.

April 9th, 2012

It appears that sometimes when I am editing a javascript file in Visual Studio 2010, the IDE will just stop responding to my keyboard.  Thinking it was my keyboard I tried unplugging and re plugging it back in to see if it is a USB issue and that doesn’t fix it.  I actually found a bug report to Microsoft located HERE to which there are no solutions provided, just a “We are planning on fixing this in the next version.  I will report below some of the things that I have done that have brought the keyboard back for me in case you run into this problem yourself.

1)  If I press Ctrl+Shift+Caps Lock+Tab all at once it seems to free it back up for me.
2)  CTRL+TAB either once or twice seems to do it as well.
3)  Sometimes, closing and re-opening the specific code window I’m working in fixes it.

I hope this fixes this issue for you should you happen to run into this problem.

Publishing apps to Windows Azure from Visual Studio 2010

April 5th, 2012

I have been tinkering around with Windows Azure using Visual Studio 2010 and I am finding that more and more of the articles you find on the internet are either outdated or just wrong. This is very well likely due to the fact that things have changed over the course of the last year or so with Windows Azure. Here is the steps I took to get my app actually published to Windows Azure, hope it helps.

I am not going to go into the creation of the app, just the publish part of it, there are tons of examples out there that go into details of how to create your app and there are several example apps you can download as well. You have to make sure you have a Windows Azure account of course to go through this tutorial I have here as well, again, pretty self-explanatory.

 

The first thing to do is open your project in Visual Studio 2010 and right click on your Azure Project and click on Publish:

The next step you will see a screen like this:

You will need to create a Certificate by dropping down the Credentials dropdown and then hitting “New”, that will bring up a screen like this:

You can make your certificate in this screen and then use the “Copy the full path” link there to get it copied to the clipboard and then you will also need to get your subscription ID from the Windows Azure portal, you can find that under “Hosted Services” under the right hand pane in the “Subscription ID” box.  When you get that created, you can click on ok and you are almost ready to publish your app to azure.

Before you click OK on the next screen, over in your Azure portal, you need to make sure to upload your certificate to Windows Azure so that your app will be authenticated with the server.  In the azure portal, locate the “Management Certificates” under “Hosted Services, Storage Accounts and CDN”, click on that and you will see something like this below.

Then just click on the “Add Certificate” button

and you will see a screen like this one:

Your subscription will have been chosen assuming you have already taken care of all of that before by signing up for azure, you then click on the Browse button and then paste in your directory, you will probably have to clear out the certificate key filename to allow you to open the directory to choose the file, then ok that and then ok this screen and you will have your app authorized for azure.

Finally you can go back to studio and click on your ok button to publish your app to azure, it does take a while and the progress of the publish will show up in the lower section of studio in the activity log.