<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" 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/"><channel><title>VS 2005 Web Application Projects</title><link>http://forums.asp.net/1019.aspx</link><description>General discussions of VS 2005 Web Application Projects</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/2713266.aspx</link><pubDate>Wed, 29 Oct 2008 21:05:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2713266</guid><dc:creator>scozz</dc:creator><author>scozz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2713266.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2713266</wfw:commentRss><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This is a great thread and has proved highly useful to me so thankyou contributors particularly brad, I have did some serious scowering of the net before ending up here!&lt;/p&gt;
&lt;p&gt;Although i have one wee problem and I hope someone can help me. I have set up a WAP and WDP for the WAP, with a team build. This all goes fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The ouput path of my WDP points to a network directory i.e., &amp;#39;\\Name\Directory\&amp;#39;. Permissions are all set up and this works fine when i&amp;nbsp;build the WDP through&amp;nbsp;VS.&lt;/p&gt;
&lt;p&gt;When the WDP is built through the team build the output path is&amp;nbsp;altered to &amp;#39;_PublishedWebsites\Website.csproj_deploy&amp;#39; instead of &amp;#39;\\Name\Directory\&amp;#39;. - this is the problem. It outpath changes to build directory on thte build server as oppose to the path set in the project properties.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;One thing that i think may be the problem is I altered the project file as mentioned by brad above with &lt;/p&gt;
&lt;p&gt;&amp;lt;SourceWebPhysicalPath Condition=&amp;quot;&amp;#39;$(OutDir)&amp;#39; != &amp;#39;$(OutputPath)&amp;#39;&amp;quot;&amp;gt;$(OutDir)_PublishedWebsites\WebApplication1&amp;lt;/SourceWebPhysicalPath&amp;gt;&lt;br /&gt;&amp;lt;SourceWebPhysicalPath Condition=&amp;quot;&amp;#39;$(OutDir)&amp;#39; == &amp;#39;$(OutputPath)&amp;#39;&amp;quot;&amp;gt;..\WebApplication1&amp;lt;/SourceWebPhysicalPath&amp;gt;&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/2262585.aspx</link><pubDate>Fri, 28 Mar 2008 17:37:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2262585</guid><dc:creator>Vinny Davi</dc:creator><author>Vinny Davi</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2262585.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2262585</wfw:commentRss><description>&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;Brad, you are the man!!! That worked beautifully. I&amp;#39;d send you your favorite beer , but we should probably keep our locations anonymous. Anyhow, out of curiousity , what resources do you use that brought you to that solution?&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;Thanks again!!&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;-Vinny Davi&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1891801.aspx</link><pubDate>Tue, 04 Sep 2007 14:31:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1891801</guid><dc:creator>Dancoe</dc:creator><author>Dancoe</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1891801.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1891801</wfw:commentRss><description>&lt;p&gt;hello guys have a look at my post on how to get single page assemblies with web applciation project and the web deployment project.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1984652&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1984652&amp;amp;SiteID=1&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1389427.aspx</link><pubDate>Tue, 05 Sep 2006 02:00:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1389427</guid><dc:creator>mikbyrne</dc:creator><author>mikbyrne</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1389427.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1389427</wfw:commentRss><description>&lt;p&gt;This is a great thread and has helped to confirm and clarify my understanding of how web deployments work. I&amp;#39;m currently facing a challenge in a similar vein, and was hoping that I&amp;#39;d be able to get some direction on how to best tweak my web deployment project to get it all working.&lt;/p&gt;
&lt;p&gt;I have a solution that includes a number of separate website projects, with one project at the root and then a couple of other projects configured as separate projects (and corresponding to seprate applications within IIS). The complication arises out of a need to share a common set of user controls across these three website projects. I have been able to get this working on my local machine for development purposes by setting up a virtual directory within each of the website projects (which is not a separate application in IIS) which points to the directory which holds all the user controls&amp;nbsp; (which themselves exist in a separate website project, perhaps this should be a web application?). This solution allows each of the websites to build and run successfully off my local machine.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Anyway, when I try to create a WDP for any of these websites I run into an error at the Target AspNetCompiler stage. It seems that the web deployment project does not follow the virtual directories and throws errors because the .ascx files in the &amp;lt;@Register ... &amp;gt; directives at the top of the page cannot be found. An example of the output from the WDP is:&lt;/p&gt;
&lt;p style="font-family:sans-serif;"&gt;&amp;nbsp;Target AspNetCompiler:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /mick.wvecho.roadhouse.com.au -p &amp;quot;C:\Inetpub\World Vision&amp;quot; -u -f -d &amp;quot;C:\Documents and Settings\mick\My Documents\Visual Studio 2005\Projects\mick.worldvision.roadhouse.com.au\Deployment\WebsiteDeploy\Debug\\&amp;quot; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /mick.wvecho.roadhouse.com.au/appeals/growfood/Donate.aspx(3): error ASPPARSE: The file &amp;#39;/mick.wvecho.roadhouse.com.au/FormSections/FormIntroduction.ascx&amp;#39; does not exist.&lt;/p&gt;
&lt;p&gt;Now, I have found a clunky way to get around this by setting up things within the WDP project file to actually copy all the .ascx and .ascx.cs files from the original directory to the website project at the BeforeBuild target (I&amp;#39;ve found I also need to exclude the directories which contain the other website projects). However, there are stacks of files in this website and the copying process takes a while to complete. I can&amp;#39;t help thinking that there&amp;#39;s a much more elegant solution to this problem, but which I just haven&amp;#39;t found yet.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
Any advice would be greatly appreciated&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1378029.aspx</link><pubDate>Tue, 22 Aug 2006 22:21:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1378029</guid><dc:creator>BradleyB</dc:creator><author>BradleyB</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1378029.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1378029</wfw:commentRss><description>&lt;p&gt;When using WDP you can exclude Website projects from the build but you can not exclude WAP projects.&amp;nbsp; A WAP project is explicitly compiling the code behind files into a separate assembly just like VS03.&amp;nbsp; The WDP is an msbuild project that runs the aspnet_compiler.exe.&amp;nbsp; If your code behind files are in a separate assembly, (such as with WAP) that assembly must be in bin before running the aspnet_compiler.&amp;nbsp; Thus you must build the WAP project to do this.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;Brad.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1377654.aspx</link><pubDate>Tue, 22 Aug 2006 16:01:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1377654</guid><dc:creator>MDang</dc:creator><author>MDang</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1377654.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1377654</wfw:commentRss><description>&lt;div&gt;Hi Bradley,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I found this thread and it's related to the same problem i experienced.&amp;nbsp; I added the&amp;nbsp;&amp;lt;SourceWebPhysicalPath&amp;gt; lines of code mentioned to my&amp;nbsp;wdproj file&amp;nbsp;and made sure my Microsoft.WebApplication.targets file had the propertygroup mentioned.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;My soln contains&amp;nbsp;a Web Application Project and a web deployment project.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I followed the recommended build strategy when using web deployment projects to not build&amp;nbsp;the WAP project and only the web deployment project (via configuration mgr).&lt;/div&gt;
&lt;div&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/web_deployment_projects.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/web_deployment_projects.asp&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I still encounter the same error.&lt;/div&gt;
&lt;div&gt;&lt;font size=2&gt;&lt;strong&gt;ASPNETCOMPILER : error 1003: The directory 'F:\TeamBuilds\Builds\Nirvana\Nirvana\TestWAP Build\Binaries\Dev Release\_PublishedWebsites\TestWebApp' doesn't exist.&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&lt;font size=3&gt;My WAP Project is named "TestWebApp"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;My WDproj is named "TestWebApp_Deploy"&lt;/p&gt;
&lt;p&gt;My Sln is named "TestWap"&lt;/p&gt;
&lt;p&gt;I am using Team Build to build.&lt;/p&gt;
&lt;p&gt;When including both projects in the Team Build it works fine. &lt;/p&gt;
&lt;p&gt;&lt;font size=3&gt;Do you have any ideas on what might cause this to still occur?&amp;nbsp; Do I still need to include a WAP project?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;THanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1295690.aspx</link><pubDate>Thu, 25 May 2006 05:52:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1295690</guid><dc:creator>maharik</dc:creator><author>maharik</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1295690.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1295690</wfw:commentRss><description>&lt;p&gt;Thanks Bradley; it seems I had an older version of WAP or the targets were&amp;nbsp;just not&amp;nbsp;installed. WAP now compiles properly&lt;/p&gt;
&lt;p&gt;I am still getting a few errors regarding loading server controls that are available in separate assemblies though;&amp;nbsp;I have these registered in the web.config:&lt;/p&gt;&lt;font color=#0000ff size=2&gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;pages&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;theme&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;StandardTheme&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;controls&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;tagPrefix&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;data&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;namespace&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Security.WebUtilities.Data&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;assembly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Security.WebUtilities&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;tagPrefix&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;ui&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;namespace&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Security.WebUtilities.UI&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;assembly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Security.WebUtilities&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;tagPrefix&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;font color=#0000ff&gt;corp&lt;/font&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;grid&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;assembly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Common.WebControls&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;namespace&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Common.WebControls.MultiCheckGridView&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;/&amp;gt;
&lt;p&gt;&amp;lt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;add&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;tagPrefix&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;corp&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;assembly&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Common.WebControls&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;namespace&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;Corp.Common.WebControls&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; /&amp;gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&lt;/font&gt;&lt;/p&gt;&amp;lt;/&lt;font color=#800000 size=2&gt;controls&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/&lt;/p&gt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;pages&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;
&lt;p&gt;&lt;font color=#000000&gt;And the errors I get are all related to these controls:&lt;/font&gt;&lt;/p&gt;&lt;font color=#0000ff size=2&gt;&lt;font size=2&gt;
&lt;p&gt;/Oakleaf.Security.Web.csproj/OakleafSecurityMasterPage.master(51): error ASPPARSE: Unknown server tag 'oakleaf:OakleafNotificationLabel'.&lt;/p&gt;
&lt;p&gt;/Oakleaf.Security.Web.csproj/Applications/AddUsersToApplication.aspx(28): error ASPPARSE: Unknown server tag 'oakleafgrid:MultiCheckGridView'.&lt;/p&gt;
&lt;p&gt;/Oakleaf.Security.Web.csproj/Applications/AddUsersToApplication.aspx(53): error ASPPARSE: Unknown server tag 'data:EntityDataSource'.&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=3&gt;Is there a reason why this would happen? do you recommend a better way of referencing these server controls?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=3&gt;Thanks&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&amp;nbsp;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1295030.aspx</link><pubDate>Wed, 24 May 2006 16:42:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1295030</guid><dc:creator>BradleyB</dc:creator><author>BradleyB</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1295030.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1295030</wfw:commentRss><description>&lt;p&gt;Take a look at Microsoft.WebApplication.targets.&lt;/p&gt;
&lt;p&gt;You should the following PropertyGroup.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;PropertyGroup&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;WebProjectOutputDir Condition="'$(OutDir)' != '$(OutputPath)'"&amp;gt;$(OutDir)_PublishedWebsites\$(MSBuildProjectName)&amp;lt;/WebProjectOutputDir&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;WebProjectOutputDir Condition="'$(OutDir)' == '$(OutputPath)'"&amp;gt;$(MSBuildProjectDirectory)&amp;lt;/WebProjectOutputDir&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/PropertyGroup&amp;gt;&lt;/p&gt;
&lt;p&gt;If you don't have this then you somehow have an old targets file.&amp;nbsp; Be sure to check both your dev machine .targets file and the Team Build server .targets file.&amp;nbsp; It's possible that the .targets file on your Team Build machine could be from one of the Betas.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1294564.aspx</link><pubDate>Wed, 24 May 2006 03:24:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1294564</guid><dc:creator>maharik</dc:creator><author>maharik</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1294564.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1294564</wfw:commentRss><description>&lt;p&gt;Bradley, &lt;/p&gt;
&lt;p&gt;Thank you for your response; this seems to be a much better solution than the hack I had figured out; which is to add the following to the WAP's after build target:&lt;/p&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;&amp;lt;&lt;/font&gt;&lt;font color=#800000 size=2&gt;Target&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Name&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;AfterBuild&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;&lt;font color=#800000 size=2&gt;Exec&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Command&lt;/font&gt;&lt;font color=#0000ff size=2&gt;=&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt;xcopy /y &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;&amp;amp;quot;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;$(TargetDir)*.dll&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;&amp;amp;quot;&lt;/font&gt;&lt;font color=#0000ff size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;&amp;amp;quot;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;$(ProjectDir)bin\&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;&amp;amp;quot;&lt;/font&gt;&lt;font size=2&gt;"&lt;/font&gt;&lt;font color=#0000ff size=2&gt; /&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/&lt;font color=#800000 size=2&gt;Target&lt;/font&gt;&lt;font color=#0000ff size=2&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;The problem&amp;nbsp;with&amp;nbsp;my approach is that it relies on changing the WAP's csproj which I don't like doing as it is the project other developers work with.&lt;/p&gt;
&lt;p&gt;I like your approach since I can only change the WDP which&amp;nbsp;is in an isolated build solution. &lt;/p&gt;
&lt;p&gt;I still have a problem though, whenever I replace the line of code you indicated, the build fails complaining about: _PublishedWebsites\Corp.Security.Web not existing. &lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;ASPNETCOMPILER : error 1003: The directory 'c:\TFSBuilds\Corp.Security\Corp.Security.WeeklyDevTestBuild\Binaries\Release\_PublishedWebsites\Corp.Security.Web' doesn't exist.&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;So I tried to compile the WAP project by itself (without building the WDP) and it seems the WAP doesn't copy all its files to&amp;nbsp;\_PublishedWebsites\ with a successful install. Is that supposed to be its normal behavior? can you think of any reason why it is not copying the contents to the _PublishedWebsites folder although the build is successful? I can see the .dlls build by WAP in the&amp;nbsp;Binaries\Release folder.&amp;nbsp;Please let me know if this question has to go to the WAP forum.&lt;/p&gt;
&lt;p&gt;Once again, thank you for your help.&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1294486.aspx</link><pubDate>Wed, 24 May 2006 01:23:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1294486</guid><dc:creator>BradleyB</dc:creator><author>BradleyB</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1294486.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1294486</wfw:commentRss><description>&lt;p&gt;WAP and WDP don't quite work together in a Team Build environment.&amp;nbsp;&amp;nbsp; This is because the OutDir is redirected during&amp;nbsp;a Team Build run.&amp;nbsp; Consequently the WAP .dll is not in the projects ~/bin folder and WDP which is just using the aspnet_compiler.exe can't find the expected .dlls in the ~/bin.&lt;/p&gt;
&lt;p&gt;I did a quick test and you can fix this by modifying your WDP project file.&amp;nbsp; Let's say you have a WDP project building a WAP project named WebApplication1.&amp;nbsp; In the WDP project file you will find a property defined as follows:&lt;/p&gt;
&lt;p&gt;&amp;lt;SourceWebPhysicalPath&amp;gt;..\WebApplication1&amp;lt;/SourceWebPhysicalPath&amp;gt;&lt;/p&gt;
&lt;p&gt;This is the path that will be passed to the aspnet_compiler.&amp;nbsp; When OutDir is redefined then this path won't work.&amp;nbsp; Instead you'll need to build agains the WAP output path.&amp;nbsp; That property is not available to WDP&amp;nbsp;&amp;nbsp;but you can compute it.&lt;/p&gt;
&lt;p&gt;Replace the line above with this new defination for &amp;lt;SourceWebPhysicalPath&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;SourceWebPhysicalPath Condition="'$(OutDir)' != '$(OutputPath)'"&amp;gt;$(OutDir)_PublishedWebsites\WebApplication1&amp;lt;/SourceWebPhysicalPath&amp;gt;&lt;br /&gt;&amp;lt;SourceWebPhysicalPath Condition="'$(OutDir)' == '$(OutputPath)'"&amp;gt;..\WebApplication1&amp;lt;/SourceWebPhysicalPath&amp;gt;&lt;/p&gt;
&lt;p&gt;What this is doing is saying if the OutDir no longer matches the OutputPath, ie. it was redefined then set the SourceWebPhysicalPath to be where the WAP proejct is going to copy its files.&lt;/p&gt;
&lt;p&gt;If OutDir was not renamed then the above code will set it to the origional value.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;Brad.&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1293450.aspx</link><pubDate>Tue, 23 May 2006 05:37:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1293450</guid><dc:creator>maharik</dc:creator><author>maharik</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1293450.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1293450</wfw:commentRss><description>&lt;p&gt;Bradley, &lt;/p&gt;
&lt;p&gt;How does the build process get affected when using&amp;nbsp;a Web Deployment Project with the Web Application Project&amp;nbsp;in a team build environment? &lt;/p&gt;
&lt;p&gt;I am choosing the option of merging all the dlls into one in the web deployment project (which I believe is supported for the WAP?) but I am having a weird error related to type loading when trying to run a standard team build for the WDP project. In visual studio, the solution builds fine and the WDP does seem to play well with the WAP. Based on the errors, it seems that the WDP AspNetCompiler target is having problems loading user controls used on my pages. User controls are defined in a separate folder and namespace in the WAP. &lt;/p&gt;
&lt;p&gt;Here is a sample ascx heading of one of my controls:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Control&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Language&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="C#"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;AutoEventWireup&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="true"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Inherits&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="Corp.Security.Web.Controls.ApplicationsCombo"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Codebehind&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="ApplicationsCombo.ascx.cs"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;/font&gt;
&lt;p&gt;And a sample registration from one of the pages that use the control:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;lt;%&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;@&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#800000 size=2&gt;Register&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;TagName&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="ApplicationsCombo"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;TagPrefix&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="local"&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#ff0000 size=2&gt;Src&lt;/font&gt;&lt;font color=#0000ff size=2&gt;="~/Controls/ApplicationsCombo.ascx"&lt;/font&gt;&lt;font size=2&gt; %&amp;gt;&lt;/font&gt;
&lt;p&gt;The errors from the team build are below. I would really appreciate any help on this. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The errors I get when doing a team build are:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Target AspNetCompiler:&lt;br /&gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /Corp.Security.Web.csproj -p c:\TFSBuilds\Corp.SecIt\Corp.Security.WeeklyDevTestBuild\Sources\Applications\Corp.Security\Corp.Security.Web -u -f c:\TFSBuilds\Corp.SecIt\Corp.Security.WeeklyDevTestBuild\Binaries\Release\_PublishedWebsites\Corp.Security.Web.Deploy\ &lt;br /&gt;/Corp.Security.Web.csproj/SecurityLogin.aspx(1): error ASPPARSE: Could not load type 'SecurityLogin'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/CompaniesCombo.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.CompaniesCombo'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/ApplicationsCombo.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.ApplicationsCombo'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/WebsiteVersion.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/SecurityLogin.aspx(46): error ASPPARSE: Unknown server tag 'local:WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(1): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/WebsiteVersion.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(30): error ASPPARSE: Unknown server tag 'local:WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/EditApplication.aspx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Applications.EditApplication'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/EditApplication.aspx(3): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(1): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/WebsiteVersion.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(30): error ASPPARSE: Unknown server tag 'local:WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/CreateApplication.aspx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Applications.CreateApplication'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/CreateApplication.aspx(3): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(1): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/WebsiteVersion.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(30): error ASPPARSE: Unknown server tag 'local:WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/AddUsersToApplication.aspx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Applications.AddUsersToApplication'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/AddUsersToApplication.aspx(5): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(1): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/WebsiteVersion.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/CorpSecurityMasterPage.master(30): error ASPPARSE: Unknown server tag 'local:WebsiteVersion'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/Applications.aspx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Applications.Applications'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/Applications.aspx(2): error ASPPARSE: Could not load type 'CorpSecurityMasterPage'.&lt;br /&gt;/Corp.Security.Web.csproj/Controls/ApplicationsCombo.ascx(1): error ASPPARSE: Could not load type 'Corp.Security.Web.Controls.ApplicationsCombo'.&lt;br /&gt;/Corp.Security.Web.csproj/Applications/Applications.aspx(18): error ASPPARSE: Unknown server tag 'local:ApplicationsCombo'.&lt;br /&gt;Done building target "AspNetCompiler" in project "Corp.Security.Web.Deploy.wdproj" -- FAILED.&lt;/p&gt;
&lt;p&gt;Done building project "Corp.Security.Web.Deploy.wdproj" -- FAILED.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1293290.aspx</link><pubDate>Mon, 22 May 2006 23:57:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1293290</guid><dc:creator>BradleyB</dc:creator><author>BradleyB</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1293290.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1293290</wfw:commentRss><description>&lt;p&gt;Web Application Projects always compile the entire project into a single assembly.&amp;nbsp; The only way to truly get an assembly per page (complete with it's code behind file) is to use a Web Site project and a Web Deployment project.&lt;/p&gt;
&lt;p&gt;I suspose that if you use inline code for all your pages and not code behind the yes you could generate a seperate assembly for every page in a WAP project but that kind of defeats the purpose.&lt;/p&gt;
&lt;p&gt;As far as multiple languages, That's a cool feature of Web Sites and dynamic compilation.&amp;nbsp; I know that some developers are factoring their sites up into several WAP projects all building into the same bin.&amp;nbsp; Each project is a seperate assembly.&amp;nbsp; While not an assembly per page is does give you the ablity to factor you site into seperate serviceable units.&amp;nbsp; The other nice thing is that each project could be in a different language from the others.&amp;nbsp; While not mixing languages within a project you are using multiple projects within a Site.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;br /&gt;Brad.&lt;/p&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1292250.aspx</link><pubDate>Mon, 22 May 2006 05:52:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1292250</guid><dc:creator>jcnovoa</dc:creator><author>jcnovoa</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1292250.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1292250</wfw:commentRss><description>Same here... as a side-effect of using a single assembly in the build, you can't use multiple languages (i.e. C# &amp;amp; VB.Net) to put pages together in a WebApplicaiton as you could in a WebSite application. Can we have the cake and eat it too by using the old format yet enable single page assembly generation?</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1292144.aspx</link><pubDate>Mon, 22 May 2006 01:55:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1292144</guid><dc:creator>ZeroCoolJr</dc:creator><author>ZeroCoolJr</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1292144.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1292144</wfw:commentRss><description>Brad, thanks for the explanation on the difference between these two projects. But I still don't get exactly if it is possible to generate separate assemblies per page on a Web Application Project. As far as your statement is concern, it's possible, but how I may going about it? I was hoping there is that same option as with the Web Deployment Project on a WebSite Project...&lt;br /&gt;&lt;br /&gt;By the way, I was hoping that instead sending the whole website for an update, I only need to send the pages/dlls that are only updated cutting unnecessary downloading/uploading files. Or do you have any suggestion implementing this `plug n play` sort of deployment? Or is this possible with ASP.NET without a downtime or a server restart?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Win&lt;br /&gt;</description></item><item><title>Re: With Web Deployment Project</title><link>http://forums.asp.net/thread/1290839.aspx</link><pubDate>Fri, 19 May 2006 15:07:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1290839</guid><dc:creator>BradleyB</dc:creator><author>BradleyB</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1290839.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1290839</wfw:commentRss><description>&lt;p&gt;Excellent question.&amp;nbsp; Web Deployment Projects leverage two utilities aspnet_compiler.exe and aspnet_merge.exe.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p&gt;aspnet_compiler.exe ships with the 2.0 Fx and pre-compiles an entire web site using the same compilation system as ASP.NET.&amp;nbsp; Instead of just caching the pre-compiled bits into the ASP.NET temporary files folder it puts the files into re-deployable folder.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p&gt;aspnet_merge.exe is a utility that ships with Web Deployment Projects.&amp;nbsp; Because the aspnet_compiler.exe produces numerous assemblies, this utility offers various options to merge the aspnet_compiler generated assemblies into a smaller set of assemblies or even a single assembly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p&gt;So how does this relate to Web Application Projects? &lt;/p&gt;
&lt;p&gt;Web Application Projects allows you to pre-compile the code behind and other classes with Visual Studio 2005 into a single assembly and supply this assembly as an input in the ASP.NET compilation process by putting it in the ~/bin folder.&lt;/p&gt;
&lt;p&gt;When using WAP there are two stages to the compilation process.&lt;span&gt;&amp;nbsp; &lt;/span&gt;(This is the same as VS03).&lt;span&gt;&amp;nbsp; &lt;/span&gt;The first stage is to use VS to compile all the code behind and other classes into a single assembly and deploy it to the ~/bin folder. &lt;span&gt;&amp;nbsp;&lt;/span&gt;All the code in the .aspx, .ascx, .master, etc.. is always generated and compiled by ASP.NET, either dynamically during an http request or when using the aspnet_compiler.exe.&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When ASP.NET is generating the code for each page, it’s looking at the “&amp;lt;%@ Page” directive and either seeing CodeFile="file" or CodeBehind="file". &lt;span&gt;&amp;nbsp;&lt;/span&gt;This is a key distinction.&lt;span&gt;&amp;nbsp; &lt;/span&gt;If it’s a CodeFile attribute ASP.NET knows it’s responsible for the compilation of the code behind code. &lt;span&gt;&amp;nbsp;&lt;/span&gt;This is what is used for Web Site projects included in VS05. &lt;span&gt;&amp;nbsp;&lt;/span&gt;If it’s a CodeBehind attribute ASP.NET knows the code behind has already been compiled and all it has to do is derive the page class from an already compiled code behind assembly.&lt;span&gt;&amp;nbsp; &lt;/span&gt;This is what is used in Web Application Projects and VS03.&lt;/p&gt;
&lt;p&gt;Finally, I’m going to attempt to answer your question about Web Deployment Projects and assemblies per page.&lt;span&gt;&amp;nbsp; &lt;/span&gt;The ability to produce an assembly per page is a feature of the ASP.NET compilation system.&lt;span&gt;&amp;nbsp; &lt;/span&gt;When it is compiling pages it has the ability to batch pages together when generating an assembly or to generate an assembly per page.&lt;span&gt;&amp;nbsp; &lt;/span&gt;That is provided ASP.NET is doing the compilation.&lt;span&gt;&amp;nbsp; &lt;/span&gt;In the case of Web Application Projects the code behind for the pages have already been compiled into a single assembly. &lt;span&gt;&amp;nbsp;&lt;/span&gt;All ASP.NET has left to do is to generate the code for each page/control and generate the assemblies for those. &lt;span&gt;&amp;nbsp;&lt;/span&gt;If you’ve decided to make the deployable site updateable then the aspnet_compiler won’t even do that so the pages/controls can be edited and dynamically recompiled on the site. &lt;span&gt;&amp;nbsp;&lt;/span&gt;If it’s not updateable you can still get an assembly per page containing just the page class generated by ASP.NET and not the code behind since it’s already been compiled by VS.&lt;/p&gt;
&lt;p&gt;I apologize for such as long winded reply but understanding what is being compiled when really helps understand the deployment options.&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;br /&gt;Brad.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>