[#VS2010] Error working with ASP.NET MVC and IIS in Windows 8

image

Buenas,

today was about to begin work on a brand new project of ASP.NET MVC in my Visual Studio 2010 on Windows 8, when I came across the following:

image

—————————
Microsoft Visual Studio
—————————
ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.
—————————
OK Help
—————————

Chan! new Windows 8 making mischief, but clear in reality was I that trying a few scripts I delete some features of Windows. So from the option "Turn Windows features on or off", simply choose which are necessary for ASP.NET 3.5 and ASP.Net 4.5 and ready!

image

If it is that, these days I fix one thing and break 2!

 

Saludos @ Home

El Bruno

image image image

[#KINECTSDK] Kinect SDK 1.5 and Developer Toolkit Released!

image

Buenas,

let’s go with one of the good news of the day:

The Kinect 1.5 SDK and developer Toolkit have been released.

In this case the download is split into these two components where it is no longer necessary to install the SDK with all the samples, but that if we are developers, because we will have our own set of tools.

Now that we can already buy Kinect in several countries (including Spain), we find that other 15 countries are added to the list. But in reality what we care about are the new features included in this version. We go with the most important

  • Kinect Studio. A tool that allows you to record and play a sequence of actions against the sensor. Essential to avoid having to stand and take a unitary test human everytime you change something in an application.
  • The Guide to developing applications for applications with Kinect. Essential 70 pages with many details to take into account for developments with Kinect.
  • Face Tracking, facial recognition capabilities. Beware, this is not identify faces, but identify the points of a face. With a little work we recognize smiles, surprises, shocks, etc.
  • Detection of points of skeleton in people seated. This is amazing, the ability to detect the upper joints of a skeleton but people seated, really opens another range of possibilities of applications.
  • The camera now supports a resolution of 640 x 480 at 30 fps, with improvements in low-light environments.
  • Cool! Joint orientation! We not only the position of a Joint, but that we also have the ability to see the "orientation" of the same.
  • New languages for speech recognition: French, Spanish, Italian and Japanese.

Well now it try those things to which we had no access without the Beta SDK and post details on it Risa

Source: http://blogs.msdn.com/b/kinectforwindows/archive/2012/05/21/kinect-for-windows-runtime-and-sdk-version-1-5-released.aspx

 

Saludos @ Home

El Bruno

image image image

[# VS11] May I work on the same project with Visual Studio 2010 and Visual Studio 11?

image

Buenas,

First we go with the answer to the question:

If. It is possible to work on the same project with Visual Studio 2010 and Visual Studio 11 .

Now a little it more than details based on the experience of the past half year. With the arrival of Visual Studio 11, again we see in the manual "project compatibility" between projects in Visual Studio 2010 andVisual Studio 11. This story we know it from VS2005, VS2008 and VS2010; and we know that it is not so simple.

When you migraba a VS2010 project updated the project (.csproj) file and if you worked with Crystal Reports reports, or setup projects, because usually you have one or more problems that can easily live VS2005 and VS2010.

Visual Studio 11 takes a different approach and promises to not change the project files. But taking into account several changes we have in Visual Studio 11, better to see scenarios supports.

For example, I’ve created a solution with 17 projects representative of what it found almost "out of the box" in Visual Studio 2010. Since ASP projects.NET MVC 2 until Office extensions. I have included, only by way of example a project for Windows Phone, although I know that Visual Studio 11 not open it.

image

However, when we opened this solution with Visual Studio 11, the first thing we see is that the Visual Studio Installer project type is deprecated. This is not new, because we knew for some time, but to take this into account.

image

Another error, but this time configuration:

image

There is a little touch the innards of Visual Studio 11 to make it work with an earlier version of SQL Express.

But after a second migration we have ready the project in Visual Studio 11

image

Now, if you were working with ASP projects.NET MVC 2.0, you won’t other than update you to the latest version. ASP projects.NET MVC 2.0 not support and kindly suggest you that you upgrade them to version ASP.NET MVC 3 .

ASPNETMVC2WEBAPPLICATION1_NET4\ASPNETMVC2WEBAPPLICATION1_NET4. CSPROJ:THE PROJECT FILE ‘E:\SRCELBRUNO\TESTS\PROJECTCOMPATIBILITY\TESTFORVS11\ASPNETMVC2WEBAPPLICATION1_NET4\ASPNETMVC2WEBAPPLICATION1_NET4.CSPROJ’ CANNOT BE OPENED. THERE IS A MISSING INTERNET PROJECT. INTERNET: ‘{F85E285D-A4E0-4152-9332-AB1D724D3325}’ IS UNSUPPORTED BY THIS INSTALLATION.HTTP://GO.MICROSOFT.COM/FWLINK/?PRD=12395 & PVER = 11 & SBP = PROJECTTYPEDEPRECATED & PLCID = 0 × 409 & CLCID = 0 × 409 & AR = MSDN & SAR = PROJECTCOMPATIBILITY & O1 = {F85E285D-A4E0-4152-9332-AB1D724D3325 }}

Obviously, Windows Phone projects are not yet supported in Visual Studio 11 .

PhoneApp1_Net4\PhoneApp1_Net4. csproj:The project file ‘E:\srcElBruno\Tests\ProjectCompatibility\TestForVs11\PhoneApp1_Net4\PhoneApp1_Net4.csproj’ cannot be opened. There is a missing Internet project. Internet: ‘{C089C8C0-30E0-4E22-80C0-CE093F111A43}’ is unsupported by this installation. http://go.microsoft.com/fwlink/?prd=12395 & pver = 11 & sbp = ProjectTypeDeprecated & plcid = 0 × 409 & clcid = 0 × 409 & ar = MSDN & sar = ProjectCompatibility & o1 = {C089C8C0-30E0-4E22-80C0-CE093F111A43 }}

Now, the Solution Explorer panel us makes clear, what types of projects are supported, which could not be loaded and which are incompatible.

image

If we try to compile the project, we will see that the same compiled correctly. But now comes the litmus test:

You can Visual Studio 2010 open the new solution and compile the modified projects?

And the answer is…. NOT! The first thing we see is the conversion wizard and perversely did so to the project of ASP.NET MVC 2.

image

The question at this time, dear reader, is to how demons amending this file if the Visual Studio 11 crack has told me that it can not load?. Therefore if, modify and much to the csproj file, and it is for this reason that at this point Visual Studio 2010 understands that you need to update it.

So if you update it with VS2010, so there is no more problems, unless you want to work in mixed-mode on your computer with VS2010 and VS11.

So the endpoints to be taken into account are as follows:

  • Until today Visual Studio 11 cannot be used to develop for Windows Phone.
  • With developments for AZURE, Visual Studio 11 does not yet support a clean upgrade from VS2010, but that is grounds for a full post
  • There is no support for projects of Visual Studio Installer in VS11
  • Be careful with ASP projects.NET MVC 2.0 if you think working with Visual Studio 11

The good thing about all this garden is then really work "side by side" between both Visual Studios without complications, something that before from VS2005 to VS2010 for example wasn’t so easy.

 

Saludos @ Home

El Bruno

image image image

[#VS11] HowTo: Include and des serialize a XML file in a #METRO application

image

Buenas,

today touches give an example of fairly simple code, but that can bring you a couple of headaches if you don’t know where to start. The idea is simple:

Include an XML file in a METRO application and des serialize it to work in an application.

This seems so simple, is complicated somewhat by METRO as the so so popular as System.IO namespaces and others with which we are accustomed to work because they are not available.

If add you to that, that the majority of the shares are in asynchronous mode, since the programming changes fairly. But of course, Visual Studio 11 comes to our rescue with new sentences ASYNC and AWAIT that really help us to program in asynchronous mode.

We split in the sample project we have a class sample data with 2 properties defined as the following example:

   1: namespace Application1

   2: {

   3:     public class SampleData

   4:     {

   5:         public string Id { get; set; }

   6:         public string Name { get; set; }

   7:     }

   8: }

We then include an XML file within a folder XML with the following information within the same file name:

   1: <?xml version="1.0"?>

   2: <ArrayOfSampleData 

   3:     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

   4:     xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   5:   <SampleData>

   6:     <Id>El</Id>

   7:     <Name>Bruno</Name>

   8:   </SampleData>

   9: </ArrayOfSampleData>

So at a glance, we can see that this XML is a serialization of an Array of elements of type SampleData .

Then is the interesting part, which is read from this file. The following code shows an example where theLoadSampleData() function returns a collection of elements of type SampleData reading a file called "data.xml" of an application directory called "XML".

   1: private async void BtnGetClick(object sender, RoutedEventArgs e)

   2: {

   3:     var collection = LoadSampleData();

   4:     await collection;

   5:     var item = collection.Result[0];

   6:     txtId.Text = item.Id;

   7:     txtName.Text = item.Name;

   8: }

   9:  

  10: public async Task<ObservableCollection<SampleData>> LoadSampleData()

  11: {

  12:     var storageFolder = await Package.Current.InstalledLocation.GetFolderAsync("XML");

  13:     var sampleDataItems = await LoadFromXmlFile<ObservableCollection<SampleData>>("data.xml", storageFolder);

  14:     return sampleDataItems;

  15: }

A couple of details to keep in mind is that the function LoadSampleData() is defined with a prefix async, denotes that it can run in asynchronous mode. This is possible because the reading of the working (line 12) directory is done in asynchronous mode.

At this point sentences where awaitis used for the execution of the asynchronous function deserve a special detail. The simplest define await is think that with this statement we can call asynchronous functions and when completion of them, await will return to the specified workflow.

Now for the interesting part which is desserialización in the XML file. For this use the function LoadFromXmlFile to internally, once he has read the contents of the file, des serializing it in memory (lines 3 to 6). The following code shows an example of this operation:

   1: public static async Task<T> LoadFromXmlFile<T>(string fileName, StorageFolder folder = null)

   2: {

   3:     var xmlString = await ReadFromFile(fileName, folder);

   4:     var ms = new MemoryStream(UTF8Encoding.UTF8.GetBytes(xmlString));

   5:     var ser = new XmlSerializer(typeof(T));

   6:     T result = (T)ser.Deserialize(ms);

   7:     return result;

   8: }

   9:  

  10: public static async Task<string> ReadFromFile(string fileName, StorageFolder folder = null)

  11: {

  12:     folder = folder ?? ApplicationData.Current.LocalFolder;

  13:     var file = await folder.GetFileAsync(fileName);

  14:     using (var accessStream = await file.OpenAsync(FileAccessMode.Read))

  15:     {

  16:         using (var inStream = accessStream.GetInputStreamAt(0))

  17:         {

  18:             using (var reader = new DataReader(inStream))

  19:             {

  20:                 await reader.LoadAsync((uint)accessStream.Size);

  21:                 var data = reader.ReadString((uint)accessStream.Size);

  22:                 reader.DetachStream();

  23:                 return data;

  24:             }

  25:         }

  26:     }

  27: }

I’m going to try to separate the code of the piece of POC that I am building, and after a bit of refactoring go up a more complete example.

 

Saludos @ Home

El Bruno

image image image

[# WP] HowTo: Install Microsoft.Xna.Framework reference for Windows Phone development in # Windows8

image

Buenas,

I am not a developer of Windows Phone applications, so are the cracks (@ RafaSermed or @ JosueYerayfor example), but since I have Windows 8 installed as main working platform, because I missed in face to finish a few touches to an application of WP.

Now that we have the Windows Phone SDK 7.1.1 Update that already allows us to install WP on Windows 8 development tools, because I thought that it was all fixed. But… zas! the first on the face, to the point of wanting to compile the project, because I realize that I’m lacking in XNA.

image

So ignorant of me, I think that installing Microsoft XNA Game Studio 4.0 it would solve my problems, but of course

trying to install XNA in Windows 8 is just as easy to scratch the back with knee

So he plays a little read installation logs, and after a while I realise that the fundamental problem seems to be related to a product that did not know until the day of today: Game for Windows Client.

And of course, the problem is the following:

  • The installer of Windows Phone tries to install a version of XNA, but cannot
  • Actually it can not, because the XNA Installer tries to install a version of Game for Windows Client and Windows 8 says NOT IN MY WATCH!

So slowly and lovingly, the steps to get everything to work are as follows:

That Yes, the interesting evening of Logs that I noticed today the does me anyone Risa

Downloads:

Saludos @ Home

El Bruno

image image image

[# VS11] NUnit plugin updated (Yahooo!)

image

Buenas,

today I was watching / updating a little code viejuno where used NUnit as a framework for my testing unit and clear, as we are now using 100% Visual Studio 11 development, so I decided to use the plugin to NUnit.

The good thing about VS11 is that it allows to use different plugins for unit testing (something already talked here), but better was my surprise when I found myself with a new version of the adapter for NUnit.

As in the Visual Studio Gallery PlugIn page there is no much information thereon, because I sign the following links to see innovations, because among other things that you there is no Active Bug brightens as developer Risa

Best regards

 

Saludos @ Home

El Bruno

image image image

[#VS11] Windows 8 and the Speech Recognition are brutal enemies when you are developing #METRO applications

image

Buenas,

today is I’ll try to share an experience of a typical Friday. Almost at the end of the development of a METRO application (cool not?), and doing a couple of tests in environments like laptops, tablets, touch. When I try some configurations and tests in the emulator I find the following error:

image

Note: if you’re wondering why I had to use the emulator of Windows 8, I encourage you to try to move from landscape to portrait a 5 Kilos HP Touch .

So taht’s it, the emulator can’t launch everything ok if you have activated Microsoft Speech and in case you need both, you’ll take a good annoyance.

But of course, is Friday better dig between encouraging phrases of Friday and move forward with a

Problems are always showing up, but solutions are also always showing up.

The more objective solution is to chante to a new religion “the creationism” and try to create an extension for the emulator that supports audio device. The more realistic option, is to test the application in the emulator without the audio features and remember the mother of Sinofsky (or as type the name of the boss of W8).

That Yes, with any of the 2 options already can have the application running with all the features we need.

image

Saludos @ Home

El Bruno

image image image

[#RESHARPER] ReSharper 7 EAP for Visual Studio 11 expired? Not problem

image

Buenas,

If you has expired the trial of the EAP of 7 ReSharper for Visual Studio 11 and when you open Visual Studio you are with

image

You’ll see that the link proposes to upgrade to a new version does not work. So the best thing is to uninstall 7 Resharperhandmade from "add and remove programs"

image

And once uninstalled, are again going to the list of night-time compilations of ReSharper 7 which you can access fromhttp://confluence.jetbrains.net/display/ReSharper/ReSharper+7+EAP+for+VS11+Beta, downloaded the version that puts us more happy and ready to reinstall Risa

In 10 minutes we have the help of ReSharper embedded within the IDE.

 

Saludos @ Home

El Bruno

image image image

[#VS11] Some colors are back in Visual Studio 11

image

Buenas,

and it is that about VS11 Beta was somewhat intolerable. A little more bland and it was like chewing wet cardboard. Now it seems that we will have a Carnival of colors that help us think seriously if both work with redial blue not burn us the vista for the next RC.

In the post of the Visual Studio product team are all examples, but some I do not end like.

For example, defining a clearer than the current grey background color and mark the selected elements into blue, is very Metro, but I do not know if this idea is correct for an IDE.

image

image

Not to mention if we above begin to use colors as indicators of State or progress. The Rio film will be a movie in black and white next to the new Visual Studio.

image

That Yes, there are some interesting things like the new colors of the Solution Explorer or a friendlier toolbar

image

image

Although, after a couple of months, I ended up getting used to the new IDE and I understand that with this I will do the same.

That Yes, in my next life I want to be an expert in user experience Risa

Source: http://blogs.msdn.com/b/visualstudio/archive/2012/05/08/visual-studio-11-user-interface-updates-coming-in-rc.aspx

 

Saludos @ Home

El Bruno

image image image

[# VS11] Test Scribe now with support for Microsoft Test Manager 11

image

Buenas,

Quick note so I will not forget about this:

Test Scribe. that extension that lets you generate documentation from Microsoft Test Manager information, now supports working with Visual Studio 11.

image

By the way, and if you did not know, the tool is created and supported by the Visual Studio QA team Risa

Download: http://visualstudiogallery.msdn.microsoft.com/85b8215f-263f-4d1f-822b-307de339af38

Saludos @ Home

El Bruno

image image image