<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dejan on Technology &#187; Visual Studio 2005</title>
	<atom:link href="http://www.vesic.org/english/blog/category/visual-studio-2005/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vesic.org/english/blog</link>
	<description>dotNet, ASP.Net, Programming, Software ...</description>
	<lastBuildDate>Mon, 01 Mar 2010 09:07:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Web.Config and Assembly Binding problems</title>
		<link>http://www.vesic.org/english/blog/net/webconfig-and-assembly-binding-problems/</link>
		<comments>http://www.vesic.org/english/blog/net/webconfig-and-assembly-binding-problems/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 15:09:39 +0000</pubDate>
		<dc:creator>Dejan Vesić</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[.Net 2.0]]></category>
		<category><![CDATA[Assembly]]></category>
		<category><![CDATA[Binding]]></category>
		<category><![CDATA[Web.Config]]></category>

		<guid isPermaLink="false">http://www.vesic.org/english/blog/?p=52</guid>
		<description><![CDATA[In a recent ASP.NET project, we had to replace <a href="http://www.nlog-project.org/">NLog</a> (excellent logging .Net library, by the way) assembly with newer one.

However, due to complexity of project, recompiling of all dependent assemblies was not an option. Suggested solution was simple - use assembly redirection ...]]></description>
			<content:encoded><![CDATA[<p><img class="imageRight" src='http://www.vesic.org/blog/upload/ikona-asp-net.png' alt='asp.net - Web.Config and Assembly Binding problems' />In a recent ASP.NET project, we had to replace <a href="http://www.nlog-project.org/">NLog</a> (excellent logging .Net library, by the way) assembly with newer one.</p>
<p>However, due to complexity of project, recompiling of all dependent assemblies was not an option. Suggested solution was simple &#8211; use <a href="http://msdn.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx">assembly redirection</a>:</p>
<p><code>&lt;runtime&gt;<br />
&nbsp;&nbsp;&lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;dependentAssembly&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;assemblyIdentity name="NLog"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;publicKeyToken="5120e14c03d0593c" culture="neutral" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;bindingRedirect oldVersion="1.0.0.0" newVersion="1.0.0.505" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/dependentAssembly&gt;<br />
&nbsp;&nbsp;&lt;/assemblyBinding&gt;<br />
&lt;/runtime&gt;</code></p>
<p>(all of this under <strong>&lt;configuration&gt;</strong> tag)</p>
<p>In a first attempt, it did not work <img src='http://www.vesic.org/english/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  &#8211; assembly redirection did not happen. Even <a href="http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx">Fusion Viewer</a> could not find anything strange &#8211; it looked like whole redirection part was simply ignored. </p>
<p>I looked (very simple) web.config again, carefully inspecting it; one line, at very top of the file, looked suspitious:</p>
<p><code>&lt;configuration <strong>xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"</strong>&gt;</code></p>
<p>After removing name space, and leaving usual:</p>
<p><code>&lt;configuration&gt;</code></p>
<p>all worked as a charm.</p>
<p>It turns out, that due bug in Visual Studio 2005, if you used in some point the built-in web administration tool (launched via the WebSite->ASP.NET Configuration menu item) it will add this name space to root configuration element. This will cause not just to stop <a href="http://weblogs.asp.net/scottgu/archive/2005/12/02/432077.aspx">Intellisense working for Web.Config</a> but also will ignore any Assembly Binding redirection instructions.</p>
<p>So, if you have problem with Assembly Binding redirection in your ASP.NET application, check web.config once more <img src='http://www.vesic.org/english/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vesic.org/english/blog/net/webconfig-and-assembly-binding-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VS 2005/2008 and Vista &#8211; IE cannot display the webpage</title>
		<link>http://www.vesic.org/english/blog/visual-studio-2005/vs-20052008-and-vista-ie-cannot-display-the-webpage/</link>
		<comments>http://www.vesic.org/english/blog/visual-studio-2005/vs-20052008-and-vista-ie-cannot-display-the-webpage/#comments</comments>
		<pubDate>Sun, 25 May 2008 08:29:12 +0000</pubDate>
		<dc:creator>Dejan Vesić</dc:creator>
				<category><![CDATA[Vista]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.vesic.org/english/blog/visual-studio-2005/vs-20052008-and-vista-ie-cannot-display-the-webpage/</guid>
		<description><![CDATA[I recently reinstalled my laptop completely (it is very nice Dell XPS M1330) and took that opportunity to make it into decent development machine (w/o all the stupid preinstalled applications). Installed also Visual Studio 2005 and 2008, SQL 2005 Express and all the little tools necessary (ClipX for example). Fired up latest web site on [...]]]></description>
			<content:encoded><![CDATA[<p><img class="imageRight" src='http://www.vesic.org/english/blog/wp-content/uploads/2008/05/ie-cannot-display-the-web-page1.png' alt='Vista and Visual Studio - problems with IPv6 and internal WebDev.WebServer' />I recently reinstalled my laptop completely (it is very nice <a href="http://www.dell.com/content/products/productdetails.aspx/xpsnb_m1330?c=us&#038;cs=19&#038;l=en&#038;s=dhs">Dell XPS M1330</a>) and took that opportunity to make it into decent development machine (w/o all the stupid preinstalled applications).</p>
<p>Installed also Visual Studio 2005 and 2008, SQL 2005 Express and all the little tools necessary (<a href="http://bluemars.org/clipx/">ClipX</a> for example).</p>
<p>Fired up latest web site on which I work on, F5 and &#8230; nothing &#8211; dreadfull message of <strong>&#8220;Internet Explorer cannot display the webpage&#8221;</strong>.</p>
<p>Ok, no panic here, let try Visual Studio 2008 with same web site; nothing <img src='http://www.vesic.org/english/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Same site, on two other development machines (Vista &#038; Vista 64) under VS 2005 and VS 2008 works w/o problem.</p>
<p>Started researching and debugging; it turns out that next generation protocol <a href="http://en.wikipedia.org/wiki/IPv6">IPv6</a>, or its implementation on Vista clashes with integrated web server WebDev.WebServer.exe; WebDev has a problem finding localhost address in default configuration.</p>
<p>Easy fix for this is to <strong>comment ::1 entry</strong> in <strong>hosts</strong> file:</p>
<p><img src='http://www.vesic.org/english/blog/wp-content/uploads/2008/05/uncomment-ipv6-localhost.png' alt='Uncomment ::1 in hosts file to correct webdev / visual studio problems' /></p>
<p>No restart is needed, either of computer or Visual Studio.</p>
<p>(to edit <em>hosts</em> file you can use <em>notepad</em> started with elevated rigths or &#8220;<em>Run as administrator</em>&#8220;; in <em>Open</em> dialog you type in <em>%windir%\System32\drivers\etc\hosts</em>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vesic.org/english/blog/visual-studio-2005/vs-20052008-and-vista-ie-cannot-display-the-webpage/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>VS 2005 SP1 Installation Nightmare :-( &#8230; and how to wake up</title>
		<link>http://www.vesic.org/english/blog/installation/vs-2005-sp1-install-problems-and-solutions/</link>
		<comments>http://www.vesic.org/english/blog/installation/vs-2005-sp1-install-problems-and-solutions/#comments</comments>
		<pubDate>Mon, 25 Dec 2006 23:13:27 +0000</pubDate>
		<dc:creator>Dejan Vesić</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://www.vesic.org/english/blog/installation/vs-2005-sp1-install-problems-and-solutions/</guid>
		<description><![CDATA[As you probably know, long awaited <strong>Visual Studio 2005 SP1</strong> is out.

However, installation of this giant (400+ Mb) update is far from easy, and it is not guaranteed to succeed, at least at first run...]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/vstudio/support/vs2005sp1/"><img src="http://www.vesic.org/blog/upload/visual-studio-2005.jpg" alt="Visual Studio 2005 SP1" width="250" height="55" class="imageRight" /></a>As you probably know, long awaited<a href="http://www.vesic.org/english/blog/visual-studio-2005/visual-studio-2005-sp1/"> Visual Studio 2005 SP1</a> is out.</p>
<p>However, installation of this giant (400+ Mb) update is far from easy, and it is not guaranteed to succeed, at least at first run.</p>
<ol>
<li>You need to have a LOT free space on your system drive: at least 3 Gb</li>
<li>Make sure that you have enough patience &#8211; it can take between 10 minutes and 1,5 hour</li>
<li>If you do not use C++ portion of Visual Studio, deinstall it before installation of SP1 &#8211; it can save a lot of installation time.</li>
<li>Deinstall <a href="http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx">Web Application Project</a> if you have it installed.</li>
<li>Deinstall <a href="http://msdn2.microsoft.com/en-us/asp.net/aa336619.aspx">Visual Studio 2005 Web Deployment Projects</a> if you have it installed.</li>
<li>Deinstall <em>Visual Studio 2005 SP1 beta</em></li>
</ol>
<p>Finally, you can speed up installation process by:</p>
<h3>Disabling Patch Cache</h3>
<p>Create CMD file with following content:<br />
<small><code>reg export HKLM\Software\Policies\Microsoft\Windows\Installer installer.reg<br />
reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /t REG_DWORD /d 0 /f<br />
net stop msiserver<br />
start /wait VS80sp1-KB926601-X86-ENU.exe<br />
reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /f<br />
reg import installer.reg<br />
net stop msiserver<br />
del /q installer.reg 2&gt;nul</code></small></p>
<p>and save it in folder where SP1 is. Run it &#8211; it should cut down installation time significantly.</p>
<p>Ok, you succeeded to do all above, and installation is failing. What next?</p>
<h3>Error 1718</h3>
<p>Let assume that your operating system is XP SP2. If you got during installation this error:</p>
<blockquote><p>Error 1718. File was rejected by digital signature policy</p></blockquote>
<p>try recipe from this location:</p>
<p><a href="http://support.microsoft.com/kb/925336">http://support.microsoft.com/kb/925336</a> &#8211; this helped with installation on two locations where it failed previously.</p>
<p>I have Windows Server 2003 SP1 and unfortunately, neither of solutions (disable patch cache or KB925336) helped <img src='http://www.vesic.org/english/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  </p>
<p>I though that  memory upgrade will help, so I added 1Gb to total of 2Gb &#8211; no luck.</p>
<p>You can also try to:</p>
<h3>Disable SAFER check for local administrators</h3>
<p>- Note (if exist) previous value of <strong>PolicyScope</strong> at:</p>
<p><code>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\safer\codeidentifiers</code></p>
<p>- Set this value (or create it as DWORD if does not exist) to 1</p>
<p>- Run <strong>net stop msiserver</strong></p>
<p>- Try SP1 install</p>
<p>- Revert <strong>PolicyScope</strong> to previous value / delete it after installation.</p>
<p>(this helped on two other Windows 2003 SP1 machines; again, not on mine)</p>
<p>Finally, I decided to:</p>
<h2>Slipstream SP1 into Visual Studio 2005 and reinstall it</h2>
<p>There are couple steps here:</p>
<h3>Make Network Installation</h3>
<p>Create network administrative installation from your VS 2005 DVD (assuming that <em>E:</em> is DVD and location where you want installation <em>\\dvesic\public\VisualStudio2005SP1</em>):</p>
<p><code>msiexec.exe /a E:\vs\vs_setup.msi TARGETDIR=\\dvesic\public\VisualStudio2005SP1 /L*vx install.log</code></p>
<p>I did this all on same machine, using mounted ISO image on a virtual drive and unpacking it at network location on same machine &#8211; it took <em>over 2 hours</em> to create network install</p>
<h3>Unpack the Patch</h3>
<p>Original EXE file is just wrapper around MS Patch file. You can unpack it using some unzip utility (or <a href="http://www.ghisler.com/">Total Commander</a>) or by executing:</p>
<p><code>VS80sp1-KB926601-X86-ENU.exe /extract .</code></p>
<h3>Patch Network Install</h3>
<p>Finally, do the patching of installation:</p>
<p><code>msiexec.exe /a \\dvesic\public\VisualStudio2005SP1\vs_setup.msi /p VS80sp1-KB926601-X86-ENU.msp /L*vx patch.log</code></p>
<h3>Reinstall Visual Studio 2005 SP1</h3>
<p>I hope that at least some of this will help you too.</p>
<p>Reference links:</p>
<p><small><a href="http://weblogs.asp.net/jgalloway/archive/2006/12/19/things-i-wish-i-d-known-before-i-installed-vs-2005-service-pack-1.aspx">http://weblogs.asp.net/jgalloway/&#8230;/things-i-wish-i-d-known-before-i-installed-vs-2005-service-pack-1.aspx</a></small></p>
<p><small><a href="http://blogs.msdn.com/heaths/archive/2006/11/28/save-time-and-space-for-vs-2005-sp1-by-disabling-the-patch-cache.aspx">http://blogs.msdn.com/heaths/&#8230;/save-time-and-space-for-vs-2005-sp1-by-disabling-the-patch-cache.aspx</a></small></p>
<p><small><a href="http://blogs.msdn.com/heaths/archive/2006/12/16/slipstreaming-visual-studio-2005-service-pack-1.aspx">http://blogs.msdn.com/heaths/&#8230;/slipstreaming-visual-studio-2005-service-pack-1.aspx</a></small></p>
<p><small><a href="http://blogs.msdn.com/heaths/archive/2006/09/22/Enabling-Large-Patches-to-Install.aspx">http://blogs.msdn.com/heaths/&#8230;/Enabling-Large-Patches-to-Install.aspx</a></small></p>
<h3>Update 12<sup>th</sup> May 2007</h3>
<p>There is <a href="http://support.microsoft.com/kb/925336/en-us">update availabile</a> which will hopefully sort this problems out on easy way.</p>
<p><a href="http://www.digg.com/programming/Visual_Studio_2005_SP1_Installation_Problems_and_Solutions"><img src="http://digg.com/img/badges/91x17-digg-button.png" width="91" height="17" alt="Digg!" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vesic.org/english/blog/installation/vs-2005-sp1-install-problems-and-solutions/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2005 SP1 is out!</title>
		<link>http://www.vesic.org/english/blog/visual-studio-2005/visual-studio-2005-sp1/</link>
		<comments>http://www.vesic.org/english/blog/visual-studio-2005/visual-studio-2005-sp1/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 10:52:54 +0000</pubDate>
		<dc:creator>Dejan Vesić</dc:creator>
				<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://www.vesic.org/english/blog/visual-studio-2005/visual-studio-2005-sp1/</guid>
		<description><![CDATA[Visual Studio 2005 SP1 is finally released.

Apart from bugfixes and corrections, Service Pack 1 also provides over 70 improvements for common development scenarios including: ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/vstudio/support/vs2005sp1/"><img src="http://www.vesic.org/blog/upload/visual-studio-2005.jpg" alt="Visual Studio 2005 SP1" width="250" height="55" class="imageRight" /></a><br />
Visual Studio 2005 SP1 is finally released.</p>
<p>Apart from bugfixes and corrections, Service Pack 1 also provides over 70 improvements for common development scenarios including:</p>
<ul>
<li>New processor support (e.g., Core Duo) for code generation and profiling</li>
<li>Performance and scale improvements in Team Foundation Server</li>
<li>Team Foundation Server integration with Excel 2007 and Project 2007</li>
<li>Tool support for occasionally connected devices and SQL Server Compact Edition</li>
<li>Additional support for project file based Web applications</li>
<li>Windows Embedded 6.0 platform and tools support</li>
</ul>
<p>However, this <strong>is not</strong> final solutions for developers working on <strong>Vista</strong> operating system <img src='http://www.vesic.org/english/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>More info here: <a href="http://msdn.microsoft.com/vstudio/support/vs2005sp1/">http://msdn.microsoft.com/vstudio/support/vs2005sp1/</a></p>
<p>Download (of hefty 432 MB) is here:<br />
<small><a href="http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC">http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vesic.org/english/blog/visual-studio-2005/visual-studio-2005-sp1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

