A shortcut to build a web proxy

31. July 2008
For reusing :  public static WebProxy BuildProxy(string proxyServer, int proxyPort, string login, string password, string commaSeparatedProxyExclusions) {     WebProxy proxy = new WebProxy(proxyServer, proxyPort);     if (!String.IsNullOrEmpty(login))     {         NetworkCredential proxyCredential = new NetworkCredential(login, password);         CredentialCache proxyCredentials = new CredentialCache();         proxyCredentials.Add(proxy.Address, "Basic", proxyCredential);         proxyCredentials.Add(proxy.Address, "Digest", proxyCredential);         proxy.Credentials = proxyCredentials;     }     foreach (string exclude in commaSeparatedProxyExclusions.Split(new char[] { ',' })... [More]

C# sample code

.NET StockTrader Sample Application

29. July 2008
Part of the Microsoft resume : This application is an end-to-end sample application for .NET Enterprise Application Server technologies. .NET StockTrader 2.0 composite Web application and middle tier services. New modes for Advanced Web Service (WS-*) message-level security and interoperability with a variety of non-Microsoft platforms via the SOA architecture. Configuration Service 2.0 with technical guides and samples. Capacity planning tool for running multi-agent benchmarks against the .NET StockTrader services. WSTest 1.5 Web services benchmark. Download here : http://www.microsoft.com/downloads/details.aspx?FamilyID=9A60F0C0-007E-4D49-B061-FBE26C28302E&displaylang=en

.NET Projects, Architecture, C# sample code, Web Services , , ,

My "Show desktop" icon does not appear in the quick launch bar

16. July 2008
1- From the explorer, open the following folder : C:\Documents and Settings\[Your Account Name]\Application Data\Microsoft\Internet Explorer\Quick Launch 2- Create a new text file and insert the following content : [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop 3- Save and rename the file : ShowDesktop.scf The icon will appear in the quick launch bar !

Miscellaneous, Windows ,

TechDays 2008

8. July 2008
Voici une synthèse « Draft » des éléments présentés lors des sessions des TechDays 2008 que j'ai suivi (que je n'ai jamais pris le temps de formaliser avant aujourd'hui !). A mon sens, le principale intéret de ce post est d'associer les technos entre elles et d'en retenir les mots clés ou outils associés. C'est une sorte de mémo. Pour les explications plus détaillées, vous pouvez consulter les webcasts correspondants et disponibles sur le site de Microsoft. Résumé des sessions du Lundi 11 février 2008 Plénière Silverlight : Quicksilver Ado.net Entity model Beta Ado.net Data service Beta Démo Astoria REST - Requetage via HTTP (Exemple avec Curl/Php) Démo Silverlight Javascript et demo Xaml Démo Silverlight 2.0 avec runtime .net embarqué + Linq to HTTP + Editeur Xaml dans VS 2008 ... [More]

.NET Projects, Architecture, Asp.net , ,

SQL Server 2008 Installation, second episode !

7. July 2008
In the first episode, I tried to install SQL Server 2008 RC0 Advanced Express (with only the database engine and Management Studio)...but the result was "Error 1814" during service starting. First action : "Repair"...but not possible because the program can only repair a well performed installation. In this second episode, I tried to uninstall the database engine service that previously failed and then try to reinstall it !!!   Uninstalling... Reinstalling...     This time, the installation succeeded ! To resume the differences between the first and the second installation (before --> after) : Selected features : Database only --> Database + Full text search Account for database service : NETWORK SERVICE --> SYSTEM Collation : French_CI_AS --> Latin1_CI_AI I have operated this change for the following reasons : Full text search : the error's d... [More]

Developer Tools, Sql ,

SQL Server 2008 Installation

7. July 2008
Previously installed : - .NET Framework 3.5 - Windows Installer 4.5 Tested prerequisites : Installation dashboards : Planning       Requirements details on Microsoft site : http://msdn.microsoft.com/en-us/library/ms143506(SQL.100).aspx Stand alone installation steps of the SQL Server 2008 Advanced Express Licensing   Installing setup support files   Defining features et settings Installation summary and starting...   Database installation succeeded but service starting failed ! Error 1814... Let's see the second episode on the next post !

Developer Tools, Sql ,

Windows Live Writer was used to published this post

6. July 2008
So, Windows Live Writer works with BlogEngine.NET  A few minutes ago, I didn't know this tool. It is free and developed by Microsoft. As you can see with this dancing banana, it works also well to publish images : You can download it here 

My avatar on gravatar !

6. July 2008
That's all. Just to remind me the link :)

Miscellaneous

Using "Dynamic Data" with Entity Data model instead of Linq To Sql model

6. July 2008
Previous versions of "Dynamic Data" were designed to use "LinqToSql". With this service pack beta, you can use it with "Entity Data". The "Context" type that must be declared is now "ObjectContext" instead of "Datacontext". After having installed... - .NET Framework 3.5 SP1 Beta - Visual Studio 2008 SP1 Beta (can be download here for .NET and here for VS) ...you can create a new project "Dynamic Data Entities Web Application". Then you just have to : - Create an "ADO.NET Entity Data Model" (for instance with the context class named "MyModelEntities") and insert one or more tables. - Uncomment and change the specific line in "Global.asax.cs" : model.RegisterContext(typeof(MyModelEntities), new ContextConfiguration() { ScaffoldAllTables = true }); - Launch the project

.NET Projects, Asp.net, DAL, Developer Tools , , ,

SQL Server Management Studio Express

1. July 2008
SQL Server Management Studio Express is a limited version that authorize access to SQL Server Databases (Express or not). Analysis, Reporting, Integration Services or SQL Server Agent are not available from this Express version. Most important features from  "Databases" and "Security" trees are available to create and modify databases and security accounts (but not roles). The following features are also available: - Generate scripts - Attach/Detach - Backup/Restore  - Activity monitor ...whereas "Maintenance plans" and "Logs" can't be opened.   The prerequisites are at least :  Microsoft Data Access Components (MDAC)                3.70.1146 Microsoft MSXML                               ... [More]

.NET Projects, Developer Tools, Sql , ,