I started getting this error after I had one Web Platform Installer download issue while updating my Windows Azure SDK 2.0. So I had uninstalled all the Windows Azure component from my control panel and was still getting “IISConfigurator.exe has stopped working”.
I was trying a many things but some how when I changed the below and selected “IIS Management Console” it worked like a charm.
Namoskar!!!
After installing the new Windows Azure SDK 2.0 I am happy to see this new Server Explorer component which lets me connect and manipulate Windows Azure Storage Component.
After I click there, I am able to associate the same management certificate which I have used to connect my Visual Studio 2012 for deployment.
After I select the account it would show the available storages. And I can choose from them.
Once it is pointed, I will be able to browse individual elements like Blob, Queue and Table.
I can view the Table and also can add values there.
This is really handy.
While using ADO.NET Entity Framework’s CodeFirst and we call Find() method against the PrimaryKey field we get one record. But surprisingly if we dig deeper we will be able to see that it is calling Top 2 which means actually getting two rows.
Why is it so? Because just to track if there are more than one record in the field it will throw an error. Now the question is why is it possible to have duplicate record in the Primary Key value? Scenario could be, it may have the model created and later the database column was modified so it is no more primary/unique anymore.
Below is the generated query for
private static void SelectSingleEmployee(int id) { using (var ctx = new HRContext()) { Console.WriteLine(ctx.Emps.Find(id).EmpName); } }
exec sp_executesql N'SELECT TOP (2) [Extent1].[EmpId] AS [EmpId], [Extent1].[EmpName] AS [EmpName] FROM [dbo].[Emps] AS [Extent1] WHERE [Extent1].[EmpId] = @p0',N'@p0 int',@p0=1
Scott Guthrie Discusses Windows Azure SDK 2.0 http://channel9.msdn.com/Shows/Cloud+Cover/Episode-106-Scott-Guthrie-Discusses-Windows-Azure-SDK-20
Read this yet another amazing blog post http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx
Thank you. Thank you. Thank you!!!
Samples Used for Demo
Speech Synthesizer, Windows Azure and Chat, Windows Phone 8 Specific Demos
At SkyDrive http://sdrv.ms/139QFaN (This is active till May 30, 2013)
Windows Phone Toolkit and Sample http://aka.ms/wp8toolkit
Azure Chat Service http://gids.cloudapp.net/ (available till May 30, 2013)
Readings and Past recordings
Complete end-to-end feature demo done by Jumpstart and few Build sessions available for download at http://aka.ms/wp8jumpstart
Windows Phone 8 Training Kit http://aka.ms/wp8trainingkit
What's new in Windows Phone http://aka.ms/wp8new
Windows Phone 8 Code Samples http://aka.ms/wp8sample
For any further query please contact us at Twitter @wriju_ghosh and @ujjwalk
Great Indian Developer Summit we showed the power of WinJS by taking pic and setting it in HTML page. Later we have used the image and set it as Profile picture. This was part of our Windows Store apps demo.
The code is shared here
(function () { //intialize Camera and then enable Webcam capability in manifest var cam = new Windows.Media.Capture.CameraCaptureUI(); //Set the mode to still photo var mode = Windows.Media.Capture.CameraCaptureUIMode.photo; //Call the camera object Async cam.captureFileAsync(mode).then(function (capImage) { var img = capImage; var imgTag = document.createElement("img"); //Create html img tag imgTag.src = URL.createObjectURL(img); //HTML5 feature to convert image stream to temporary URL document.getElementById("content").appendChild(imgTag); // Add the img to the HTML to render //Part 2: Setting the UserProfile image from JS Windows.System.UserProfile.UserInformation.setAccountPictureAsync(img).then(); }); })();
(function () {
//intialize Camera and then enable Webcam capability in manifest
var cam = new Windows.Media.Capture.CameraCaptureUI();
//Set the mode to still photo
var mode = Windows.Media.Capture.CameraCaptureUIMode.photo;
//Call the camera object Async
cam.captureFileAsync(mode).then(function (capImage) {
var img = capImage;
var imgTag = document.createElement("img"); //Create html img tag
imgTag.src = URL.createObjectURL(img); //HTML5 feature to convert image stream to temporary URL
document.getElementById("content").appendChild(imgTag); // Add the img to the HTML to render
//Part 2: Setting the UserProfile image from JS
Windows.System.UserProfile.UserInformation.setAccountPictureAsync(img).then();
});
})();
I am very excited for the Hands on Lab Workshop tomorrow at Great Indian Developer Summit.
Windows Store App Development Hands on Lab
May 7 2013, 12.15 to 16.00 (Indian Standard Time) at Hall C.
By Goutham Upadhyaya (@goupadhy) & Wriju Ghosh (twitter @wriju_ghosh), Partner Consultant, Microsoft Corp, India
Find more at http://www.developermarch.com/developersummit/session.html?insert=gouthamtut1
Some prerequisite,
System Requirement:
Links for download http://msdn.microsoft.com/en-US/windows/apps/br229516
I am happy to announce here that I will be delivering another Windows Phone 8 session in this GIDS 2013.
Session Title: Windows Phone 8 New Features and Tips & Tricks for Developers
Date and Time: May 9, 2013 14:50 to 15:50 (Indian Standard Time)
Presenters:
Ujjwal Kumar (Twitter @ujjwalk), Technical Evangelist, Microsoft Corp, India (blog http://blogs.msdn.com/b/ujjwalk)
Wriju Ghosh (Twitter @wriju_ghosh), Lead Partner Consultant, Microsoft Corp, India. (blog http://blogs.msdn.com/b/wriju)
What are we covering?
As much as possible to give you all an idea of Windows Phone 8 development. Some tips to help you expedite the development process. Some store and test tips to help you make successful.
All the codes and samples we will show will be posted to this blog, keep an eye. We have made it intentional that there is no slide, we have only one to show our above contact as we believe that you will be needing it for future help. Hope to have an interesting time.
Details http://www.developermarch.com/developersummit/session.html?insert=ujjwalweb1
Developing Windows Store App in both XAML/C# and HTML/JS has been so easy. This is a series of eight hands-on lab modules that guide you through development of Contoso Cookbook, a realistic Windows Store app that incorporates many of the key new features available in Windows 8. You’ll learn to work with Windows 8 controls, view states, contracts, tiles and notifications, the Windows Store APIs, and other Windows 8 features. Choose the version of the lab series for the programming language you prefer: JavaScript and HTML, or C# and Extensible Application Markup Language (XAML).
System Requirement
· Supported operating systems: Windows 8
· Also required: Microsoft Visual Studio 2012
· Internet Connection (optional but good to have)
Download Links
Must to have
Attendee must have the Windows 8 installed with Visual Studio 2012. Internet connection is desired.
Windows Store apps comes with some amazing data bound controls. The most favorite among them is ListView and GridView. The ListView shows data in vertical scrolling mode and GridView shows data in horizontal scrolling.
My pal was building an app where she needs to display data in two columns while having the vertical scrolling enabled. This forced to have two data in two columns within ListView. We tried many things on it, even reached at an extent to have two image control in DataTemplate of ListView's ItemTemplate, but anyways it was obvious that approach was wrong. Because the inside DataTemplate if we click it considers all as one item. Then we found this trick of using WrapGrid this allows the column to be formatted. So we said there will be maximum of 2 columns and the size of the image needs to be defined inside it. The whole magic of displaying data is in MaximumRowsOrColumns
<ListView x:Name="lstData" Grid.Row="1"> <ListView.ItemTemplate> <DataTemplate> <Image Source="{Binding Path=ImagePath}" Stretch="Fill" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/> </DataTemplate> </ListView.ItemTemplate> <ListView.ItemsPanel> <ItemsPanelTemplate> <WrapGrid ItemHeight="100" ItemWidth="150" Orientation="Horizontal" MaximumRowsOrColumns="2"/> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView>
<ListView x:Name="lstData" Grid.Row="1">
<ListView.ItemTemplate>
<DataTemplate>
<Image Source="{Binding Path=ImagePath}" Stretch="Fill" HorizontalAlignment="Left"
Margin="10,10,0,0" VerticalAlignment="Top"/>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<WrapGrid ItemHeight="100" ItemWidth="150" Orientation="Horizontal" MaximumRowsOrColumns="2"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
Often times as a developer we get motivated to see ratings being given to our Windows Phone apps. However, this is possible only when one downloads and installs it in the Phone from Marketplace/Store.
I was not aware that the app list (not the desktop) has the context menu to rate, earlier to that I used to go to marketplace and rate if I really like the apps. This takes some efforts considering the fact that I am using Windows Phone unlike desktop. But we have context menu in the app list apart from the two “Uninstall” & “Pin this..”. Anyways, I would love to see AppBar button which lets me rate the apps from the app itself without navigating away. This is possible through the SDK API but you need to do what I like to call as “blind coding”. Let me explain the reason behind it. Unless your app is in the store the code you write to invoke the marketplace rating page will not work. So follow the people who has tried this and working well. We need to use the “Task” and the code looks as below
MarketplaceReviewTask rev = new MarketplaceReviewTask(); rev.Show();
MarketplaceReviewTask rev = new MarketplaceReviewTask();
rev.Show();
This would show up the rating page of Marketplace and hence you are.
Another classic problem of Windows Phone emulator is that it does not respond as expected if we have the support for both the orientations (Portrait & Landscape) by mentioning
it still not changing in Emulator. What could be the reason, think?
It is because you have removed the On-Screen keyboard by pressing Ctrl+Page Up (I discussed this in my previous post), so you just need to get them back to the default mode by pressing ctrl+Page Down.
This behavior is not regular, if you are lucky your Emulator should work as is without this trick as well. This is what I found during my tryouts.
In Windows Phone when we use PC emulator and launch app there we could type using mouse through the onscreen keyboard. However, this is not very convenient and we would like to use our own keyboard while typing.
So its very simple, to disable the on screen keyboard you need to press Ctrl+Page Up, to revert press Ctrl+Page Down
But there is a problem and I am going to discuss in my next blog.
Most PC can run Windows Phone 8 SDK but Emulator will not be installed properly if the below specification is not available
Download CoreInfo from http://technet.microsoft.com/en-us/sysinternals/cc835722
Run "coreinfo -v" in command
If
Is not ready
Here is my first review of one Windows 8 App which is created by my love Saswati Sanyal called “Learning Alphabet”. This is a very simple app which lets small little children learn Alphabet with zero interaction. This helps a kid to go through as one go and then sit back and relax. This does not require any click after start.
So learn and enjoy learning http://bit.ly/Y6aDN3
If you are building Windows 8 Application then for you there are free templates available at
http://aka.ms/win8templates
There are a bunch of resources on Windows Phone 8 development for free.
Windows Phone 8 Jump Start
Recently we have the Jump Start and the full content is available at Channel9. Here is the list
In fact if you go in any of the links it would have reference to all other materials.
The Windows Phone 8 Training Kit for Developers
http://www.microsoft.com/en-us/download/details.aspx?id=35777
Windows Phone 8 in Build Conference 2012
Another great resource was delivered in Build 2012 conference. The complete list is available in Phone blog and here are they
Day 1
Day 2
Day 3
Day 4
This is amazing to see that @maryjofoly liked my Windows 8 App and installed it. Those who don’t know who Marry Jo Foly is – should see her blog at http://www.zdnet.com/blog/microsoft/. She is one of the celebrities in the world of Technology. This is indeed a pleasant surprise to see her liking my app.
This is just amazing to see it got around 600+ downloads in 10 days even during the holiday time.
The installable version of the app is available at http://apps.microsoft.com/windows/app/msdn-and-technet-top-blogs/f509b127-db03-48e6-a66b-a8dc4858d7d3
And after I thanked her, got this reply
The best thing to happen in year end. This is my last post of 2012. Happy 2013.
Visual Studio and Windows Azure goes hand in hand. However sometime new developer find it hard to manage certain basic stuff. One of it is Management Certificate. This certificate helps Visual Studio to connect to Windows Azure Portal. Hence it is so easy to deploy service to cloud.
1. You need a Visual Studio Cloud Project which you will be deploying. Then right click and say “publish”
2. Then the option “Choose your subscription” would be blank if you are using it first time. Click on the dropdown and click Manage.
3. Then hit the option “New”. This brings another window,
4. Now you either will have one “self-signed” certificate, this needs to be in the local certificate store. Then only it will show up in “Create or select an existing certificate for authentication”. Never mind, let’s see how we can create one new and make our Visual Studio talk to Windows Azure portal.
Select “Create” after the list of Certificates which are coming in the drop down list. Then give a name to it.
5. Then click on the “Copy the full path” to copy the certificate path which we will be uploading to our Azure Portal. After the
Then you can either create a cloud service or select an existing one and publish.
I wanted to wright this for a long time, because I find it very easy as compare to making self signed certificate manually and then uploading it to Azure and putting it to the local cert store.
Most of us follow the great blogs from MSDN and TechNet. So I have build an application which pulls top MSDN and TechNet blogs together.
Download link http://apps.microsoft.com/windows/app/msdn-and-technet-top-blogs/f509b127-db03-48e6-a66b-a8dc4858d7d3
Please install and share your feedback via setting charm Win+C and choose “setting” then “Rate and Review”
Let me introduce my another venture to the Windows Store apps. This is dedicated to SQL Server. Collection of blogs about SQL Server
Download link http://apps.microsoft.com/windows/app/sql-blogs/fe64c671-9b80-4bcb-b96c-9746a2f8d477
Your wish is the next release.
We have recently done the webcast series for Windows Phone 8. Below are the recordings
Getting Started with Windows Phone 8 – Development Tools & Dev Center
By Wriju Ghosh (@wriju_ghosh)
Recording
https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=64-1F-EB-FA-78-CA-3F-28-5D-88-10-51-3B-C7-AF-CF&Culture=en-IN&community=0
Designing Apps for Windows Phone 8
By Ujjwal Kumar
https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=64-1F-EB-FA-78-CA-3F-28-AE-2A-11-0B-C5-33-91-0C&Culture=en-IN&community=0
Application Lifecycle for Windows Phone 8
https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=89-38-23-13-41-AF-5B-81-DA-18-FA-29-08-7A-89-AA&Culture=en-IN&community=0
Building Apps for Windows Phone 8
By Wriju Ghosh
https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=89-38-23-13-41-AF-5B-81-58-BA-EA-EB-7E-DA-87-94&Culture=en-IN&community=0
Windows Phone Store and making your apps submission ready
Recordinghttps://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=89-38-23-13-41-AF-5B-81-51-99-08-44-E6-08-AC-F3&Culture=en-IN&community=0
How to download?
Click on the link and it will show you the same registration page. Enter Live id and you will be able to see the download link.
The most common issue with Windows Phone Emulator is that at times it does not work well with internet. Unable to connect to the internet while the host machine is available with internet. Follow the steps
http://msdn.microsoft.com/en-us/library/ff754351(VS.92).aspx
Thank you for joining today’s talk. Please find the sample here http://sdrv.ms/11hVCw7
The download links
You can download the ebook in PDF format here: http://go.microsoft.com/FWLink/?Linkid=270056 (17.9 MB)
EPUB format is here: http://go.microsoft.com/FWLink/?Linkid=272592 (37.3 MB)
MOBI format is here: http://go.microsoft.com/FWLink/?Linkid=272591 (69.5 MB)
The ebook’s companion content is here: http://go.microsoft.com/FWLink/?Linkid=270057 (59.9 MB) (Note: An updated version of the companion content was made available on November 8, 2012, to fix a line of code.)