Tag | Geekswithblogs.net Posts

I’ve added a second AppFabric Walkthrough based on the Azure AppFabric Service Bus September 2011 release. The second one looks at using the NamespaceManager class to create, list, get and delete queues in an AppFabric service bus namespace using a simple C# console application. Feel free to expand on this scenario to create more sophisticated management consoles. As with the first walkthrough there have been a lot of changes in the classes used to interact with the service bus, so don’t expect this ...
A few weeks ago I ran into an error while setting up our test farm. I was creating the service applications and when I got to PowerPivot, I got the following error: I was able to work around this error by using PowerShell to create the service application. Background First, some details of our installation: two web front ends, two application servers, and one SQL server. All are running Windows Server 2008 R2 x64 with Service Pack1. The SQL Server is 2008 R2 with SP1. The SharePoint servers are SharePoint ...
Technorati Tags: Windows 8 Just like many thousands of geeks around the world I downloaded the Windows 8 preview from Microsoft’s website: http://msdn.microsoft.com/e... and spent some time playing with it. Being an embedded developer I don’t have any powerful machine lying unused in my office, so I installed Windows 8 on a very low-spec machine, a 1.6GHz Atom with 1GB of RAM and a 120GB HD (taken from an old mac). First of all I must say that I’m pretty impressed by the responsiveness ...
I’ve published a basic walkthrough of using the new brokered messaging capabilities in the Azure AppFabric service bus September 2011 release. If you have not used queues in AppFabric before this will get you started with a basic application that you can build upon. If you have used queues in the May or June CTP releases then this walkthrough will be useful to highlight the changes in the management portal and service bus API. (Quite a lot has changed, for the better, but I have a lot of rework to ...
As I write this post, Microsoft’s Windows 8-focused //build/ conference has just ended. The apprehension so many developers had around the show is now dissipated, the developer platform and tools have been detailed, and we have all been able to work with the operating system, and develop apps for it, on a touch device, for about 72 hours now. Most people, myself included, like what they saw. The OS is touch-friendly without being an iOS copycat; our developer skill set investments are nicely protected; ...
We recently implemented an email archiving solution at work. One of the requirements was that we configure automatic purging of messages older than 6 months in Exchange. One of our IT managers spent the better part of a month moving items out of the only copy of his PST into his mailbox so that they could be captured by the archive system and free him from his PST. For whatever reason none of these messages were captured by the archive system and were purged by Exchange as per the items older than ...
Programming for Metro Metro is the future http://zd.net/rnT9VZ .NET is for old apps. WinRT replaces WPF & WCF. XAML is big. There were no Silverlight sessions. HTML 5 and Javascript ( Blend for HTML) are back in fashion – I wont dwell on this because web apps are (inconsistently) simplistic in concept and over-complex in development. Yes, all those XAML skills are portable, Silverlight (RIP) apps can run as Metro apps with a bit of fidgeting with namespaces – you just need to know what controls ...
Introduction The conference sessions are starting to appear on the Channel 9 RSS feeds right now. If you are like me then you probably want to download all of them and watch them later. Here is the method that I use to grab all the videos and thought that it would help others. Note: You can use either Juice or PowerShell (which is located at the bottom of this post). Let’s do this with Juice Navigate over to http://channel9.msdn.com/Ev... and select the option to Subscribe to this ...
This new book targets embedded developers that want to use the latest release of the Windows CE/Windows Embedded Compact OS family. It has been written by Samuel Phung (that wrote also the excellent “Professional Windows CE 6.0”), Thierry Joubert and David Jones (that released many very useful tools for Windows Embedded in the past). They are great developers and also very good trainers and writers, and I’m pretty sure that they will provide a great amount of knowledge to people wanting to discover ...
In the BUILD event, Microsoft had just announced the latest Windows Azure SDK 1.5, Visual Studio Tool for Windows Azure SDK 1.5, and the Windows Azure AppFabric SDK 1.5. You can find them simply from the Web Platform Installer. One thing I found for now is that, the database had been changed for the local storage emulator in this version. That means you need to recreate the storage database by running the DSInit command from the folder (let’s say you installed the SDK in driver C) C:\Program Files\Windows ...
There are two ways that I found to this but I found the second one better for readability. 1. Test Run Configuration file 2. DeploymentItemAttribute I am interesting in the “DeploymentItemAttribute” because its more readable gives flexibility to add either on the Test Class level so that more than 1 test can get the files or at Test Method level. I have a solution contains multiple project one of the project requires xsds to be there with the assembly. So 1. select the all the files scattered in ...
This week I’m at the Microsoft Build/Windows conference. Now I’ve been to many conferences throughout the years and this is the first conference where I literally knew nothing about including the agenda. When I signed up for my badge on arrival we got a conference guide with all the hours of the session but no sessions. Very secret, very cloak and dagger. This created a huge buzz but also upped the expectation quite a bit… So with the tabled laid out and the expectation high I sat down and waited ...
I am like everyone else when it comes to Preview OS Software. I don’t want it on installed on my primary machine and I don’t want to lug around another laptop to try stuff. I am not a fan of booting of VHD (which I will explain in a second). Scott Hanselman made a great post on how to do this if you are interested however. The main issue that I see with this approach is that the bootloader on my MAIN MACHINE is replaced with the Windows 8 Preview one. Yikes! I don’t want any preview software with ...
So we’re into Day 2 of Build, and the keynote this morning is talking about server and cloud aspects of Windows 8. I’m looking forward to the sessions this afternoon to get some deeper dives. But let’s reflect over yesterday first – Build Day 1. Yes, there was a tablet given away. But those focusing on the “new toy” are missing the bigger message, the larger paradigm shift, the impact on the future of what we’re seeing. I sound melodramatic saying that, but its true – the way development for the ...
So I’ve played with the developer preview of windows 8 today. I’m trying to like Metro. But, at least on the desktop, it feels wrong. In fact, its not really windows anymore. In the sense “windows” are less in favour compared to full screen apps. It really should be called Boxes 1.0 I played around a bit with the new visual studio with metro templates….. great tools as usual. But…designing metro apps feels like a subset. The variety of apps in the windows world would find it hard to translate into ...
I kept getting this error whenever I try and do a Windows Update. This used to happen, particularly if I haven’t done a WU for a very long time. The usual suspects are anti-virus, firewall and sometimes, pending windows updates which would get resolved when I do a restart of the machine. I am running a Windows 7 SP1 64 Bit OS. This time, I connected a machine after almost 6 months and had a truck load of windows updates to be done. I tried restarting multiple times but every time, I run the WU wizard, ...
Tonight Windows 8 was released (LEGALLY) at least the Developer Preview edition was! You are able to get your own copy at http://dev.windows.com/. I have an interest in programming but an even greater interest in learning some of the new administrative tools available and things I can dig into a bit more and learn about Windows 8. I decided I was going to install it as a Virtual Machine. When I mounted the ISO it crashes upon startup, so I knew there had to be a setting somewhere I could tweak and ...
On August 31st I was pleasantly surprised by Microsoft when they notified me of receiving the Community Contributor Award. Here is an excerpt of the email: “Congratulations! We’re pleased to inform you that your contributions to Microsoft online technical communities have been recognized with the Microsoft Community Contributor Award. The Microsoft Community Contributor Award is reserved for participants who have made notable contributions in Microsoft online community forums such as TechNet, MSDN ...
I usually do a bullet points from major conference events like this one from Mix11. The purpose of this post is to get you up to speed quickly with news and links you may enjoy. Build – Day 1 Keynote Windows 8 takes about half the amount of RAM to run compared to Windows 7. Windows 7 usage by consumers is now greater than Windows XP. Like the Metro Interface? Well, you better as the interface is similar to the Windows Phone 7. You can unlock your touch-enabled PC by tapping certain spots on a picture. ...
I'm sure that over time you've run into the dreaded "File transport does not have read/write privileges for receive location "C:\Flatfile\SAPTestIn\".". Usually you simply go to the folder and either give the BizTalk account full permission (bad) or Everyone full permission (really bad). So for a production environment, what is the absolute minimum permissions required? For the Receive File Adapter the explicit permission are: NTFS Attribute Property Name DELETE Delete Files FILE_READ_DATA List Folder ...
That is a very good question..to which only Microsoft has the answer!:-) In the meantime, suffice it to say that every once in awhile, Visio loses track of your Glue/SnapTo settings which you'll need to restore. Here's what to do: 1. In Visio, navigate to "Home", open "View", expand "Visual Aids"2. Once in "Visual Aids", Check or Re-Check the "Glue"box. 3. Under the "Snap To" category, be sure shape intersections, shape handles, shape vertices, and connection points are all checked. 4. Under the ...
Our engine is written in almost pure C++ with some part in C# that run on Mono. The code base is huge which mans that we’re primarily looking for platforms that support C++ development. Looking at the current set of platforms on the market this is really not a big issue with Windows Phone being the only platform that does currently not support native development. Sadly this means that we’re currently not planning a Windows Phone release in the near future. Looking at other platforms, about a year ...
Download Demo - LINQpad Query In this blog post I’ll be showing you how to query TFS using LINQpad. 1. Download LINQpad Those who are familiar with LINQpad know its benefits and ease of use, i would urge others to try it. You can download LINQpad and read more about it from here => http://www.linqpad.net/ 2. Download TFS SDK I have a blog post on where and how to download the TFS SDK from => here 3. Querying TFS using LINQpad Open LINQpad Select Query Properties by selecting Query from menu ...
In the world of custom web application development a critical component of our success is the hosting environment and services. We can choose to deploy our web applications using 3rd party hosting providers such as GoDaddy.com, Rackspace, DiscountASP.NET, or another provider, or we can choose to deploy to on premise servers either virtual or physical. In either case the web application must be serviced up to consumers by a web server software such as Internet Information Service (IIS), which is included ...
On the 9th Sep, the SQL Azure team announced that the new version of SQL Azure had just been release. In this version not only the SQL Azure engine had been upgraded, the SQL Azure Management Portal had been upgraded massively. Below are the features and improvements available in this release: Foundational updates for scalability and performance. Co-administrator support, which enables customers to specify multiple database administrators. Increased capability for using spatial data types, which ...
After recently reading a book on effective unit testing, I've taken to using the NUnit constraint model for my unit tests. I find it a great way to write readable tests which state exactly what they prove; for example, it's pretty clear what this test shows, just from reading the code as a sentence: Assert.That(AnAccount(WithN... HasAnOutstandingBalanceOf(Z... In NUnit's Constraint model the first argument to Assert.That returns an object to test, and the second returns an NUnit Constraint ...
In the previous post I droned on about how to apply the AsyncOperationService to an API conforming to the .NET Asynchronous pattern. In this post I’ll be building a more real world example. Well I say “real world” please don’t confuse that with something actually useful. Its still a little contrived and is not an example of best practice but it is something you could actually build and test. What are we going to build? We are going to build an ambitious ground breaking Silverlight app that allows ...
Come on, who doesn’t love a good cheeseburger? Ok, I’ll rephrase that. Other than the Chik-fil-a cows and vegetarians, who doesn’t like a good cheeseburger? Check out this episode of the Grapevine TV’s Developer’s Kitchen and watch me demonstrate how to prepare and grill up my Duffy’s Paradise Cheeseburgers! mmmm tasty! Looking for additional recipes from your favorite .NET personalities? Check out the .NET Guru’s Can Cook cookbook for a wide variety of tempting appetizers, dishes, sweets and drinks. ...
Today, We deployed the “David Blaine” version of the TB Module for our EMR solution here at IDI (http://idi.mak.ac.ug). This was mainly for bug fixes and usability improvements based on the feedback that we received from users in the past few weeks. Some of the improvements were related to performance. We had to fine-tune some of our Linq statements in some places to enable better queries to be generated by our ORM. We also added some lookup dialogs that present certain information that would be ...
2011 has been a very exciting year for me so far. I was awarded the Microsoft Silverlight MVP. I was renewed as the DZone MVB. I was awarded as a GeeksWithBlog Influencer. I won the CodeProject Windows Phone 7 Competition. I’ve been invited to speak about Silverlight at UserGroups as well as several major conferences such as SSWUG, CodeStock and devLINK. My first e-Book on Producing and Consuming Silverlight in an OData application was published. I’ve been asked to be a technical editor for two Silverlight ...
Introduction You might have noticed that the Silverlight 5 (Release Candidate) is out. One of the new features included in the RC is the ability to call P/Invoke. In this short demo, we will write a Silverlight 5 application that uses the feature. Tools needed: Visual Studio 2010 SP1 or Visual Web Developer Express 2010 SP1 is required to develop a Silverlight 5 RC Application. After you have installed VS2010 SP1 or Visual Web Developer Express 2010 SP1, then you will need to download and install ...
Just a quick one. I was trying to add and deploy a WSP file.Both went well until i tried adding the webpart and i get the error Web Part Error: No available sandboxed code execution server could be found. After doing some joggling around i came to know i had to start the Solution:You need to start the SharePoint Foundation Sandbox Code Service service instance from services on server.. This has to be done in the SP 2010 Central Admin > App Management > Service Apps > Manage Services on Server. ...
The ability to write scale out applications for SQL Azure will soon become much easier, thanks to the upcoming SQL Azure Data Federation capabilities. In an earlier post, I outlined specific steps developers can take to prepare for this key enhancement. Some of the key capabilities of SQL Azure Data Federation is to distribute large data sets across multiple databases, hence providing a mechanism to avoid the current database size limitations of SQL Azure. While it may be tempting to look at this ...
I have introduced a method to detect the stack size and other stack info during runtime in this article http://geekswithblogs.net/K... But what if we want to determine the stack size on arbitrary thread or for whatever reason, writing a code is not an option but wish to peek the stack size via debugger? Fortunately, there is a debugger extension (CeDebugX) provides many power tools, such as !stacktrace or !stackeval to get the stack info for ...
The ViewModels in my current project had got quite complex; as well as properties copied from model objects, they increasingly had flags used by Views to know whether to render links or sub-sections. The logic which set these properties was bloating Controllers, so I factored it out into objects which populate all non-editable properties of a ViewModel; ViewModelBuilders. The system has the following components: ViewModels - objects which provide a View with the information it needs to be rendered. ...
I received a surprise mail from Microsoft saying that I’ve been recognized as Microsoft Community Contributor for the year 2011. I am delighted that my contributions in TFS and ALM space have been recognised by Microsoft. Congratulations! We’re pleased to inform you that your contributions to Microsoft online technical communities have been recognized with the Microsoft Community Contributor Award. The Microsoft Community Contributor Award is reserved for participants who have made notable contributions ...
In this Issue: Tony Champion, Kevin Hoffman, Pete Brown(-2-), Mike Gold, Jeremy Likness, Xpert360, Den Delimarsky, Sumit Dutta, Asim Sajjad, Vikram Pendse, and Michael Crump. Above the Fold: Silverlight: "Silverlight 5: Remote control and MediaCommand Support" Pete Brown WP7: "Extracting a SQL CE DB from Isolated Storage in WP7 Mango" Michael Crump PivotViewer: "To CXML or not to CXML" Tony Champion Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Michael Washington's latest Visual ...
I was really excited when I heard Red Gate wanted a review of their memory profiler done. I have been a fan of Red Gate products for years… being first exposed to their products via reflector a few years ago – as someone who has never done memory profiling before, I was also excited to go a bit deeper into .Net memory management. Why Memory Profiler – Isn’t the point of .Net that it manages the memory for you? Before getting into the nuts and bolts of the profiler, you might ask yourself – why use ...

James Michael Hare has a lot of awesome C# and .Net related posts, so this is just a little shout out to him (and my own little way of bookmarking his blogs since GWG doesn't provide a way to "favorite" or "follow" him).  Of particular awesomeness is…

Read more at http://blog.danskingdom.com/sweet-c-gems/

A listbox can be a very boring display surface, but it doesn’t have to be. Ok, so it may never be exciting. At least we can create a more flexible output. The first element you need to learn about his the ItemTemplate which is in turn composed of a DataTemplate. As this combo implies it is bound to each item/data row. We will start organizing your base layout with a Grid control. Within the Grid you can add a RowDefintions group. A RowDefinition helps when you want components to be stacked for a ...
Today the release candidate of Microsoft’s Silverlight 5 was released to the public. If you want to know “What’s new in Silverlight 5” then check out this page on Silverlight.net and continue reading the article below. Getting Started First, we are going to need to download the required tools to install the Silverlight 5 RC. Before getting started, please note that you can install the Silverlight 5 RC on top of the final release of Silverlight 4. If you have the Silverlight 5 Beta installed, then ...
After I released the MVVM Light installer, I got a note saying that parts of the installation failed on non-English systems (in that case a German installation of Expression Blend and Visual Studio). Specifically, what failed was the code snippets on Visual Studio, and the project and item templates in Expression Blend. Read the rest of this entry » ...
Introduction By now, most of you have heard that Windows Phone 7 – Mango release will support Local Databases (SQL CE) using Linq to SQL. But what you probably haven’t heard much about is how to extract the .SDF that is created in isolated storage to your local computer and view the contents. I find this extremely important for debugging application and making sure my database is setup exactly like I want it. So, that is what we are going to do today. Getting Started with a sample application: For ...
In this Issue: Alex Golesh(-2-, -3-), Andrea Boschin, Peter Kuhn, Shawn Wildermuth, WindowsPhoneGeek(-2-), Jesse Liberty, Pete Vickers, Sumit Dutta, Asim Sajjad, Chad Campbell, Vikram Pendse, Michael Crump, and David Kelley. Above the Fold: Silverlight: "Silverlight 5 : Low-Latency Sound Effects" Vikram Pendse WP7: "Windows Phone codenamed "Mango" Training Course" Alex Golesh Shoutouts: Michael Palermo's latest Desert Mountain Developers is up My friends at SilverlightShow posted their top 5 for ...
To start, I love Red Gate Software’s Tools. I have loved them since the first time I started using SQL Backup and SQL Compare when I first started Geekswithblogs.net. I think they create quality products and have been a “Friend of Red Gate” for years. So know that this review is coming from a “fan boy” of sorts. What is SQL Compare? Well the name sort of says it all, this product compares SQL databases. But not just databases, but backups, snapshots, and source control using their product SQL Source ...
Recently I used Entity Framework 4.1 with Code First approach and step on a hidden rake. My application should create an SQL Server CE database file using supplied model classes. I created some model classes, one of the classes was declared as namespace MyProject.Models { public class Object { public int Id {get; set;} public String Name {get; set;} } } Then, I tried to declare property of DbSet<MyProject.Models.O... type in my class derived from DbContext: namespace MyProject.Models { public ...
Introduction Have you ever wondered how to update the Application Tile in your Windows Phone 7 Mango application? Me too. But before we dig in, let’s look at the properties of a Tile. Microsoft defines each one as listed below: Title. A string indicating the title of the application. The Title must fit on a single line of text and should not be wider than the actual Tile. Approximately 15 characters will fit in the title before being truncated. BackgroundImage. An image displayed on the front of ...
If you are developing you WCF service for web service deployment under IIS and coding with the Visual Studio web server you are in for a rude awakening when it comes time to deploy your solution. Ok, so that is a little over dramatic, but there are a few steps and precautions you need to know about. Below are the main steps to deploying your application to IIS assuming WCF is already installed and registered. The first step is to create an application pool. Make sure that for your .NET 3.5 WCF service ...
This post is about using the AsyncOperationService with .NET Asynchronous Pattern. Warning: this is another article that is likely to give you a headache. Its designed to provide full details of how things work. If you don’t want the headache then, skim the article and copy’n’paste the code from the “FromAsyncPattern” box below (it assumes you already have AsyncOperationService code). Subsequent articles will outline more real world uses which may (and I say “may” very tentatively) not be so headache ...