<?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>Stephen Lacy &#187; IIS</title>
	<atom:link href="http://www.lacy.ie/tag/iis/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lacy.ie</link>
	<description>Impressions as an ASP.Net Developer</description>
	<lastBuildDate>Mon, 05 Jul 2010 09:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Web Deployment Project IIS Deploy error on Team Foundation Server</title>
		<link>http://www.lacy.ie/web-deployment-project-iis-deploy-error-on-team-foundation-server</link>
		<comments>http://www.lacy.ie/web-deployment-project-iis-deploy-error-on-team-foundation-server#comments</comments>
		<pubDate>Mon, 30 Mar 2009 10:49:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Web Deployment Projects]]></category>

		<guid isPermaLink="false">http://lacy.ie/?p=129</guid>
		<description><![CDATA[I got the following on build until recently. Initializing IIS Web Server... Successfully created virtual directory 'ycmbuild'. Granting IIS read access to the folder 'C:\Projects\YourClubMatters\Trunk\YCM\WebSite_deploy\Release'. C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(676,5): error : Some or all identity references could not be translated. Warning: Unable to grant IIS access to folder 'C:\Projects\YourClubMatters\Trunk\YCM\WebSite_deploy\Release'. Done building project "WebSite_deploy.wdproj". ========== Rebuild All: 7 [...]


Related posts:<ol><li><a href='http://www.lacy.ie/redirecting-using-strong-types-in-an-asp-net-web-application-project' rel='bookmark' title='Permanent Link: Redirecting using strong types in an asp.net web application project'>Redirecting using strong types in an asp.net web application project</a> <small>Update, I recommend also reading the following post after you...</small></li>
<li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I got the following on build until recently.</p>
<p><code>Initializing IIS Web Server...<br />
Successfully created virtual directory 'ycmbuild'.<br />
<strong>Granting IIS read access to the folder 'C:\Projects\YourClubMatters\Trunk\YCM\WebSite_deploy\Release'.<br />
C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(676,5): error : Some or all identity references could not be translated.<br />
Warning: Unable to grant IIS access to folder 'C:\Projects\YourClubMatters\Trunk\YCM\WebSite_deploy\Release'.</strong><br />
Done building project "WebSite_deploy.wdproj".<br />
========== Rebuild All: 7 succeeded, 0 failed, 0 skipped ==========<span id="more-129"></span></code></p>
<p>The solution for me was to stop the web deployment project from creating the iis virtual directory, make a virtual directory pointing at say &#8220;c:\inetpub\vdir&#8221;, give the application pool it belongs to the same rights as the tfservice, edit team build project file adding a task that shuts down the parent website of the virtual directory, deletes all subdirectories and files in &#8220;c:\inetpub\vdir&#8221;, copies the published website that the deployment project creates to &#8220;c:\inetpub\vdir&#8221; and starts the parent website of the virtual directory.</p>
<p>I&#8217;m sure there are other solutions, I found that to be the simplest. Also, I used SDC Tasks to do all of this, very simple stuff.</p>
<p>What you add the the .proj file looks like this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;Target</span> <span class="re0">Name</span>=<span class="st0">&quot;AfterCompile&quot;</span><span class="re2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;Web</span>.WebSite.Stop <span class="re0">Description</span>=<span class="st0">&quot;Default Website&quot;</span> <span class="re2">/&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;Folder</span>.CleanFolder <span class="re0">Path</span>=<span class="st0">&quot;c:\inetpub\vdir&quot;</span> <span class="re0">force</span>=<span class="st0">&quot;true&quot;</span><span class="re2">/&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;Folder</span>.CopyFolder <span class="re0">Source</span>=<span class="st0">&quot;$(SolutionRoot)\..\Binaries\Release\_PublishedWebsites\WebSite_Deploy&quot;</span> <span class="re0">Destination</span>=<span class="st0">&quot;c:\inetpub\vdir&quot;</span> <span class="re2">/&gt;</span></span></div>
</li>
<li class="li2">
<div class="de2"><span class="sc3"><span class="re1">&lt;Web</span>.WebSite.Start <span class="re0">Description</span>=<span class="st0">&quot;Default Website&quot;</span> <span class="re2">/&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc3"><span class="re1">&lt;/Target<span class="re2">&gt;</span></span></span></div>
</li>
</ol>
</div>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.lacy.ie%2Fweb-deployment-project-iis-deploy-error-on-team-foundation-server&amp;linkname=Web%20Deployment%20Project%20IIS%20Deploy%20error%20on%20Team%20Foundation%20Server"><img src="http://www.lacy.ie/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lacy.ie/redirecting-using-strong-types-in-an-asp-net-web-application-project' rel='bookmark' title='Permanent Link: Redirecting using strong types in an asp.net web application project'>Redirecting using strong types in an asp.net web application project</a> <small>Update, I recommend also reading the following post after you...</small></li>
<li><a href='http://www.lacy.ie/handling-relative-paths-and-debug-mode-with-jquery-in-asp-net-web-forms' rel='bookmark' title='Permanent Link: Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms'>Handling Relative Paths and debug mode with Jquery in ASP.Net Web Forms</a> <small>I had a problem where I wanted to use the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lacy.ie/web-deployment-project-iis-deploy-error-on-team-foundation-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->