Skip to main content

Posts

Showing posts from 2011

My First DotNetWork Session Introduction to Windows Phone Development

As A follow up to Today's event .network Gathering December 2011, following the Windows Phone 7 kick start session, i am posting my sessions materials here on my blog so that i can keep track of it. So here is the link for the presentation slides   http://www.4shared.com/file/PQo9xqG2/Windows_Phone_Development_Kick.html And Also here is the link to the code samples for the demos that i done today http://www.4shared.com/rar/BIAHhxPI/Code_Samples_Demo.html please report any broken links and i will re-upload them once more if there is any inquiry or questions i would be happy to answer. Brief: this is the session material for .net gathering December 2011 Windows phone 7 development kick start session .

WP7 from 7.0 to 7.1 Microsoft.Xna.Framework missing reference or assembly "wont appear in the .net tab add reference"

Recently i upgraded a windows phone project from 7.0 sdk to 7.1 and i got this error Microsoft.XNA.Framework missing reference or assembly, after doing some search in the SDK 7.1 documentation i found this to be a know issue and the solution is to map the Assembly manually, and note that the Assembly wont appear in the .net tab here is the path you should find the assembly in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone\Microsoft.Xna.Framework.dll Simply remove it and re-Add the reference and it should work fine VIVA WP7 or at least hope !!

Windows Phone 7 Advertising SDK upgrading to 7.1 Test Mood and Advertising change AdControl does not contain Test Mode

Recently i upgraded a windows phone project from 7.0 sdk to 7.1 and i got this error the Adcontrol.TestMode cannot be resolved this is the message 'Microsoft.Advertising.Mobile.UI.AdControl' does not contain a definition for 'TestMode' The solution i found here was all because the the SDK itself has changed you have to set the ApplicationId and UnitId properties manualy as follows #if SHOW_TEST_ADS adControl.ApplicationId = "test_client"; adControl.AdUnitId = "Image480_80"; #else // Use your real Application ID and Ad Unit ID here adControl.ApplicationId = "34fg678a-de7s-67ad-0988-9876543g1h43"; adControl.AdUnitId = "12345"; #endif  pieace a cake !!! here is the link to all changes http://community.microsoftadvertising.com/forums/t/69768.aspx

How to upgrade an existing Windows Phone OS 7.0 Project to Windows phone 7.1 Mango (7.5 Platform)

Open the Windows Phone OS 7.0 “Silverlight XNA Classlibrary etc ..” project you want to upgrade in Visual Studio. In Solution Explorer Right-click the project and select Upgrade to Windows Phone 7.1 in -Or- On the Project right click menu, select the Properties then a properties window will appear or just select the project and hit Alt+Enter. On Target Windows Phone OS Version drop-down list change the selected option to Windows Phone OS 7.1. Here is a screen shot of the Properties window and how to upgrade . You might be required to add windows phone 7.1 SDK to the project manually if you use the 7.1 functionality. You might also need to update the capabilities in the application manifest file., see Application Manifest for Windows Phone 7 and How to Determine Application Capabilities ? .

Starting Windows Phone 7

In a first of many to come Articles targeting the windows phone 7 new platform mango I have decided to put this link for the complete documentation for the windows phone 7 library from the MSDN itself http://msdn.microsoft.com/en-us/library/ff637516%28v=vs.92%29.aspx

Knockoutjs MVVM using Java Script

During the past working days I have been a little confused about some concepts in the KnockoutJS and how stuff works in the hierarchy we are using, how should we bind stuff. First of all to get a brief introduction on KnockoutJS , it is a java script library written to apply MVVM pattern on html or ASP MVC ”if you do .NET ” and by MVVM we can only say the word that we used very often while doing Silverlight or WPF, the word is BINDING the magical word that simply makes the speed and interactivity between your model and view irresistible, do we use binding yes !!! and boy this is one sexy word that I would love to use, binding was one of the strongest points that Silverlight had, thanks to knock out we can do it here you can take a quick overview from the magnificent Steve Sanderson “the creator of the library” he has made an appearance in MIX 11 and he sure made the impression check out the KnockoutJS site from here http://knockoutjs.com/ and here is a the video link available

A generic Repository Interface that Can Be implemented on any POCO Entity

Ok Probably whats on your mind here is what the heck is he talking about ? and that is what about to say now. What I want to do is Make a Generic Repository Interface that can be used for any entity so for instance if I had more that one POCO “Plain Old C# Objects” All I need in my repository layer is just EntityNameRepository class that Inherits from the generic Interface, and though less interface implementations, Less dependencies, more testability and less code equals more fun, So here is the Interface Class and that's it just inherit implement and off you go !!!

For the best managers what does they do to help their underlings and Co-Workers

Based on the wise words of MB I am writing this blog which should not be of technical relevance at all so if you were expecting something technical sorry to disappoint you, I have been reading a lot on this and here is some of what I have earned from reading J Ok now for what is to be said In any work environment there is a two distinctive class of employees, Top performers and strugglers , which of them should you spend more time with, how to treat your employees and co-workers, what should you get if you were to spend time with the top performers over the strugglers. Let’s talk about these and see how it goes from here. First , your top performers and your strugglers, who of them you should spend time with and why let’s take every choice and see what we get from each. Let’s start by spending more time with your strugglers and by that you would be seeking both or one of two things control or mentorship because they still need to be controlled and still need to learn. What

Solved bad image format exception system.badimageformatexception

Ok, the reason you get this exception is because you are using an assembly that was generated in platform x and you are using it in a project with the platform y for instance using a project reference target platform 86 bit in a project that's build Platform is 64 bit to fix this you have to make the two projects with same target platform, you can get there by right clicking the project in the solution and then click properties and then choosing the target platform from there 

Resolving “Invalid signature for SetUp or TearDown method” NUnit ignore

NUnit does not allow private setup or TearDown methods so modify the access modifier to public and the tests should not be ignored for instance it should be like that         [SetUp]         public void Initialize()         {                 //Do something         } it must be public !!!

Unit Testing a Service Client Exception Could not find endpoint exception

I am going to be really simple and strait to the point here if you want to unit test a project that uses a service reference you must add the service as a service reference to the testing project with the  same configurations as the one in the project you are testing or else the exception above will fire in your face if you run the service

Writing Effective User stories Agile Scrum!!

Intro: A couple a weeks ago, I was assigned a task of writing user stories and it was quiet the challenge as I have no Business Analysis Experience and the cause of this task is to improve my skills in that area in specific so I ended up writing a good and effective user stories according to my lead and I have to take his words for sure, he is the guy with the 9+ years of experience so I decided to write a blog about it though it is not very technical but still a thing that I found really helpful despite the lack of code and of course less code equals less fun So let’s get it started shall we. The Three Cs: A User Story consists of three parts usually referred to as the three Cs “ C ard C onversation and C onfirmation” and they are pretty simple in matter of what they are let’s take them one by one. The Card: The first part of the user story, usually reffered to as the title of the user story it is a simple sentence that contains the main purpose of the user story and it should