Building .NET 1.1 application with Visual Studio 2005

11. January 2007
1- Start with downloading this archive : CompileWithDotNet11.zip 2- Check the requirements : Visual Studio 2005, C# Framework .NET 1.1 CompileWithDotNet11.zip (cf 1!) 3- Follow the instructions : - Copy ‘DotNet11Compile.CSharp.targets’ to C:\Program Files\MSBuild (This file was initialy built by Jomo, I have just changed 2 lines : http://blogs.msdn.com/jomo_fisher/articles/410896.aspx) - Open Visual Studio 2005 and create an empty C# project (console, library, winform, …) or open a old Visual Studio 2003 C# project and accept the convertion - Save it and close Visual Studio 2005 - Open the .csproj file with notepad - Change the following line    <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />  by  <Import Project="$(MSBuildExtensionsPath)\DotNet11Compile.CSharp.targets" /> - Re-Open the C# project - Open the Configuration manager (Right-Click the soluti... [More]

.NET Projects, Developer Tools ,

Understanding WCF advanced concepts and comparing it to ASMX 2.0 or WSE 3.0

10. January 2007
Essentials references for understanding WCF…. WCF Base WCF Callbacks, Events WCF Instances Management WCF Features comparison : (table below was extracted from this article) Web Service Software Factory Feature ASMX 2 .0 plus WSE 3. 0 WCF Hosting IIS/ASP.NET (.asmx) SoapReceivers IIS/ASP.NET (.svc) ServiceHost<T> WAS Programming Model [WebService], [WebMethod], and so on (supports interfaces, generics, and the like) [ServiceContract], [OperationContract], and so on (supports interfaces, generics, and so on) Message Exchange Patterns (MEP) One-way Request-response Custom (using WSE API) One-way Request-r... [More]

Architecture, Web Services, XML , ,

Exception “Thread was being aborted” while doing Response.End, Response.Redirect or Server.Transfer

5. January 2007
To avoid this error, replace : Response.End with HttpContext.Current.ApplicationInstance.CompleteRequest(); Response.Redirect(url) with Response.Redirect(url, false) Server.Transfert with Server.Execute For details, consult the microsoft kb : http://support.microsoft.com/kb/312629/EN-US/

Asp.net, Asp.net ,

How to read an event log

3. January 2007
Sample console application that read the content of an event log… ——– using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace EventLogReader{   public class Program {     static void Main (string[] args){       EventLog logger=new EventLog("Application");       int maxLineLength=30;       string logFilter="*";     //*, I, W, E, ?                   string message;       string type;       int counter=0;       DateTime start, ... [More]

C# sample code