Tag | Debugging Posts

In this Issue: Morten Nielsen, Kunal Chowdhury, John Papa, Jesse Liberty, Mike Taulty(-2-), and Pete Brown. Above the Fold: Silverlight: "Custom Cursors in Silverlight" Morten Nielsen WP7: "Coming in Mango–Sql Server CE" Jesse Liberty Silverlight 5 Beta: "Silverlight 5: Using the SoundEffect Class for Low-Latency Sound (and play WAV files in Silverlight)" Pete Brown Shoutouts: Khawar Yunus sent me this link to his app... I'm not going to tell you to make a login, but I did.. and the app is a pretty ...
In this almost entirely submittals Issue: Andrea Boschin, Manas Patnaik, Alex van Beek, Michael Washington, Kunal Chowdhury(-2-, -3-), Michael Crump, Richard Waddell, Jeremy Likness, Mike Taulty, Alexandra Rusina, and Pete Brown. Above the Fold: Silverlight 5 Beta: "Silverlight 5: Debugging Bindings with Xaml Breakpoints" Pete Brown Silverlight: "Dynamic Types to Simplify Property Change Notification in Silverlight 4 and 5" Jeremy Likness LightSwitch: "Using The LightSwitch Filter Extension" Michael ...
For the longest time, the Content Pipeline was a magic transmogrification device to me. I would add content to a content project and it would get mystically turned into stuff I would load in my game with ContentManager. A few months ago I decided it was time to put an end to its magical aspects and learn how it worked and how I could put it to work. I thought it would be helpful to share what I learned so I created a sample. This sample has two different custom extensions. The first is a complete ...
Introduction Now that the MIX 11 conference is over and we have heard the news of the Silverlight 5 Beta being released, it’s time to explore some of the new features. If you followed my previous tutorial, then you should be ready to get started. In this piece, I am going to provide information about one of the most important and game-changing features in the Silverlight 5 Beta. - XAML Debugging. In my opinion, this is one of the most important features in the Silverlight 5 beta. In a future article, ...
I just finished delivering 4 sessions for www.sswug.org at the end of April 2011. Above is a screenshot that was taken inside of the studio. Now, I am going to do a webinar on Silverlight 5 then head to Knoxville, TN and finally Chattanooga, TN. Keep reading for details on the events: SilverlightShow.net Webinar on “Getting started with the Silverlight 5 Beta.” Wed, May 11th, 10 am PST (check your local time) Register for this webinar This webinar is designed for people who want to quickly understand ...
As Harry Hill might say, "I like Visual Studio. And I like Eclipse. But which one is better? Only one way to find out…" For a lot of people a lot of the time, the question is irrelevant. If you are doing Java development, you are going to pick Eclipse, and for .NET development you are going to pick Visual Studio. But both IDEs are extensible, and have communities providing extensions for other languages, so if you are using another language it might not be so clear cut. And if you are a language ...
Intro I’m sure by now you have heard that the Silverlight 5 Beta has been released. I recently had a chance to Guest Blog for SSWUG on “Getting Started with the Silverlight 5 Beta” Now before we get started learning about it, let’s look at a few new features: What is new in the Silverlight 5 Beta? Multiple Window Support - Trusted app can create additional Windows. Ancestor RelativeSource Binding – Enables a DataTemplate to bind to a property on the control that contains it. Implicit DataTemplates ...
UPDATED 13 January 2013 This post is written at a time of Visual studio 2010. In Visual studio When you compile your project You compile every project under the same solution. For make fast resolution you can compile only the project that you are working on now. Exclude the project from debug which you currently not working on. Here is some great discussion on SO http://stackoverflow.com/qu... ...
In this 2nd Post-MIX11 Submittal Issue: John Papa, Pete Brown, Tim Heuer, Bart Czernicki, Kunal Chowdhury(-2-, -3-), Kevin Dockx, Manas Patnaik, Michael Crump. Above the Fold: Silverlight 5 Beta: "Announcing the Silverlight 5 Beta Release and the Silverlight.net Redesign" Pete Brown and "Silverlight 5 Beta–A guide to the new features" Tim Heuer WP7: "Getting started with Windows Phone 7 and Azure" Michael Crump From SilverlightCream.com: Lightning Strikes at MIX11! UX Lightning, That Is John Papa ...

At one point or another I'm sure we've all been confused as to why our binding won't work.  Here's a couple things to keep in mind:

Read more at http://blog.danskingdom.com/my-wpf-binding-wont-work-wtf/

A list of some shortcus and new features to VS 2010 and C# 4.0:

Read more at http://blog.danskingdom.com/some-visual-studio-2010-shortcuts-and-c-4-0-cool-stuff/

So if you are trying to set focus to a WPF element, but are unable to.  Here is a quick checklist to go through:

Read more at http://blog.danskingdom.com/setting-focus-to-an-element-in-wpf/

I had a major problem this week with an MVC app. All of a sudden, all the styles and images stopped working. Man, I spent hours on this trying all sorts of stuff. I setup a new project and stuff worked. So what the heck is up. Then I started playing around one item at a time to figure out what was going on. Eventually I thought, hm, I was working on debugging routes. So lets try the global.asax file items. Well, a line of code was lurking there that I picked up from the route debugger sample (http://haacked.com/archive... ...
On Day 2 of Mix 2011, it announced the new version of Silverlight. The main features in this first beta version are: XAML Debugging with breakpoints for binding debugging Implicit data templates for easy UI reuse Double (and multi) click support GPU-accelerated XNA-compatible 3D and immediate-mode 2D API Low-latency sound effects and WAV support Real operating system windows and multi-display support Significant performance improvements, fixes and much more You can see all necessary information and ...
Like it or not, we humans make mistakes. If we embrace the fact that we are going to make mistakes, we can direct our efforts to reduce mistakes in areas that are critical in exchange for potentially making more mistakes in areas that aren’t. Gasp! We need to get over the silly notion that our work can ever be 100% perfect and try to maximize in the areas that matter. Does it really matter? These are the things I’ve found that typically don’t matter as much in the grand scheme of development. Start ...
Open firewall ports as listed in http://msdn.microsoft.com/e... SQL Admin Connection- 1434 (TCP) SQL Debugger - 135 (TCP) SQL Service Broker - 4022 (TCP) SQL TCP Browser - 2382 (TCP) SQL UDP Browser - 1434 (UDP) SQL Server - 1433 (TCP) Note: This may have to be open on the client side as well SQL Dynamic Port - 49172 (TCP) Programs SQL Server Management Studio SQL Server TCP-IN SQL Browser Visual Studio Remote Debugging ...
As I mentioned in a previous blog post, I’ll be speaking on IntelliTrace at Tech Ed 2001 – North America. This blog post is the first in a series that I’ll publish as I delve into IntelliTrace in more detail, in preparation for my talk. IntelliTrace is enabled by default in Visual Studio 2010 Ultimate, but it is configured so as to only capture some basic information, so as to not impact application performance. I thought a good starting point would be to look and see what the different configuration ...
Normal 0 false false false EN-GB X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans... mso-ascii-font-family:Calibri; ...
(these are lifted verbatim from Microsoft here, here and here and are presented below only because it’s convenient to have them lumped altogether…) Getting Started with Windows Phone Windows Phone development platform supports both XNA Framework and Silverlight. This unit takes you through the step-by-step creation of your first Windows Phone Silverlight application. Hands-On Labs · Hello Windows Phone This lab intends to be the classic "Hello World" application, introducing you to the tools and ...
Let me start with this disclaimer: this is not a supported environment. You may/will run into problems and then you’re on your own. Microsoft will not help you here. If you want to develop for Surface (v1, that is, since that’s the only one available at this time of writing) you will have to use Windows Vista 32bit and Visual Studio 2008 Pro or higher. So, that’s out of the way. Let’s return to the real world. I am, of course, running Windows 7 Ultimate (64bit) and Visual Studio 2010 Ultimate. After ...
This code didn't quite work how I intended, so I've updated it in a follow up blog. So - first post - might as well start with an extension method of mine I've found rather useful recently. It returns a collection of Types from all locally-deployed Assemblies, optionally filtering by Assembly and Type. It's an extension method on Assembly, so if you wanted to get all the available Types which implement the IService interface, you could call IEnumerable<Type> services = Assembly.GetExecutingAssemb... ...
In this Issue: Peter Kuhn, Emil Stoychev, Viktor Larsson(-2-), Kevin Hoffman, Rudi Grobler, WindowsPhoneGeek, Jesse Liberty(-2-), and Martin Krüger. Above the Fold: Silverlight: "Image comparison using a GridSplitter" Martin Krüger WP7: "Using WP7 accent color effectively" Viktor Larsson XNA: "XNA for Silverlight developers: Part 7 - Collision detection" Peter Kuhn From SilverlightCream.com: XNA for Silverlight developers: Part 7 - Collision detection Peter Kuhn has part 7 of his XNA for Silverlight ...
Visual Studio 2010 Service Pack 1 (SP1) is now available for general download for almost a week now. The Beta of SP1 came couple of months back and it did a lot of performance enhancements, added support for HTML5 tags and few other stuff related to web development. Now, the final release of SP1 is available. The good part is that, if you had installed the SP1 beta, you don’t have to remove the Beta and start all over again. You can apply the final release on top of the Beta and it works like a charm. ...
I was debugging a script injection issue the other day using some sample code with an alert in it. The alert was popping out meaning the code got executed leaving open the possibility for a hacker to put there some nasty malicious code. I knew my alert was being executed but didn’t know how. So I tried something that worked perfectly for this problem, replaced the native alert function with my own one. All I had to do in Chrome was open the javascript console and type: alert = function(msg){ console.log(msg); ...
(This is my first review as a part of the GeeksWithBlogs.net Influencers program. It’s a program in which I (and the others who have been selected for it) get the opportunity to check out new products and services and write reviews about them. We don’t get paid for this, but we do generally get to keep a copy of the software or retain an account for some period of time on the service that we review. In this case I received a copy of Red Gate Software’s ANTS Memory Profiler 7.0, which was released ...
In this Issue: Mark Monster, Gill Cleeren, Pencho Popadiyn, Kevin Dockx, Joost van Schaik, Jesse Liberty, John Papa, Jeremy Likness, Arik Poznanski(-2-), Page Brooks, Deborah Kurata, Mike Snow, Alfred Astort, Samuel Jack, XAMLNinja, and Shawn Wildermuth. Above the Fold: Silverlight: "Asynchronous Callbacks with Rx" Jesse Liberty WP7: "Phoney Windows Phone 7 Project Now Available!" Shawn Wildermuth MVVM: "Validating our ViewModel" Mark Monster Shoutouts: Shawn Wildermuth has a video up of his FadingMessage ...
In this Issue: Loek van den Ouweland, Colin Eberhardt, Rudi Grobler, Joost van Schaik, Mike Taulty(-2-, -3-), Deborah Kurata, David Kelley, Peter Foot, Samuel Jack(-2-), and WindowsPhoneGeek(-2-). Above the Fold: Silverlight: "Silverlight Simple MVVM Commanding" Deborah Kurata WP7: "WP7 CustomInputPrompt control with Cancel button" WindowsPhoneGeek Expression Blend: "Silverlight Templated Image Button with two images" Loek van den Ouweland Shoutouts: Dave Campbell posted a write-up about the project ...
Check out the Top Five most popular news at SilverlightShow for Jan 31- Feb 06, 2011. Here's SilverlightShow top 5 news for last week: Free ebook: Silverlight for Windows Phone Deploying Silverlight with WCF Services Localize a Silverlight 4 Application WCF - Silverlight debugging tips Kinect and WPF: Getting the raw and depth image using OpenNI Visit and bookmark SilverlightShow. Stay in the 'Light ...
Ever now and then I kept wondering how to share with my kids the excitement of creating something with your computer. Of course, today this is a bit more difficult, as they have seen 3D animation games and well-edited websites. I guess that's why they weren't all that hyped when I found my first computer model at our local recycling facilities (an 8-bit Laser VZ-200 with rubber keys). When I finally got it up and running with an old analog TV set they finally asked whether we could play soccer on ...
Great article (a little old but still relevant) about the inner workings of session management in ASP.NET: Underpinnings of the Session State Management Implementation in ASP.NET. Using StateServer and BinaryFormatter serialization caused me quite the headache over the last few days. Curiously, it appears the w3wp.exe process actually consumes more memory when utilizing StateServer and storing somewhat large and complex data types in session. Users began experiencing Out Of Memory exceptions in the ...
I have been working on a Silverlight Navigation application which uses LINQ to query an XML data source and has been working without a hitch until I added a control to the landing page. All other pages which worked fine were loaded from the navigation service Once I added the control I got a page not found error! (The page is there) and If navigated to, it works as expected. What happens, it that I closed the error Modal dialog and then clicked on another page, then navigate back to the landing page ...
Hi, I presented a talk on Windows Phone 7 @ MoMo and got awesome response, even though WP7 is quite new still. I also demoed 2 applications on both emulator and the actual device. It enjoy the look on audience faces when they see the app actually work on actual device. I see a great opportunity on WP7 and everyone I met agrees on the fact the WP7 has a very bright future ahead. The Ecosystem which WP7 has (developing/ debugging tools, emulator, almost flat learning curve, office/sharepoint integration ...
Part 1 | Part 2 | Part 3 | Part 4 I wanted to create a series of blog post that gets right to the point and is aimed specifically at Silverlight Developers. The most important things I want this series to answer is : What is it? Why do I care? How do I do it? I hope that you enjoy this series. Let’s get started: Tip/Trick #16) What is it? Find out version information about Silverlight and which WebKit it is using by going to http://issilverlightinstall... Why do I care? I’ve had ...

When debugging with Visual Studio 2010, you may find that you can't attach to the aspnet_wp.exe process as its greyed out.

One solution is to look at the Debug Diagnostic Services, it may be automatically starting and creating new instances of DbgHost.exe – leading VS to think a debugger was already attached.

Disabling this service should fix the problem of  aspnet_wp.exe being greyed out.

Part 1 | Part 2 | Part 3 | Part 4 I wanted to create a series of blog post that gets right to the point and is aimed specifically at Silverlight Developers. The most important things I want this series to answer is : What is it? Why do I care? How do I do it? I hope that you enjoy this series. Let’s get started: Tip/Trick #11) What is it? Underline Text in a TextBlock. Why do I care? I’ve seen people do some crazy things to get underlined text in a Silverlight Application. In case you didn’t know ...
Part 1 | Part 2 | Part 3 | Part 4 I wanted to create a series of blog post that gets right to the point and is aimed specifically at Silverlight Developers. The most important things I want this series to answer is : What is it? Why do I care? How do I do it? I hope that you enjoy this series. Let’s get started: Tip/Trick #1) What is it? You can easily enable a visual Framerate counter inside your Silverlight Application. The end result looks like the image below: Why do I care? This should be used ...
I was lucky enough to attend Visual Studio Live! in Orlando on November 14th-17th. There were so many great speakers and the networking was great. I met a lot of really cool people and we talked about everything .NET (from WP7, Silverlight, C#, ASP.NET WebForms, AJAX, MVC 3.. and so forth). I took a lot of notes during all the sessions and wanted to provide it to those that could not come out. If you follow me on Twitter then you have seen most of these. Most of the authors put slides/source code ...
During hierarchy changes, MDS provides some basic rules for validating hierarchy members against some logic that is defined in the model within the MDS interface or through the Services interface. Behind the scenes, MDS is generating all sorts of T-SQL to ultimately enforce these rules. There is the ability to extend these rules with your own custom implementation if the configuration driven rules don’t suffice – either a SharePoint workflow or through custom CLR code packaged as an assembly. For ...
The code samples in Microsoft All-In-One Code Framework are updated on 2010-10-10. Download address: http://1code.codeplex.com/r... If it’s the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on YouTube http://www.youtube.com/watc... or read the introduction on our homepage http://1code.codeplex.com/, and this Port25 article http://port25.technet.com/a... ...
We I first received this book, I was not sure what to expect. When it comes to development topics on debugging the spectrum is very wide. Most developers, including myself, only use basic techniques for day-to-day debugging. These get us through our problems quickly and they work well for 80% of the bugs we encounter. We forgot to close a connection, we didn't set a variable, we forgot to exit a loop, we fat fingered a variable name. All of these are daily errors we as developers face and fix with ...
In this Issue: Michael Washington, Peter Kuhn, Alex Golesh, Jonathan Marbutt, Karsten Januszewski(-2-, -3-, -4-), Erik Mork, Jeff Blankenburg, Martin Krüger, and Colin. Above the Fold: Silverlight: "Programmatic Silverlight Tree View Control Node Expansion using View Model (MVVM)" Michael Washington WP7: "Conditional Logic During Start Up of a Windows Phone App" Karsten Januszewski From SilverlightCream.com: Programmatic Silverlight Tree View Control Node Expansion using View Model (MVVM) Michael ...
Before working with MVC, I would claim to be somewhat intimidated by JavaScript development. Not that I did not know how to use it, however I found that is was much more bug prone and harder to develop against. Having the .Net compiler was a nice safety net-I did not have to worry about variable name mismatch, typos, not to mention the .Net framework itself. In a recent ASP.Net project we used the MS AJAX update panel to implement interface changes that could easily be implemented via client side ...
Entity Framework 4 Code First CTP4 was released in July and the API for developing without any edmx continues to mature and get better. Code First allows you to define your entity framework configuration with a Fluent API similar to Fluent NHibernate. Although the API for EF Code First is very user friendly, you should still have integration tests to verify that you’ve configured your entities correctly. This post will walk through configuring EF4 Code First optimistic concurrency. Suppose I have ...
In this Issue: Bart Czernicki, Sharker Khaleed Mahmud, Dragos Manolescu, Peter Kuhn, Victor Gaudioso, John Papa, Jeff Blankenburg(-2-), Ning Zhang, Paul Seriff, Dennis Doomen, and Martin Krüger. Above the Fold: Silverlight: "My Silverlight 4 Reference Architecture: Commanding" Dennis Doomen WP7: "Windows Phone 7 RTM charting using the Silverlight Control Toolkit" Bart Czernicki Sketchflow: "Silverlight TV 48: Creating Rich Interactive Prototypes with Sketchflow - Part 1 " John Papa Now pulling Silverlight ...
So I’ve been hearing a lot of folks (myself included) having issue with debugging there web application with VS 2010, Cassini (the VS web server) and IE9. It looks like this Well I found and easy solution, image that . Edit your hosts file at location c:\windows\system32\drivers... and make sure the localhost 127.0.0.1 line is uncommented and the localhost ::1 is commented or deleted. You can ping locahost host from a command line and make sure you see Reply from 127.0.0.1: bytes=32 time<1ms ...
I've got a solution to running and debugging unit tests for WCF hosted services that utilize the CMServiceHost. Whether your generate your serivce proxy via WSDL (Add Service Reference) or Shared Contract (ClientFactory), the solution is similar. This email will detail how to invoke a WCF Service Host for testing in both scenarios. Testing a service client generated via "Add Service Reference" I'll illustrate the solution using the following sample unit test. Let's assume you've created a service ...
Model Functionality · Support for Enums for property types from lookup tables · Allow default date = DateTime.Now - The only way to set a default date in the entity data model is to put a hard date in there, a string. If you have a known default date (e.g. 1900-01-01) this is fine. But often we want NOW to be the default and there's no way to indicate that in the model. · Support for System.IO.Stream instead of Byte[] for varbinary type of fields · Support GUID as Entity Key -http://leedumond.com/blog/... ...
Merge Wpf and Silverlight to single framework · Merge both frameworks to use the same assemblies and controls (with optional functionality in separate assemblies) make a .net silverlight profile that would be a subset of .net client profile and used by partially trusted xaps. · Conditional compilation within Xaml - stopgap solution: for Silverlight/WPF differences in shared markup. · Support the direct hosting of Silverlight – stopgap solution: support the direct hosting of Silverlight in a WPF application ...
One the coolest features of Internet Explorer 8 that most developers don’t know about are the built-in developer tools. You don’t have to download anything, install it, or enable it. There are two ways you can open the IE Developer Tools, you can either hit F12, or under the Tools menu icon, you can choose “Developer Tools”. HTML Tab This tab allows you to see and edit in real time the HTML and applied styles that make up your page as seen by the Internet Explorer DOM. The CSS Tab Shows you all of ...
I recently bought a new PC and I choosed a machine based on the 64bit version of Windows 7. Using a 64bits OS will allow me to use more than 4GB of RAM and this is quite important for me because it will allow me to run multiple virtual machines to test beta products and keep some customers' development environment isolated from the others (for example for customers that need to test and certify each installed QFE and may allow me to install them on my development machine some time after their availability). ...