I ran into an error when I was setting up a project in Visual Studio for an existing Windows 8 app I already had installed from the Windows 8 Store. When I tried to run the project in the debugger for the first time, I got the following error message:

Error : DEP0700 : Registration of the app failed. Another user has already installed a packaged version of this app. An unpackaged version cannot replace this. The conflicting package is [MyProjectName] and it was published by [MyCertificate]. (0x80073cf9)


This seemed odd to me since I had already uninstalled the app ...
While developing web applications, it is common that you must test the site in SSL mode. Normally, this would be a pain and would require you to set up the site in IIS manually. From then on, you must attach the debugger in Visual Studio to the application pool process. There's an easier way!

IIS Express has been given a lot of attention with the Microsoft 2012 tools and it is certainly a better alternative to Cassini. And yes, IIS Express really is the full-fledged IIS except the config files are located in "C:\Users\%USERNAME%\Documents\IISExpress\config" rather than in the machine-wide location. ...

I’ve always liked attached properties… so much so that a couple of years ago I created a series of generic classes to simplify the process of creating custom attached properties.

Attached Properties – a review:

  • External control interactions — like the Grid.Row attached property.
  • Basic info storage — just like the Tag property.
  • Behaviors — changing properties and behaviors of the parent control.
  • Bindings — to achieve custom bindings between UI controls.
  • If you use XAML, you use attached properties whether you realize it or not.

Creating a custom attached property only takes a few lines of code. Many declarative ...

Every year, October kicks off a very busy season at Falafel : “Conference Season”. Multiple members of the team travel across the country and around world to share their expertise on a number of technologies. All Falafel Software team members spend their days, and often their nights, helping design and build cutting edge solutions for our customers. Their technical presentations draw from these real world experiences and are assembled, practiced, and presented in what little spare time they have. That’s why we call them “Rock Stars”.

This weekend at Silicon Valley Code Camp, Falafel’s entire team from around the ...
So you have seen the light and ready to make the jump into ASP.NET MVC. But wait! You are not ready to migrate a million lines of code from your legacy Web Forms application? No problem. You can easily integrate MVC 4 into your existing Web Forms application and gradually phase out the legacy stuff over time.

There are many articles and blog posts about this topic. However, most are outdated or take the loooong way. I have a simple, clean solution for you! Here it goes:

  1. Upgrade your Web Forms application to .NET 4 (and Visual Studio 2012 if ...

Falafel just released a video explaining how the Dashboard works, how to install it, configure it and display it instead of the built in Sitefinity Dashboard.  The video is embedded below or you are welcome to view it on YouTube.


Get the Falafel DashBoard for Sitefinity MVC.


In some of my previous WP7 blogs, such as Basic XNA Graphics for the WP7, I go over how to build basic 3D models for your applications. What happens when you want something more complex? You need a good 3D tool to generate those models for you. I started exploring Google SketchUp as a possibility for generating 3D models for the WP7. I found Jim’s Blog on how to load a Google SketchUp model into a XNA game. Jim used the DirectX/XNA Exporter Plugin. So I installed the plugin and started playing around. I thought it would ...

Today, Falafel Software, the premier Consulting & Training company for Sitefinity worldwide, released a new version of its book “Sitefinity 5 Nuts & Bolts”.

 

The book is released for FREE for ALL of our current Sitefinity 4 Nuts & Bolts’ customers.  Just log into your account and download the new 5.0 book.
For all new customers purchasing the new Sitefinity 5.0 book, you will receive the 4.0 book as well plus all the source code for all the samples, modules and widgets.

Get your copy today and start enjoying the new Sitefinity 5 product while discovering many many new ...
This week our CEO, Lino Tadros, is the special guest on  the popular .NET development show, “Yet Another Podcast”. The show is hosted by Jesse Liberty, a Senior Developer-Community Evangelist on the Windows Phone Team. Jesse and Lino discuss developing applications for Windows Phone, MVVM, Silverlight, Visual Studio 11 and more. Lino also makes a big promotional offer during the interview, so if you are itching to learn a little bit about Windows Phone, you are going to want to tune in.


Grab the podcast here: http://jesseliberty.com/2012/02/06/yet-another-podcast-59lino-tadres/

It is quite easy to enable Out-of-Browser (OOB) mode when building a Silverlight application.  Open up the project properties on the Silverlight project and check the box to "Enable running application out of the browser."

The more difficult task is troubleshooting problems when the application works in browser, but not out of browser.  First, to debug OOB applications in Visual Studio, you need to open the Silverlight project properties and in the "Debug" tab, set the start action to "Out-of-browser application" and select the appropriate project from the dropdown list.  Next, set your Silverlight project as the startup project.  Now ...

With the release of the HTC Titan, I needed to update a couple of my previous blogs.

In my blog Silverlight/XNA and Correcting WP7 Attitude Alignment, I talked about how to correct for any misalignment of the Attitude sensors with the phone body. With my Samsung Focus, I found that the Attitude alignment was off by about 3 degrees, which was noticeable in my compass application. The HTC Titan does not need any Attitude adjustment; its Attitude sensors are already inline with the phone body.

In my blog Showing the WP7 Magnetometer in 3D with XNA/Silverlight, I ...

My friend Basem has a nice blog post about the most useful features of the Productivity Power Tools extension for Visual Studio 2010.  It’s definitely worth a read if you haven’t read it already.  Like Basem, I love the Productivity Power Tools extension and use most of it’s features on a daily basis.  And, until recently, I’d run into only a very few issues with it, all of which I’d classify as minor annoyances. 

Recently though, I ran into one issue that put me off track for a while trying to figure it out.  It happened when I created a ...

Rounding the corners of a rectangle or a border is nothing new, but what if you want to clip other FrameworkElements such as images or buttons. The first step is to look at how to generate the necessary clipping geometries to give you the rounded corners.

Take a look at the clipping of the following rectangle that rounds each corner with a radius of 10.

Clip="M0,10C0,4.5 4.5,0 10,0L118,0C123.5,0 128,4.5 128,10L128,86C128,91.5 123.5,96 118,96L10,96C4.5,96 0,91.5 0,86z"

The quickest way I’ve found to decode clipping strings is to let Blend do it for you. After selecting the rectangle in Blend, select the Clip ...

Snickers fans know how nice nougat can be, even if they don’t really know what it is.  Microsoft produces a different kind of NuGet that’s also really nice and not well understood.

The NuGet site on codeplex says that it is a “package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development”. 

That’s a good summary, but here’s how I think of it--I no longer have to worry so much about keeping all my .NET tools and libraries up-to-date or spend a lot of time figuring out ...

Even though I’ve been doing ASP.NET for 8 years, I never realized until today that when you put a breakpoint in Application_Start in Global.asax, it may never be hit.  The reason, I discovered, is that the debugger doesn’t have time to attach to the web application before Application_Start finishes.  To get around this, you can force your application to restart after the debugger has had a chance to attach by simply editing and saving a change the web.config.  This causes the application to restart and your breakpoints in Application_Start will now be hit.

Celebrating the ONE year anniversary of our beloved Visual Studio 2010.  Through the years, it is amazing how far Visual Studio has gone with all its anomalies, weaknesses and frustrating points, it is still an extremely powerful IDE and in my humble opinion the best and most productive IDE out there.  Read the details here

Happy Birthday Visual Studio 2010! Can’t wait to start working with Visual Studio 2012

 

In this tutorial, I’ll show how to build a custom form control for Sitefinity 4.0 from scratch, while showing each step of the process and explaining some of the main gotchas you may encounter on the way. You can download the final project source code here. The tutorial is fairly long and is broken up into 7 parts in order to make it more digestible:

Part 1: Intro to the Form Module

Part 2: Setting up the Project

Part 3: Populate the Control Template (NamedTextBox.ascx)

Part 4: Populate the Client Script File (NamedTextBox.js)

Part 5: Populate the Class File ...

Adding the ability to dynamically slide an image around with the mouse is not a big deal and can add a cool dynamic to your Silverlight page. You can see an example at the bottom of our Event Board page - http://falafel.com/event_board.aspx.

This is just a very wide image with a Storyboard that is updated dynamically with code behind. The trick is to get the left and right scrolling math right to give you a smooth Storyboard animation no matter what you do with the mouse.

The XAML is very simple:

<UserControl
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"...

It has been a month since Sitefinity 4.0 hit the streets. Many miss the features and marketplace extensions for 3.7 that took years to ripen. That’s why today I am going to show you how to migrate your custom modules from Sitefinity 3.7 to 4.0.

For our 3.7 custom module, I will use the Contacts Module sample Ivan built. We should have a Contacts Module for Sitefinity 4.0 by the end of this article. Let us first look at the 3.7 graphic interface and project structure that we will start from:

Notice in the sample there is a completely separate project for ...

Creating innovative software is a lot of fun. Usually this is the equation for coming up with some pretty useful plugins, modules, and applications. Sometimes they are so useful that I distribute them to communities to use for their own projects. This way, I feel as if I am contributing to the evolution of technology and even humanity :)

There are some tedious tasks involved when doing this that slow down my development, which is not so fun. If you develop solutions targeted for multiple versions of a software, you will be sure to get this error back from the ...