Tag | Visual Studio Posts

I have some basic rules when it comes to checked in code to TFS. The one at the top of the list of rules is that, any developer should get the latest code from TFS, deploy and have a working web part, workflow or any other customization in SharePoint. This means that all dependencies should be deployed with the customization. If the web part uses a custom list as a data source, then a developer should not have to manually create site columns with the ‘correct’ internal and display name, list instances ...
A while back I was helping a client upgrade SharePoint 2007 code to SharePoint 2010 and I came across this interesting problem. I was working web parts that were created in Visual Studio 2008 using WSPBuilder extensions. The first order of business was to convert them to Visual Studio 2010 templates instead of using WSPBuilder 2010 extensions. Why Use Visual Studio 2010 templates? There are two main reasons I highly recommend using Visual Studio 2010 templates instead of using WSPBuilder 2010 templates. ...

Update: Posted the video of “MVVM Applied” below.

This week I was “on tour” in Belgium and Netherlands and presented 3 times:

Read the rest of this entry »

Recommendation: Don't use the same action names for get and (Ajax) post.I am always amazed at how bad Microsoft's code examples are. Code generated using the default templates in Visual Studio is not much better. To find out, create an empty project (pick your favorite type) and run static code analysis or FxCop and see how many warnings you see. For some real fun try running StyleCop. The default templates (and therefore commonly-used standard practices) are also not very good in my opinion. Consider ...
NDepend is a Visual Studio add-in designed for intense code analysis with the goal of high code quality. NDepend uses a number of metrics and aggregates the data in pleasing static and active visual reports. My evaluation of NDepend will be broken up into several different parts. The first part of my evaluation of NDepend is in the installation. The second part will cover my first impressions including the initial profiling for the solution that I will use throughout my evaluation. I used version ...
A quick note - possibly "note to self" - about how you can add administration pages to central administration ("CA"). Start with an empty SharePoint project.Add a mapped folder - to Template/admin.Add an application page to this folder. This is a three step process; add the page, move it from the layouts folder (where Visual Studio decided that you really wanted it), and rename the namespace. Next you'll want to add this page to CA. Do this by adding a custom action group and a custom action. Cksdev ...
A couple of days ago I decided to reinstall the latest Microsoft Developer Training Kits. One of those kits was the Windows Azure Training Kit. It turned out to be a web matrix install that seemed to take forever. More importantly it installed SQL Server 2012 for me. It may have prompted me but I don’t remember but once installed I entered a couple of days of nightmare mode. My RSSBus ADO connection to QuickBooks had stopped working and worst of all LightSwitch was totally broken. The problem is ...
You get an error message with Microsoft Test Manager 2010: Automatic connection to the following team project failed: <project_name> on server <tfs server>. Click refresh to display all currently available team projects, then connect to the project that you want to use. This error message displays everytime you are trying to connect to the MTM 2010 though you are able to connect to TFS successfully from the VS 2010. The issue doesnt goes off after installing the hotfix and deleting the ...
The same article in the TechNet. If you are working with queues in BizTalk Server, the most possible it is the MSMQ (in my experience). MSMQ is an old man of the Microsoft technology stack. It was created when there were no good standards for messaging. Now MSMQ is wrapped partly in the .NET System.Messaging namespace. It is just a small facelift. MSMQ is still a proprietary technology without well-defined messaging protocol. It means, you cannot use the MSMQ messaging protocol without MSMQ itself. ...
The problem As you might know, Site Definitions are not supported on Office365. This is not a restriction of Office365 as such, but more a Sandboxing restriction. In a SharePoint 2010 Sandboxed environment you’re not allowed to deploy files to the file system. And a SharePoint Site Definition requires that. The answer lies in the newly introduced web template tag. In this post I will describe, step by step, how to create a web template, and how to create a new Site Collection based on that web template. ...
Classes starting soon...First topics to start with will be Visual Studio and .NET 4. After that there are sessions on SharePoint 2010 - Admin, Dev & General Usage Inviting all the people who wish to expand their knowledge in the field of Microsoft Technologies. I will be conducting FREE classes on various streams in Microsoft Technologies like: SharePoint - Administration and Development Visual Studio - 2010 C# and .NET 4 LINQ Team Foundation Server 2010 SSIS ASP .NET Programming Office Apps ...
Translate this pageArabicBulgarianCatalanC... SimplifiedChinese TraditionalCzechDanishDutch... CreoleHebrewHindiHungarianI... TranslatorCheck out this page in {0} translated from {1}translated fromOriginal:Translated:Aut... translation powered by Microsoft® TranslatorStart translatingStop translatingCloseClose ...
Arrggghhhh TFS and builds! Such a love-hate relationship! So we have our TFS builds setup to both compile our C# projects as well as compile and deploy our Team Foundation (TF) Database (DB) projects. One day I started getting the following file path too long error message on our build server: $/RQ4TeamProject/Prototypes... - 1 error(s), 69 warning(s), View Log File C:\Program Files (x86)\MSBuild\Microsoft\Vis... ...
Intuit Partner Platform and Data Access I’m going to make some assumptions that will cover a lot of folks developing applications to work with QuickBooks. 1. You are running a copy of QuickBooks on your development machine. 2. You are running Visual Studio 2010 as your development environment of choice. 3. You have some flavor of Microsoft LightSwitch installed. 4. You want to access QuickBooks data on your machine to USE LightSwitch. Well now you have an option. Head on over to http://www.rssbus.com ...
Most of us spend our time in Visual Studio writing .NET code within a Visual Studio solution. Given this situation we find it very easy to integrate with Team Foundation Server for our source control and have a well known work pattern. But what happens when you want to use TFS as source control for non-Microsoft development? The most important thing to remember is that source control should be as transparent as possible to the developer. If the particular language or product does not have an Integrated ...
Stylecop 4.7.7.0 has been released at http://stylecop.codeplex.co... release announcement reads:"Updated release "4.7" for project stylecop This is now compatible with the Visual Studio 11 Preview.Install order should be : VS10VS11R#6.1.1 msi (for VS10)R#6.1.1 vsix (for VS11)StyleCop 4.7.4.0 (or later) This version is now compatible with R# 5.1 (5.1.3000.12), R# 6.0 (6.0.2202.688), R# 6.1 (6.1.37.86) and R# 6.1.1 (6.1.41.36) available from http://confluence.jetbrains... ...
Workflow deployment can be a real pain, here's an error I came across the other day.Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data. To restore the association data to the workflow, restart the workflow settings wizard by selecting the workflow node in Solution Explorer and then clicking the ellipsis button (…) on one of the properties in the Properties window that has an ellipsis button.Even though Visual Studio suggests to reassociate the ...
When you place a Visual Studio solution into TFS or pull it down for the first time a default working path is set in the workspace mappings. There are times when you need to point source code to a new location. Once option you have is to simply use the Manage Workspaces dialog to edit the local folder for the your solution. Select your workspace. Click on the Local Folder and an ellipse button will appear to allow to set a new folder. The problem with this approach is that it doesn’t seem to consistently ...
While the title of this post suggests focus on LINQ to Twitter, it also indicates that I’ll be discussing how to build a Windows 8 Metro application. The application itself will display a list of tweets from Twitter’s public feed. In the sections that follow, you’ll read background information on pre-requisites to understanding the post, learn how to get LINQ to Twitter working with Visual Studio 11, and then see a step-by-step on how the application is built. Getting Started You can build Metro ...
I’ve been testing\evaluating ComponentOne’s Studio for ASP.NET Wijmo suite for an MVC 3 project and I’m quickly becoming a fan! This product has so many things going for it that I’m not sure where to start. I’m going to focus on the Wijmo components, but the suite also contains a set of controls for ASP.NET WebForms development. If the Webform controls are as good as the MVC controls, they’re worth a look. There are two versions of the Wijmo components. An open source version containing 30 widgets ...
One of the great things about 2012 is that I am not in our office nearly 100% of the time during business hours. This is the first time I have been able to work from our office this much in about 4 years. In fact, we have moved three times during that four years and I have only averaged about 10-25% of my time in the office. This means I can actually setup my desk for development instead of business related tasks only. That means THREE MONITORS! My first reaction after a week with this setup: I never ...
This post is an example of how to write a WCF Service using a class. The example uses Visual Studio 2010, written in C#, SQL Server 2008 and hosted in IIS. So lets have at it. The table is pretty simple just three columns, an TestID (int), Value1 (varchar(50)) and Value2 (varchar(50)). The stored procedure used will return one record from the table using the TestID as a parameter. Table SQL: CREATE TABLE [dbo].[Table_1]( [TestID] [int] IDENTITY(1,1) NOT NULL, [Value1] [varchar](50) NOT NULL, [Value2] ...
JetBrains have recently released ReSharper 6.1, along with compatible updates to dotCover (version 1.2) and dotTrace Performance (version 4.5.2). Here is a list of common developer tasks that ReSharper 6 helps handles better than previous versions: Improve Visual Studio responsiveness: While developing ReSharper 6.0 and 6.1, Jet Brains have fixed more than 200 performance and memory consumption issues, as well as over 2900 bugs!Use proper tooling for web development: ReSharper 6 introduces extensive ...
So lately I have been back in the dev arena more so and working from home. I find that I have some spare time because sometimes I pile directly through lunch. Today I was playing around with a control that I felt I had tested thoroughly. I was completely wrong. So here is an explanation of how to build out the accordion control in a webpart without having the same issues. First off go here and download the jquery-ui-1.8.16.custom.min.js and jquery-1.6.2.min.js. Then what I want you to do is create ...
My collegue told me that placing the opening curly brace at the end of the line is safer than at the beginning of the new line, because it prevents some hard-to-debug errors, related to Automatic Semicolon Insertion and pointed me to the article Basic JavaScript Part 6: Automatic Semicolon Insertion. The article has the recommendation Trying to outline curly braces at the end of the line can save you some headaches in case a semicolon is forgotten somewhere in the code.The statement is misleading ...
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 ...
If you are not following Shawn Wildermuth or haven't bought the Essential WP 7.5 Application Development with Silverlight I would highly recommend. I am not going to talk about why we need a smartphone or how smartphone is taking over all the World, We all know how it started and where it took and where is going to take us in the future. Since we all know the future of the Mobile Eco systems I think it will be a good time to be a part of. lets jump into our series of blog posts of Windows Phone 7.5 ...
Next month, the TechDays edition 2012 (14-15-16 february) will take place in Belgium. The last three years, the event passed in Antwerp, but now they are moving to a new location. Kinepolis Imagibraine in Braine l'Alleud (Eigenbrakel).The location isn't that important.The hard thing will be, to pick out the most interesting sessions, because there any many sessions in the same time-blocks. Here is a list of some sessions, i'll certainly attend:Introducing Windows Runtime in Windows 8What's new in ...
Luego de varios días sin hacer post, hoy nuevamente retomo para mostrar un pequeño ejemplo de un tema que últimamente ha sido muy tocado en los foros de asp.net de MSDN. Cómo hacer un menú dinámico con MySql? Antes de empezar a mostrar como crear el menú voy a explicar algunos problemas que encontré durante el desarrollo del ejemplo: 1. Para el ejemplo, utilizaremos la versión beta 6.5 del conector de .net para mysql, sin embargo, deben tomar en cuenta que este conector esta en desarrollo y aún carece ...
I presented two talks on windows azure recently. One among them was focusing on Windows Phone 7 app development. The other one was on MVC3 ASP .Net app. The idea was to introduce how Windows Azure can be leveraged in both these exciting platforms. The talk was demo centric; below are the slides and the demo / webcasts recordings links for the same. Talk one- Building Windows Phone Applications with Windows Azure Platform and Visual Studio 2010 Demo included: Creating a Demo application from VS 2010 ...
The current version of MVVM Light had a couple of issues in the project templates. The most annoying one was causing a problem when creating new projects: The GUIDs used to uniquely identify the project were in fact not re-generated properly every time, and we ended up with the same GUID in every new project. The symptoms are the following: If you side-load an MVVM Light application, and then side-load another one, you will see that the first one is overwritten. Note however that this is only an ...
January 2012 will go down as one of the most memorable months! What a fantastic way to start the year, received an email from Microsoft telling me that I have been presented with the Microsoft MVP Award in the Visual Studio Application Lifecycle Management Competency for 2012. Dear Tarun Arora, Congratulations! We are pleased to present you with the 2012 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise ...
What a better way to start of the year, but with a product that I recommend. I reviewed this product last year on my personal site and now almost a full year later, I still recommend this product. I develop for different platforms and different languages so it is important for me to keep my snippets organized. Visual Studio and Eclipse both have a way to store snippets, but what if your put into a situation where you may need one and find that its in the other IDE that you are working with. That’s ...
A little more than three months ago, Microsoft hosted the //build/ conference at which they unveiled the upcoming version of Windows (commonly called Windows 8, though I don’t know if the marketing folks have accepted the fact that that is the name most of us are expecting for it yet). They released to the developer world a build of it called the Windows Developer Preview (and Windows Server Developer Preview) along with various tools for creating the new “Metro style” apps. I wasn’t able to make ...
This demo is a continuation of my previous article about "ASP.NET MVC 3: Creating a Simple Sign-Up Form" which I wrote few months ago. Basically in this post I'm going to demonstrate how to create a simple LogOn form in which users can supply their username and password. And how to authenticate and validate users in ASP.NET MVC 3. I will not elaborate more in details about the model, view and controllers function so before you go any further, I'd suggest you to check my previous article first about ...
In the team that I have been working with lately they use NDBUnit to control the test database state for Integration Tests. Today I thought I would blog briefly on one of the issues we had and how we are going to go forward in the future in structuring our solution and working with NDBUnit. Let me say upfront that I am no expert with NDBUnit, so if you are an expert with this tool, and you can see glaring mistakes in this post, add a comment (I would appreciate that). That said, let me highlight ...
Wishing a very happy and blessed New Year to you in advance! A new release of Microsoft All-In-One Code Framework is available on December 29th. We expect that its 11 new code samples covering typical programming scenarios in Windows Phone 7, ASP.NET, WPF, Windows Shell, and WDK would ease your development in the coming New Year. You can download the code samples using Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, ...
I would like to share with you some exciting news from the Gizmox labs. If you haven't heard by now the Visual WebGui Mobile Team @ Gizmox has been working on a .NET Mobile Framework for a few months now. This mobile dedicated framework continues the Visual WebGui vision towards the mobile development workd by enabling Microsoft core .NET developers to leverage their existing skills for developing cross-platform HTML5-based mobile apps within Visual Studio. As with its Web Framework, the Visual WebGui ...
I have been looking into InRule, a business rule management system (BRMS) from InRule Technology, recently and thought I would do an intro blog on it. I have worked with business rule engines before and from past experience have developed my own list of priorities on what I feel are the most important aspects. Here they are… Priority 1 - Reduce the cost of change For me, one of the primary reasons for implementing a business rules engine is because you are expecting change and want to reduce the ...
A friend of mine works for a large bank… about a year and a half ago they needed a new system developed for their division. They went through the normal process of using one of the recommended service providers to develop the system and this was their experience, which is still typical with most institutions I know… For the first few months development of the system seemed to be progressing along fine. They had meetings, business analysts put things on paper and the developers nodded their heads ...
First off in order to get your asp.net site up and running (without membership) all you have to do is copy your aspx files to the root of the htdocs folder that they supply for you. This in itself is an application directory and because of this you can run ASP.NET pages. For your information, I host my site with HostForLife.euSecond, you can use membership by going to their admin pages, creating a database, exporting your data and schema from your current membership database, and then running a script ...
I’ve heard people mention, a few times, how they would like for Microsoft to provide a blank template for ASP.NET MVC. The request seems strange because this is something that anyone can do themselves. This isn’t just creating an MVC project and deleting all the items, which I would agree is tedious. Rather, you can create a custom template of any type for reuse and sharing. This blog post shows how to create a custom project template, using the need for a blank MVC template as the use case. Creating ...

I just pushed two big updates to MVVM Light setup components.

Read the rest of this entry »

Welcome to the hidden treasure of “MTM.config.exe” Navigate to “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE” and open the 1. Can I change the number of Action Recording steps selected when a Bug is created? When you are exploratory testing using Microsoft Test Manager or performing a feedback session using Feedback Manager and decide to raise a bug or create a test case, the last 4*10 Action recordings are selected by default. You can change the number of action recordings selected ...
To add a new role into my aspnet database, I tried to use the asp.net Web Application Administration Website. But it was showing the following error message:An error was encountered. Please return to the previous page and try again. Strange, because I was sure, that my connectionstring was correct.After a while, after reading about the asp.net Web Application Administration Website, I found that it can't handle spaces or special character in the project path.My project was located in C:\Users\JEROEN\Documents\V... ...
What could you build with the XBox Kinect? Well we want to know! Connect your Kinect to your PC and build an application using your favorite .NET language. Kinect for Developers is a 2-day workshop for developers, artists and technicians interested in Kinect hacking or 3D scanning. This hands on workshop will teach you the basics of programming for Kinect and the potentials for developing on video and depth sensor cameras. Expect live demonstrations, presentations, food, and lots of hacking. You ...