Tag | Debugging Posts

This is first in series of articles about project I've been building in my spare time since last Summer. Actually it all began when I was researching a topic of modeling human motion kinematics in order to create gesture recognition library for Kinect. This ties heavily into motion theory of robotic manipulators so I also glanced at some designs of robotic arms. Somehow I stumbled upon this cool looking open source robotic arm: It was featured on Thingiverse and published by user jjshortcut (Jan-Jaap). ...
Today's deal of the day from Microsoft Press at http://shop.oreilly.com/pro... is Getting More Productive with Microsoft® Visual Studio®"Take a detailed look into Visual Studio—and learn practical techniques to help you work more efficiently. This fully revised and expanded version of Visual Studio Tips: 251 Ways to Improve Your Productivity includes a comprehensive collection of tips and shortcuts for working with the code editor, visual designers, searches, debugger, and other ...
Cloud computing gives us more flexibility on the computing resource, we can provision and deploy an application or service with multiple instances over multiple machines. With the increment of the service instances, how to balance the incoming message and workload would become a new challenge. Currently there are two approaches we can use to pass the incoming messages to the service instances, I would like call them dispatcher mode and pulling mode. Dispatcher Mode The dispatcher mode introduces ...
If anyone of you has debugged managed crash dumps, I am sure you must have come across a situation when debugger keeps telling you it’s not able to load mscordacwks.dll. It usually happens when the dump was taken from a machine that had a specific version on .NET framework with patches installed and the machine where the crash dump is being analyzed has different .NET framework version number. When I talk about different version no, I mean the minor version. E.g. Crash dump was taken from machine ...
Occasionally I run into a problem difficult to reproduce in that it takes a laborious amount of tinkering. Sometimes I’ve gone through the work of plugging away at the user interface or forcefully moving the current statement manually around if statements. In these situations, I become very attached to my debugging session (no pun intended). I am secure in my nerdiness enough to admit that there have been instances where I have changed code for testing purposes and forgotten to revert those changes ...
Yesterday I had the pleasure of meeting Chris malavarca who is an account executive for Matalogix. The name Metalogix immediately brought me to think about language and meta-language, rule and meta-rule, and the dangers of mixing between them. Alan Turing envisioned a machine with states, code and an infinite tape. The tape could be in any of infinite positions and be made to move forwards or backwards, the machine could be in any of a finite number of states. The code was a finite transition table ...
Microsoft documentation article Source Schema for the Logging Application Block is very hard to follow,the set of articles http://www.education.vic.go... is much betterFinally I found Log Event to Listener Routing in Enterprise Library article, that very clear described available options , how to disable/enable logging There are three Filters provided out of the box including a LogEnabledFilter which is a very effective ...
Windows Azure Fieldnote Summary Windows Azure Drives [1] provide a means to represent a file based (disk drive) persistent storage option for the various role types within Windows Azure Compute. Each of the roles within Windows Azure can mount and utilize for persistent storage (that survives reboot, reimaging, and updated deployments, of a role instances). During the mounting of a VHD as a CloudDrive, the managed classes have no means to control the drive letter assignment this directly through ...
In this blog post I thought I would talk a little about one of my favorite features of VS2010, Intellitrace. Intellitrace is debugging on steroids. In regular debugging session you can see the values of variables at a certain time, but you can’t go backwards, and you cannot see the state of the entire system. This means that some bugs cannot be reproduced. With Intellitrace a log file is created that allows you to debug the file. This is similar to a dump but has lots more information, and when run ...
This is a second part of the BizTalk Naming Convention. Part 1: biztalk: BizTalk solution naming convention Special Orchestration Objects <Message> =: msg_ + <ShortMessageType> <Variable> =: var_ + <Name> <CorrelationSet> =: cor_ + <Name> <OrchestrationParameter> =: par_ + < Name> <RoleLink> =: roleLink_ + <Name> Note: These objects are special BizTalk objects. They are used in different language context and sometime they use different language ...
Yesterday I received my copy of “Pro Windows Embedded Compact 7” by Avi Kcholi. http://www.apress.com/97814... It’s a great book for people that have some experience and knowledge Windows Embedded Compact 7 and want to learn the “black magic” behind device driver development on this operating system. The book guides the reader trough different aspects of drivers (and BSP) development, starting from the foundation and reaching some advanced topics that are not covered in the on-line reference. ...
When you’re debugging security related things, sometimes you need to take a look at the thread identities user token. When you’re inside of Visual Studio 2010 – in the watch windows you enter ‘$user’ and you’ll get the same as when in windbg with !token –n ...
Overview C++ AMP is a GPGPU API – it allows you to define functions (kernels) that take some input, perform an expensive calculation on the GPU and return the output to CPU. GPU supports fast calculative operations across many SIMD-like cores - NVidia Tesla supports 512 cores compared to the paltry 10 cores available on the CPU today - even Intel's Knights Corner will only support 60 cores next year. Suitable only for certain classes of problems (i.e. data parallel algorithms) and not for others ...
I took a shot at new (to me) certification exam for BizTalk 2010. I was able to pass it without any preparation just based on the experience. That does not mean this exam is a very simple one. Comparing to previous (2006 R2) it covers some new areas (like WCF) and has some demanding questions and situation to think about. But the most challenging factor is broad feature coverage. Overall, the impression that if BizTalk continues to grow in scope it’s better to create separate exams for core functionality ...
You want the RAD wonderfulness of a visual web part, but it needs to be deployed as a Sandboxed solution. Problem? No, SharePoint powertools for visual studio to the rescue! http://goo.gl/pQ9ct There are a couple limitations, read the above page, nothing major. e.g. 1. Javascript debugging is not supported 2. Debugging asp.net code is not supported. 3. Use of <% Assembly Src= is not supported I understand it does it by adding the markup as an embedded resource, but I haven't actually tried it ...
I'm working on a 5+ year old ASP.NET project that has 74+ projects and we've been adding new Silverlight applications to run in the ASP.NET page islands. My machine at work isn't the most powerful, so I find myself waiting a lot for the whole thing to build. I'm using Visual Studio 2010, so that takes up a lot of resources as well. This causes me to get distracted and I start looking at the news... I need to combat that more :-). I can't get a new machine, that's up to someone else, so I've found ...
A very intriguing issue came to me to debug .Net code called from X++ code in AX 2012. This was indeed a challenge to be nailed down. Luckily the tools and some concepts helped me to achieve this task. Here it goes... We need to do a seamless debugging from AX debugger to Visual Studio back and forth. To enable this we need to first see if the dll to be debug is present in GAC then we might need to uninstall it from it due to the order of preference .NET loads the assemblies. The assemblies are first ...
NOTE: This information applies to LightSwitch Beta 1 ONLY. This post originally copied from here. Visual Studio LightSwitch has a bunch of screen templates that you can use to quickly generate screens. They give you good starting points that you can customize further. When you add a new screen to your project you see a set of screen templates that you can choose from. These templates lay out all the related data you choose to put on a screen automatically for you. And don’t under estimate them; they ...
One of the cool things about HTML5 is the ability to play audio/video files out of the box without the dependency on plugins. Earlier I had written about HTML5 Video and the fallback using Silverlight for non-supported scenarios Visual Studio 2010 SP1 has decent support for HTML5, in terms of intellisense, validation etc., But, one issue that is constantly faced when using the HTML5 Video tag in an ASP.NET Application (Web/MVC) built using Visual Studio is that, the videos doesn’t play when running ...
Today's 50% off deal from O'Reilly at http://shop.oreilly.com/pro... is Coding Faster: Getting More Productive with Microsoft® Visual Studio® "Expert advice to help you work smarter and increase your productivity with Visual Studio. Take a detailed look into Visual Studio—and learn practical techniques to help you work more efficiently. This fully revised and expanded version of Visual Studio Tips: 251 Ways to Improve Your Productivity includes a comprehensive collection of tips ...
This would be the first in the series of posts I plan to do for HTML5 for ASP.NET Developers The first thing that everyone would have experienced is the HTML5 header tag. The regular header tag that Visual Studio creates for ASP.NET Webforms is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml... This would be the header tag present in the Master Page or the actual ASPX Page when you don’t inherit from a Master Page. Till HTML5 specifications ...
In my particular case the problem was due to Silverlight. I have my ASP.NET MVC application which is incorporating a Silverlight application into it. When integrating the Silverlight application VS will ask you if you want to allow for debugging your Silverlight application. Selecting yes will enable the Silverlight debugger in your web applications project settings (see below): To allow JavaScript debugging again simply uncheck the Silverlight checkbox and start your application ...
Hello Everyone, I thought I’d take a minute to update everyone on my upcoming talks and events that I will be attending. I have talks ranging from Kinect, Silverlight, HTML5 to OData! Wow, that’s a wide range of technology and I’m very passionate about everyone of them. Let’s get started. DevReach - October 17th through the 18th in Sofia, Bulgaria. I will not be speaking at this event only attending. I am very excited because this will be my first time visiting Bulgaria. I am looking forward to meeting ...
In SQL Server we know 3 kinds of temporary tables: Local Temp Tables, Global Temp Tables and Table Variables. In this blog I will try to explain the differences, and tell you how to use it. Local Temp Tables The local temp table is the most commonly used temp table. This temp tables is created with the following statement: CREATE TABLE #TempTable (ID INT IDENTITY(1,1) NOT NULL, Description VARCHAR(10) NULL) The table that the script above created is a temporary table that is stored on disk. To be ...
Is your WFC Service hitting the Maximum Limits set on the default service configurations? Open up the artificial constraints of the WCF Service Debugging WCF Services and message sizes. Caveat emptor: If you need to increase the size of the of the contracts, it probably indicates that you should reexamine the design of your data contract. In any case, to “Open Up” the service, you will need to set on both the client and server side configurations: 1. Timeouts 2. Message Sizes 3. Max Objects In Graph ...
In this Issue: Shawn Wildermuth, Ollie Riches, Oscar Agreda, Samidip Basu, Dan Wahlin, Walt Ritscher, Laurent Bugnion(-2-), Andrej Tozon, András Velvárt, Vikram Pendse, Michael Crump, Andy Beaulieu(-2-), Michael Sync(-2-), Above the Fold: Silverlight: "The MVVM Dashboard" Oscar Agreda WP7: "SurfCube on Mango Part 4 – fighting with the ListPicker control" András Velvárt Windows 8: "Why I’m Excited About Windows 8" Dan Wahlin LightSwitch: "Creating LightSwitch Custom Controls" Michael Washington Shoutouts: ...
The nice thing about unintended changes is that you never think it could happen until you get bitten by a nasty change. Microsoft did publish a complete list of breaking changes here which is complete to my knowledge. But although the intentional changes are listed there are side effects which can cause you to search for hours your (non) fault. One change was to create a new GAC for .NET 4 assemblies to prevent breaking applications which rely on the structure of the GAC introduced with .NET 2.0. ...
Introduction I’m sure by now you have heard that the Silverlight 5 Release Candidate has been released. I recently had a chance to Guest Blog for the Microsoft MVP Award Program Blog on “Getting Started with the Silverlight 5 Release Candidate”. Now before we get started learning about it, let’s look at a few new features: What is new in the Silverlight 5? Multiple Window Support - Trusted app can create additional Windows. Ancestor RelativeSource Binding – Enables a DataTemplate to bind to a property ...
I'm back... what did I miss?? Oh wait... you're expecting info from me about my week I guess :) I had an awesome time: Met tons of people that I didn't already know. Renewed friendships with another ton of people I only see a couple times a year Went to Billy Hollis' PreCon and learned a lot of cool design information that I have yet to transcribe or assimilate entirely Went to Tim Huckaby's party and was "B8 ed" ... although that looked better on the girl wearing the TShirt when I got there Didn't ...
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 ...
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 ...
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 ...
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 ...
I am a reformed former JavaScript hater. In the 90s and early 2000s I muddled through JavaScript compatibility issues, poor performance and a lack of development & debugging tools. When ASP.NET came out, promising to hide me from the complexity of browser incompatibilities, I fully embraced server-side web development. This approach may have worked in 2002, but it does not today. The world's expectations have been reset by Ajax, Google Maps, mobile web sites, high performance JavaScript engines, ...
It’s been quite a while since I’ve done a GeeksWithBlogs.net Influencers review. This time, I had the opportunity to check out Red Gate’s SmartAssembly 6.1, which is a integrated collection of tools for modifying and manipulating assemblies. Now that phrase, while accurate, is quite a mouthful. So what all does it actually do? SmartAssembly has the ability to: Do strong name signing; Add automated error reporting; Add feature usage reporting; Merge dependencies (e.g. libraries) into the main assembly ...
If you've found this blog posting, you've probably been banging your head against a wall trying to get those errors generated from your web service to appear in your MVC web site. You may have already discovered that while you can see the messages display in Fiddler, getting them to appear in your project takes a little bit of work. First, l strongly recommend you check out the work already done on this subject by more dedicated bloggers than l: http://kenneththorman.blogs... ...
This morning I got the information that the Windows Azure Tools for Visual Studio 2010 - August 2011 Upgrade had been released. The version of this new upgrade is 1.4.40727.1601 with the Windows Azure SDK v1.4.20407.2049. This upgrade includes some awesome features that I was looking forward for a long time, which are: Profiling the application running in Windows Azure. New ASP.NET MVC 3 web role template. Multi-configuration files in one cloud project. More validation in the service package and ...
So, last year I was working a large SL 4 project. Things rolled along well but… One of the devs the client forced on us was a guy who claimed to be a senior developer but was really a very junior one. Now the client had him doing all kinds of work and thought he was awesome. So one day I was debugging problems and found this. At startup of the app, we needed a bunch of lists for list boxes and validation and such. What this dev had done was make calls to WCF like so: Get list 1 Get list 2 Get list ...
Much has been talked about the F12 developer toolbar in IE and the support it provides for web developers. Starting IE8, the Developer Toolbar is a menu item that helps you view the page source, scripts, profiling and many other details of the rendered page. It even allows script debugging from within and that makes it a truly powerful web developer tool bar. With IE9, the developer toolbar got even better with the Networking Tab that allows you to inspect the traffic/time taken and drill down into ...
Workflow 4 State Machine – Distributed Tracking Visualization · Disclaimer: This post requires an understanding of WF 4.0.1 , WCF and WPF. · Before I explain the how, look at the following image for the what: I am debugging a REMOTE workflow STATEMACHINE instance, and from tracking information sent from server, I am able to highlight the current state in my client! Visual Workflow Tracking Sample – a Big Ball of Mud · Workflow 4 provides the System.Activities.Presentat... class which ...
I recently spent far too long debugging a problem with our Azure application. We have two Azure cloud projects, and they both started refusing to start at about the same time, with different error messages. The web applications they house both worked absolutely fine when deployed to local IIS. There turned out to be two different problems - both very simple - so I thought I'd share what they turned out to be :) Problem 1 One application failed to start in Azure, with the error message "Unable to ...
In this Issue: Kunal Chowdhury, Khawar Yunus, Alex van Beek, David Kelley, Laurent Bugnion(-2-), Valentin Stoychev, Dhananjay Kumar, and Jesse Liberty(-2-). Above the Fold: Silverlight: "Using Silverlight and Server Push to build a better means of debugging production applications" Khawar Yunus WP7: "Monetizing Phone 7 Application Methods and Approaches" David Kelley Shoutouts: Joe McBride has his materials up for the presentation he did: Push Notifications and Tiles – Slides & Demos Damian Schenkelman ...
One of the greatest benefits of building your solution flies in MSBuild (vs in Visual Studio directly) is that it doesn't lock up the Visual Studio UI, which can be a huge pain if you have a large solution that takes several minutes (or longer) to build. Building your solution in MSBuild leaves you free to inspect code in Visual Studio while your solution is building. The only problem is that to do this you have to open a command prompt and type the command + path every time to build. If you want ...
Kevin Williamson has a great post on the overall flow of things from the point of publishing of your package up on the Windows Azure Developer Portal to Run(). These are good things to know as many times you need to inject steps, tasks, context at various stages of your service instance’s lifetime. http://blogs.msdn.com/b/kwi... Windows Azure Role Architecture - Windows Azure - Troubleshooting & Debugging - Site Home - MSDN Blogs ...
When debugging it is useful to display the connection string but what you do not want is to disclose the password. So I wrote a function StripConnectionPassword to strip the connection string of any password. The function takes a string like: Provider=SQLOLEDB.1;Passwor... Security Info=True;User ID=DINGBAT;Initial Catalog=tempdb;Data Source=DALET and returns: Provider=SQLOLEDB.1;Passwor... Security Info=True;User ID=DINGBAT;Initial Catalog=tempdb;Data Source=DALET The function ...
A new power tool that promises to redefine the way you debug. You would need the high end Visual Studio 2010 Ultimate edition to run this power tool, the idea is to enhance the debugging experience and present code in bubble windows as you navigate from code in one page to code in another page. This should let u traverse through the stack easily, what more you can save the debug bubble canvas session, add notes, etc. The power tool will be available for download shortly. The video is promising indeed… ...
In this Issue: Kunal Chowdhury, Joost van Schaik, Xpert360, Tony Champion, Paul Sheriff, Vangos Pterneas, Jesse Liberty, Jeremy Likness, Mike Taulty, and Pete Brown. Above the Fold: Silverlight: "Binding on Style Setter in Silverlight 5" Kunal Chowdhury WP7: "Debugging Windows Phone 7 device network access with just a laptop" Joost van Schaik Training: "MVPs Chat It Up on Twitter - Tony Champion's Pivot of the results" Tony Champion From SilverlightCream.com: Binding on Style Setter in Silverlight ...
When using the Twitter Search API, the returned posts contain a "created_at" date time stamp with the time set to GMT time. This becomes an issue when using pymongo to store the datetime object in MongoDB. When a datetime object gets stored in MongoDb, mongo (or the pymongo library) updates the datetime object to reflect the current timezone. So in my case, since I live in Seattle, the datetime values get offset by 8 hours. For example, a Twitter post with a timestamp of "12/21/2010 06:07:56" gets ...
Recently I was working in the Staging environment at my current client. A Debugging Opportunity occurred and I needed to trace into a Called Orchestration. “No symbolic information was found for this orchestration. In the Visual Studio project containing the orchestration, set the Embed Tracking Information option to True. Rebuild and redeploy to enable tracking and debugging.” I have NO idea how this came about, but after inspecting the properties of the Project and comparing it to a working Orchestration ...
Wow, where does the time go? Here I am, sitting in the Memphis airport on Sunday evening, waiting for my flight to Atlanta for Tech Ed 2011 – North America. I love going to Tech Ed, as it is the conference that really re-energizes me for the year. And this year especially, as I’m speaking again on one of the biggest stages in the world. This year I am speaking on IntelliTrace, formerly known as “Historical Debugging”. The main idea behind IntelliTrace is that you no longer run into the “un-reproducable ...