<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Julien Pinquié</title><link>http://weblogs.asp.net/jpinquie/default.aspx</link><description>ASP.NET, C#, SQL Server, Windows Live</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/jpinquie" type="application/rss+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Rechercher des tables et colonnes dans SQL Server</title><link>http://weblogs.asp.net/jpinquie/archive/2009/06/19/faire-des-recherches-de-tables-et-de-colonnes-dans-sql-server.aspx</link><pubDate>Fri, 19 Jun 2009 15:46:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7130236</guid><dc:creator>jpinquie</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2009/06/19/faire-des-recherches-de-tables-et-de-colonnes-dans-sql-server.aspx#comments</comments><description>
&lt;p align="justify"&gt;Aujourd’hui, j’ai dû mettre en place le suivi des modifications dans les tables d’une base de données SQL Server chez un client. La base de données fait plus de 140 tables, pour une quarantaine à suivre, et les champs sont déjà créés : l’astuce est donc de rechercher les tables auxquelles appartiennent les champs &lt;i&gt;ModifiedOn&lt;/i&gt; ou &lt;i&gt;ModifiedBy&lt;/i&gt;.&lt;/p&gt;
  
&lt;p align="justify"&gt;Je me suis basé sur les tables systèmes qui contiennent les objets de la base de données, par exemple :&lt;/p&gt;
  
&lt;ul&gt;   
&lt;li&gt;     &lt;div align="justify"&gt;&lt;b&gt;sys.tables&lt;/b&gt; pour les tables,&lt;/div&gt;   &lt;/li&gt;
    
&lt;li&gt;     &lt;div align="justify"&gt;&lt;b&gt;syscolumns&lt;/b&gt; pour les colonnes, &lt;/div&gt;   &lt;/li&gt;
    
&lt;li&gt;     &lt;div align="justify"&gt;&lt;b&gt;sys.triggers&lt;/b&gt; pour les déclencheurs,&lt;/div&gt;   &lt;/li&gt;
    
&lt;li&gt;     &lt;div align="justify"&gt;&lt;b&gt;sys.default_constraints&lt;/b&gt; pour les contraintes, …&lt;/div&gt;   &lt;/li&gt;
 &lt;/ul&gt;
  
&lt;p align="justify"&gt;La requête ci-dessous devient évidente avec une jointure entre les tables &lt;b&gt;sys.tables&lt;/b&gt; et &lt;b&gt;syscolumns&lt;/b&gt; :&lt;/p&gt;
  
&lt;pre class="sql" name="code"&gt;SELECT t.name FROM syscolumns AS c
INNER JOIN sys.tables AS t ON c.id = t.object_id
WHERE c.name = 'ModifiedOn'
ORDER BY t.name&lt;/pre&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7130236" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/t-sql/default.aspx">t-sql</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/sql+server/default.aspx">sql server</category></item><item><title>Nouvelle version de CodeRush Xpress pour Visual Studio 2008</title><link>http://weblogs.asp.net/jpinquie/archive/2009/05/18/nouvelle-version-de-coderush-xpress-pour-visual-studio-2008.aspx</link><pubDate>Mon, 18 May 2009 11:41:45 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7091964</guid><dc:creator>jpinquie</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2009/05/18/nouvelle-version-de-coderush-xpress-pour-visual-studio-2008.aspx#comments</comments><description>&lt;p&gt;&lt;img title="DevExpress" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 20px 0px 10px; border-right-width: 0px" height="60" alt="DevExpress" src="http://weblogs.asp.net/blogs/jpinquie/image_3A5A7701.png" width="100" align="left" border="0" /&gt; &lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://www.devexpress.com/" target="_blank"&gt;DevExpress&lt;/a&gt; a publié une nouvelle version de &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/" target="_blank"&gt;CodeRush Xpress&lt;/a&gt; pour &lt;strong&gt;C#&lt;/strong&gt; et &lt;strong&gt;VB&lt;/strong&gt;, contenant notamment plus une soixantaine d’outils intégrés à &lt;strong&gt;Visual Studio 2008&lt;/strong&gt; pour faciliter les refactorings.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p align="justify"&gt;&lt;em&gt;&lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/" target="_blank"&gt;CodeRush Xpress&lt;/a&gt; est disponible gratuitement pour tous les développeurs Visual Studio 2008, et offre une suite d'outils qui vous permettent ainsi qu'à votre équipe de simplifier et de mettre en forme du code complexe, le rendant plus facile à lire et moins coûteux à maintenir.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Parmi les fonctionnalités intéressantes, en voici quelques unes que j’ai pu tester :&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Duplication des lignes &lt;/li&gt;    &lt;li&gt;Fonctionnalités avancées avec le presse-papier &lt;/li&gt;    &lt;li&gt;Navigation simplifiée (fenêtre ou fichier) &lt;/li&gt;    &lt;li&gt;Suppression de code ou de paramètres inutilisés &lt;/li&gt;    &lt;li&gt;Déplacement d'un type dans un fichier &lt;/li&gt;    &lt;li&gt;Inversion des conditions &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Toutes les fonctionnalités en détails &lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/" target="_blank"&gt;ici&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7091964" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/developpement/default.aspx">developpement</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/visual+studio+2008/default.aspx">visual studio 2008</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/.net/default.aspx">.net</category></item><item><title>Comportement du FileUpload dans un contrôle Ajax UpdatePanel</title><link>http://weblogs.asp.net/jpinquie/archive/2009/05/18/comportement-du-fileupload-dans-un-contr-244-le-ajax-updatepanel.aspx</link><pubDate>Mon, 18 May 2009 08:43:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7091890</guid><dc:creator>jpinquie</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2009/05/18/comportement-du-fileupload-dans-un-contr-244-le-ajax-updatepanel.aspx#comments</comments><description>&lt;p align="justify"&gt;Il existe une subtilité dans l'utilisation d'un &lt;strong&gt;FileUpload&lt;/strong&gt; placé dans un contrôle &lt;strong&gt;UpdatePanel&lt;/strong&gt;. Pour des raisons de sécurité, la configuration suivante ne fonctionnera pas. &lt;/p&gt;  &lt;p style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px; font-family: lucida console; background-color: rgb(247,247,247)"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;UpdatePanel&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;UpdatePanel1&amp;quot; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;       &lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;#160;&amp;#160; &amp;lt;&lt;font color="#800000"&gt;ContentTemplate&lt;/font&gt;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;FileUpload&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;FileUpload1&amp;quot; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;=&amp;quot;server&amp;quot; /&amp;gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;Button&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;btnSend&amp;quot; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;=&amp;quot;server&amp;quot; &lt;font color="#ff0000"&gt;Text&lt;/font&gt;=&amp;quot;Update&amp;quot;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#ff0000"&gt;onclick&lt;/font&gt;=&amp;quot;btnSend_Click&amp;quot; /&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;/&lt;font color="#800000"&gt;ContentTemplate&lt;/font&gt;&amp;gt;         &lt;br /&gt;&amp;lt;/&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;UpdatePanel&lt;/font&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;La propriété &lt;strong&gt;&lt;font face="Lucida Console" size="2"&gt;HasFile&lt;/font&gt;&lt;/strong&gt; est égale à &lt;strong&gt;&lt;font face="Lucida Console" size="2"&gt;False&lt;/font&gt;&lt;/strong&gt;. &lt;/p&gt;  &lt;p style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px; font-family: lucida console; background-color: rgb(247,247,247)"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;if&lt;/font&gt; (FileUpload1.HasFile)       &lt;br /&gt;{       &lt;br /&gt;&amp;#160;&amp;#160; ...       &lt;br /&gt;} &lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="2"&gt;Le téléchargement de fichier &lt;u&gt;nécessite un PostBack complet de la page&lt;/u&gt;, alors qu’un UpdatePanel fait ses requêtes de mise à jour partielle en utilisant l'objet &lt;strong&gt;XmlHttpRequest&lt;/strong&gt;. &lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;&lt;font size="2"&gt;La solution consiste tout simplement à ajouter un &lt;strong&gt;PostBackTrigger&lt;/strong&gt; sur le bouton qui exécute le téléchargement. &lt;/font&gt;&lt;/p&gt;  &lt;p style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px; font-family: lucida console; background-color: rgb(247,247,247)"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;UpdatePanel&lt;/font&gt; &lt;font color="#ff0000"&gt;ID&lt;/font&gt;=&amp;quot;UpdatePanel1&amp;quot; &lt;font color="#ff0000"&gt;runat&lt;/font&gt;=&amp;quot;server&amp;quot;&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#000000"&gt;...&lt;/font&gt;         &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;&lt;font color="#800000"&gt;Triggers&lt;/font&gt;&amp;gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;PostBackTrigger&lt;/font&gt; &lt;font color="#ff0000"&gt;ControlID&lt;/font&gt;=&amp;quot;btnSend&amp;quot; /&amp;gt;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; &amp;lt;/&lt;font color="#800000"&gt;Triggers&lt;/font&gt;&amp;gt;         &lt;br /&gt;&amp;lt;/&lt;font color="#800000"&gt;asp&lt;/font&gt;:&lt;font color="#800000"&gt;UpdatePanel&lt;/font&gt;&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7091890" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/asp.net/default.aspx">asp.net</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/ajax/default.aspx">ajax</category></item><item><title>Kit de développement pour Microsoft SQL Server 2008</title><link>http://weblogs.asp.net/jpinquie/archive/2009/05/15/kit-de-d-233-veloppement-pour-microsoft-sql-server-2008.aspx</link><pubDate>Fri, 15 May 2009 06:53:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7087671</guid><dc:creator>jpinquie</dc:creator><slash:comments>2</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2009/05/15/kit-de-d-233-veloppement-pour-microsoft-sql-server-2008.aspx#comments</comments><description>&lt;p align="justify"&gt;Microsoft vient tout juste de publier le &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=e9c68e1b-1e0e-4299-b498-6ab3ca72a6d7" target="_blank"&gt;SQL Server 2008 Developer Training Kit&lt;/a&gt;, qui fournit aux architectes et aux développeurs des informations sur les nouvelles fonctionnalités du serveur de base de données et leur utilisation.    &lt;br /&gt;Le kit de développement inclut &lt;strong&gt;6 présentations Powerpoint&lt;/strong&gt;, &lt;strong&gt;12 scripts de démo&lt;/strong&gt; et &lt;strong&gt;3 ateliers Hands-on Labs&lt;/strong&gt; sur les sujets suivants : les données spatiales, l'objet Filestream, l'intégration avec le CLR, Reporting Services, les types de date et heure, et les améliorations apportées à T-SQL.&lt;/p&gt;  &lt;p&gt;&lt;img title="Kit de développement pour Microsoft SQL Server 2008" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="75" alt="Kit de développement pour Microsoft SQL Server 2008" src="http://weblogs.asp.net/blogs/jpinquie/logoheadersql08dg_4D02785C.gif" width="363" border="0" /&gt; &lt;/p&gt;  &lt;p align="justify"&gt;Ce kit semble être assez complet, plus d’informations et téléchargement &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=e9c68e1b-1e0e-4299-b498-6ab3ca72a6d7" target="_blank"&gt;ici&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7087671" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/sql+server+2008/default.aspx">sql server 2008</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/training+kit/default.aspx">training kit</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/developpement/default.aspx">developpement</category></item><item><title>Erreur avec MSXML 6.0 lors de l'installation de SQL Server 2008</title><link>http://weblogs.asp.net/jpinquie/archive/2009/05/13/erreur-avec-msxml-6-0-lors-de-l-installation-de-sql-server-2008.aspx</link><pubDate>Wed, 13 May 2009 15:05:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7084939</guid><dc:creator>jpinquie</dc:creator><slash:comments>0</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2009/05/13/erreur-avec-msxml-6-0-lors-de-l-installation-de-sql-server-2008.aspx#comments</comments><description>&lt;p align="justify"&gt;En essayant d'installer &lt;b&gt;SQL Server Express 2008&lt;/b&gt;, j'ai rencontré une &lt;u&gt;erreur inconnue&lt;/u&gt; lors de l'action &lt;b&gt;Install_Msxml6_Cpu32_Action : SkipInstallNewerCA&lt;/b&gt;, ne récupérant aucune information exploitable dans les détails des erreurs de l'installation.&lt;/p&gt;  &lt;p align="center"&gt;&lt;img src="http://weblogs.asp.net/blogs/jpinquie/image_52366DA7.png" title="Install_Msxml6_Cpu32_Action : SkipInstallNewerCA" style="border-width: 0px; display: inline;" alt="Install_Msxml6_Cpu32_Action : SkipInstallNewerCA" mce_src="http://weblogs.asp.net/blogs/jpinquie/image_52366DA7.png" width="455" border="0" height="90"&gt; &lt;/p&gt;  &lt;p align="justify"&gt;Il s'agit en fait d'un problème avec &lt;b&gt;MSXML 6.0&lt;/b&gt;, qui n'arrive pas à se mettre à jour lorsqu'il est déjà installé sur le poste. La réinstallation manuelle ne résolvant pas le problème (dans mon cas), il faut &lt;u&gt;supprimer la version de MSXML 6.0&lt;/u&gt; (voir 4.0) présente avant de relancer l'installation complète de SQL Server 2008.&lt;/p&gt;  &lt;p align="left"&gt;Pour information, le fichier de log &lt;b&gt;Msxml6_Cpu32_1.log&lt;/b&gt; (dans le répertoire &lt;i&gt;C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log&lt;/i&gt;) fournit les indications suivantes :&lt;/p&gt;  &lt;p style="padding: 10px; font-family: lucida console; background-color: rgb(247, 247, 247);"&gt;&lt;font size="2"&gt;Début de l'action 14:03:48 : SkipInstallNewerCA.       &lt;br&gt;This package is not supported on this operating system.       &lt;br&gt;Fin de l'action 14:03:48 : SkipInstallNewerCA. Valeur renvoyée : 3.       &lt;br&gt;Fin de l'action 14:03:48 : INSTALL. Valeur renvoyée : 3.&lt;/font&gt;&lt;/p&gt;  &lt;p style="padding: 10px; font-family: lucida console; background-color: rgb(247, 247, 247);"&gt;&lt;font size="2"&gt;MSI (s) (74:58) [14:03:48:892]: Produit : MSXML 6.0 Parser (KB933579) -- L'installation a échoué.      &lt;br&gt;MSI (s) (74:58) [14:03:48:892]: Windows Installer a installé le produit. Nom du produit : MSXML 6.0 Parser (KB933579). Version du produit : 6.10.1200.0. Langue du produit : 1036. Réussite de l’installation ou état d’erreur : 1603.&lt;/font&gt;&lt;/p&gt;  &lt;p align="justify"&gt;D'après ce que j'ai pu trouver sur Internet, cette erreur peut apparaitre avec n'importe quelle version de SQL Server 2008.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7084939" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/tips/default.aspx">tips</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/sql+server+2008/default.aspx">sql server 2008</category></item><item><title>Problème avec WebDev.Webserver.exe, IE ne peut pas afficher la page Web</title><link>http://weblogs.asp.net/jpinquie/archive/2008/10/16/probl-232-me-avec-webdev-webserver-exe-ie-ne-peut-pas-afficher-la-page-web.aspx</link><pubDate>Thu, 16 Oct 2008 15:01:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6682995</guid><dc:creator>jpinquie</dc:creator><slash:comments>3</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2008/10/16/probl-232-me-avec-webdev-webserver-exe-ie-ne-peut-pas-afficher-la-page-web.aspx#comments</comments><description>&lt;p align="justify"&gt;Ce matin, j'ai d&amp;#233;cid&amp;#233; d'installer la nouvelle version de mon antivirus mais plus aucun moyen d'afficher les pages de mes projets &lt;strong&gt;Visual Studio 2005&lt;/strong&gt;, que ce soit en mode &lt;em&gt;Debug&lt;/em&gt; ou non, avec pour simple indication l'&amp;#233;cran ci-dessous, &amp;quot;&lt;strong&gt;Internet Explorer ne peut pas afficher cette page Web&lt;/strong&gt;&amp;quot; (&amp;quot;&lt;strong&gt;Internet Explorer cannot display the webpage&lt;/strong&gt;&amp;quot;).&lt;/p&gt;  &lt;p align="center"&gt;&lt;a href="http://weblogs.asp.net/blogs/jpinquie/WindowsLiveWriter/Problmea.exeIEnepeutpasafficherlapageWeb_EDF6/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="231" alt="image" src="http://weblogs.asp.net/blogs/jpinquie/WindowsLiveWriter/Problmea.exeIEnepeutpasafficherlapageWeb_EDF6/image_thumb_1.png" width="403" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p align="justify"&gt;C'est en ex&amp;#233;cutant la commande &lt;strong&gt;ping localhost&lt;/strong&gt; que je me suis rendu compte que l'adresse correspondante &amp;#233;tait &lt;strong&gt;::1&lt;/strong&gt;, il s'agit l&amp;#224; en fait de la repr&amp;#233;sentation IPv6 de l'adresse locale et le serveur web int&amp;#233;gr&amp;#233; &lt;strong&gt;WebDev.WebServer.exe&lt;/strong&gt; n'arrive pas &amp;#224; trouver l'adresse localhost dans cette configuration.&lt;/p&gt;  &lt;p align="justify"&gt;&lt;a href="http://weblogs.asp.net/blogs/jpinquie/WindowsLiveWriter/Problmea.exeIEnepeutpasafficherlapageWeb_EDF6/image_2.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; margin: 10px 0px 0px 10px; border-left: 0px; border-bottom: 0px" height="53" alt="image" src="http://weblogs.asp.net/blogs/jpinquie/WindowsLiveWriter/Problmea.exeIEnepeutpasafficherlapageWeb_EDF6/image_thumb.png" width="235" align="right" border="0" /&gt;&lt;/a&gt;Il suffit de commenter la ligne faisant r&amp;#233;f&amp;#233;rence &amp;#224; &lt;strong&gt;::1&lt;/strong&gt; dans le fichier &lt;strong&gt;hosts&lt;/strong&gt; contenu dans le r&amp;#233;pertoire &lt;em&gt;%windir%&lt;/em&gt;\&lt;em&gt;System32&lt;/em&gt;\&lt;em&gt;drivers&lt;/em&gt;\&lt;em&gt;etc&lt;/em&gt;\.     &lt;br /&gt;Aucun red&amp;#233;marrage&amp;#160; n'est requis.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6682995" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/tips/default.aspx">tips</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/vista/default.aspx">vista</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/visual+studio+2005/default.aspx">visual studio 2005</category></item><item><title>How to resolve "__doPostBack is not defined" error</title><link>http://weblogs.asp.net/jpinquie/archive/2008/02/07/how-to-resolve-quot-dopostback-is-not-defined-quot-error.aspx</link><pubDate>Thu, 07 Feb 2008 10:17:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5728793</guid><dc:creator>jpinquie</dc:creator><slash:comments>2</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2008/02/07/how-to-resolve-quot-dopostback-is-not-defined-quot-error.aspx#comments</comments><description>&lt;P&gt;It just happened to me... I put my script in an file and declare it in the header like this :&lt;/P&gt;
&lt;DIV style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new"&gt;&lt;PRE style="MARGIN: 0px"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;script&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;src&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="js/masterpage.js"&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;type&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="text/javascript" /&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR&gt;When I launch the page, I get a javascript error &lt;STRONG&gt;__doPostBack is not defined&lt;/STRONG&gt; and none of my javascript functions is executed. 
&lt;P&gt;It seems that &lt;U&gt;some tags need a closing tag&lt;/U&gt; and don't understand "/&amp;gt;", it's the case of the &lt;SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #a31515; FONT-FAMILY: courier new"&gt;script&lt;/SPAN&gt; tag but not of &lt;SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #a31515; FONT-FAMILY: courier new"&gt;link&lt;/SPAN&gt;, used to call my css style sheets for example. Using this code works :&lt;/P&gt;
&lt;DIV style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: courier new"&gt;&lt;PRE style="MARGIN: 0px"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;script&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;src&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="js/masterpage.js"&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;type&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="text/javascript"&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;script&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5728793" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/javascript/default.aspx">javascript</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/tips/default.aspx">tips</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/asp.net/default.aspx">asp.net</category></item><item><title>How to get domain user information from Active Directory in C#</title><link>http://weblogs.asp.net/jpinquie/archive/2008/02/06/how-to-get-domain-user-information-from-active-directory-in-c.aspx</link><pubDate>Wed, 06 Feb 2008 11:07:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5721777</guid><dc:creator>jpinquie</dc:creator><slash:comments>18</slash:comments><comments>http://weblogs.asp.net/jpinquie/archive/2008/02/06/how-to-get-domain-user-information-from-active-directory-in-c.aspx#comments</comments><description>
&lt;p&gt;First, we have to know the user connection name (here from an ASP.NET page).&lt;/p&gt;
  &lt;div style="background: white none repeat scroll 0% 0%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: black; font-family: courier new;"&gt;   
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; principal = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Context.User.Identity.Name;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;
  &lt;br&gt;Then we have to define some stuff :&lt;/p&gt;

&lt;ul&gt;
  
&lt;li&gt;search filter including object type and connection name, &lt;/li&gt;

  
&lt;li&gt;domain, &lt;/li&gt;

  
&lt;li&gt;properties to retrieve from Active Directory. &lt;/li&gt;
&lt;/ul&gt;

&lt;div style="background: white none repeat scroll 0% 0%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: black; font-family: courier new;"&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; filter = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Format(&lt;span style="color: rgb(163, 21, 21);"&gt;"(&amp;amp;(ObjectClass={0})(sAMAccountName={1}))"&lt;/span&gt;, &lt;span style="color: rgb(163, 21, 21);"&gt;"person"&lt;/span&gt;, principal);&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; domain = &lt;span style="color: rgb(163, 21, 21);"&gt;"DOMAIN"&lt;/span&gt;;&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;[] properties = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt;[] { &lt;span style="color: rgb(163, 21, 21);"&gt;"fullname"&lt;/span&gt; };&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;
  &lt;br&gt;To search in Active Directory, we need the following objects : &lt;/p&gt;

&lt;ul&gt;
  
&lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx"&gt;DirectoryEntry&lt;/a&gt; : represents a node or object in the Active Directory hierarchy, &lt;/li&gt;

  
&lt;li&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directorysearcher.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directorysearcher.aspx"&gt;&lt;/a&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directorysearcher.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/system.directoryservices.directorysearcher.aspx"&gt;DirectorySearcher&lt;/a&gt; : performs queries against Active Directory Domain Services. &lt;/li&gt;
&lt;/ul&gt;

&lt;div style="background: white none repeat scroll 0% 0%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: black; font-family: courier new;"&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryEntry&lt;/span&gt; adRoot = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryEntry&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"LDAP://"&lt;/span&gt; + domain, &lt;span style="color: blue;"&gt;null&lt;/span&gt;, &lt;span style="color: blue;"&gt;null&lt;/span&gt;, &lt;span style="color: rgb(43, 145, 175);"&gt;AuthenticationTypes&lt;/span&gt;.Secure);&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectorySearcher&lt;/span&gt; searcher = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;DirectorySearcher&lt;/span&gt;(adRoot);&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;searcher.SearchScope = &lt;span style="color: rgb(43, 145, 175);"&gt;SearchScope&lt;/span&gt;.Subtree;&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;searcher.ReferralChasing = &lt;span style="color: rgb(43, 145, 175);"&gt;ReferralChasingOption&lt;/span&gt;.All;&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;searcher.PropertiesToLoad.AddRange(properties);&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;searcher.Filter = filter;&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&amp;nbsp;&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;SearchResult&lt;/span&gt; result = searcher.FindOne();&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;DirectoryEntry&lt;/span&gt; directoryEntry = result.GetDirectoryEntry();&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;
  &lt;br&gt;Finally, once information is retrieved in the DirectoryEntry object, we can get the details of each property defined.&lt;/p&gt;

&lt;div style="background: white none repeat scroll 0% 0%; font-size: 10pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: black; font-family: courier new;"&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; displayName = directoryEntry.Properties[&lt;span style="color: rgb(163, 21, 21);"&gt;"displayName"&lt;/span&gt;][0].ToString();&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; firstName = directoryEntry.Properties[&lt;span style="color: rgb(163, 21, 21);"&gt;"givenName"&lt;/span&gt;][0].ToString();&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; lastName = directoryEntry.Properties[&lt;span style="color: rgb(163, 21, 21);"&gt;"sn"&lt;/span&gt;][0].ToString();&lt;/pre&gt;
  
&lt;pre style="margin: 0px;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; email = directoryEntry.Properties[&lt;span style="color: rgb(163, 21, 21);"&gt;"mail"&lt;/span&gt;][0].ToString();&lt;/pre&gt;
&lt;/div&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5721777" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/jpinquie/archive/tags/active+directory/default.aspx">active directory</category><category domain="http://weblogs.asp.net/jpinquie/archive/tags/c_2300_/default.aspx">c#</category></item></channel></rss>
