Email Confirmation – ASP.NET MVC Web Application

Tuesday, December 6, 2011

Tweet In my previous post on ASP MVC I showed How To Add Captcha to ASP MVC Web Application, but even if you use captcha you still want to make sure the user email is real and not just a fake one. In order to make sure the user has gave you his real email you need to use Email Confirmation mechanism to your site. ASP MVC is doing some of the work for us, when a user is register to your site is assign with a unique ID (Guid) property called -  ProviderUserKey I’ll use this...

TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010

Wednesday, June 16, 2010

TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010 One of my first posts on TFS API I showed how to obtain TFS User List (TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain))m Couple of days ago I got a question how to perform the same thing on TFS 2010, This is very simple: In TFS 2008 the global user group were called = "Team Foundation Valid Users". Identity SIDS = gss.ReadIdentity(SearchFactor.AccountName, "Team Foundation Valid Users", QueryMembership.Expanded); In TFS 2010 the name of TFS...

TFS API Part 24 – Get All Fields From TFS

Tuesday, March 9, 2010

TFS API Part 24 – Get All Fields From TFS I got an email regarding previous post (TFS API Part 6: WorkItemStore - Get Fields From WorkItemType) how to get Fields without regard to Work Item Type? This is very easy using Team System API. Download Demo Project Step 1: Create Project and Add Reference Create an WPF/WinForm application and add the following references:      Microsoft.TeamFoundation.WorkItemTracking.Client.dll (C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.TeamFoundation.WorkItemTracking.Client.dll)      Microsoft.TeamFoundation.Client.dll (C:\Program Files (x86)\Microsoft Visual Studio...

Expect The Unexpected

Wednesday, November 25, 2009

Expect The Unexpected The Microsoft Developer Platform Marketing team has launched a compelling new worldwide Microsoft® .NET Framework campaign at www.dotnetstories.com. Through online videos and written case studies featuring real developers who built amazing and diverse solutions on the .NET Framework, the campaign is intended to tell a clean and cohesive end-to-end story that is engaging and relevant to the developer community. What a great way to see some of the “unexpected” and powerful .NET stories—by real .NET developers. A great opportunity to learn from other experience and share yours. Stories...

Working With Bluetooth Devices Using C# – Part 2 (OBEX)

Tuesday, June 23, 2009

Working With Bluetooth Devices Using C# – Part 2 (OBEX) In my last post I talked about Working With Bluetooth Devices Using C# – Part 1 In this post I’ll show how to send file to bluetooth device. To send file to a bluetooth device we need to use WebRequest but with obex format. Download Demo Project OBEX is an acronym that stands for OBject EXchange, mostly used in the communications technology field as a communications protocol. Because the Infrared Data Association maintains OBEX, it...
9 comments

Working With Bluetooth Devices Using C# – Part 1

Sunday, June 21, 2009

Working With Bluetooth Devices Using C# – Part 1 32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code. Supports desktop, mobile or embedded systems. The project currently consists of the following libraries:- Bluetooth IrDA Object Exchange In this post I’ll show how to find Bluetooth devices using C# code. Download...
10 comments

HttpWebRequest and the Expect: 100-continue Header Problem

Monday, June 1, 2009

HttpWebRequest and the Expect: 100-continue Header Problem Today I had an irritating problem when using the HttpWebRequest to POST form data over Proxy-Auth using HTTP 1.1. When sending this request over SSL every thing was fine, but when I used POST I got this error - X-Squid-Error: ERR_INVALID_REQ 0 from the server. After sniffing each request and drill down to understand the problem I found that not all web servers handle HTTP header "Expect: 100-Continue" correctly. Who Add this Header? No me! According to the HTTP 1.1 protocol, when this header is sent, the...
3 comments

TFS API Part 19: Merge

Monday, April 20, 2009

TFS API Part 19: Merge In my last post about TFS API TFS API Part 18: More Basic Stuff On Workspaces I demonstrate how to get / create and delete workspaces. In this post I’ll show how to perform Merge using TFS API. First add reference for      Microsoft.TeamFoundation      Microsoft.TeamFoundation.Client      Microsoft.TeamFoundation.Common.dll      Microsoft.TeamFoundation.VersionControl.Client.dll located in - C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies Download Demo Project Step 1 – Connect TFS +...

How To Debug MSBuild Projects And Tasks

Wednesday, April 8, 2009

How To Debug MSBuild Projects And Tasks Almost everyone customize their MsBuild scripts for the company needs. But some times because those customization you spend a lot of time try to make this script works as you want. There is no easy way to debug those MSBuild script / Tasks and here is a list of links to help you accomplish this:   published by - Buck Hodges - Debug your build with MSBuild Sidekick v2.3 Powerful MSBuild projects debugger with extended functionality: step through mode, visual representation of build process on a...

The "BuildShadowTask" task failed

Sunday, March 29, 2009

The "BuildShadowTask" task failed When Running tests Team System you got this error - ------------------------------------------------------------------------------------------------------ Error 8 The "BuildShadowTask" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.VisualStudio.TestTools.BuildShadowReferences.BuildShadowTask.Execute()    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) APITestProject ------------------------------------------------------------------------------------------------------ I got help from this MSDN Post The BuildShadowTask is a component used by the Microsoft.TeamTest.targets used to build the private accessor DLL, that a unit test uses to get at private and protected members of a test target....