<?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 Web Deployment Projects</title><link>http://forums.asp.net/1020.aspx</link><description>General discussions of VS Web Deployment Projects</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Duplicate class from Web deployment project output</title><link>http://forums.asp.net/thread/3234731.aspx</link><pubDate>Mon, 15 Jun 2009 17:09:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3234731</guid><dc:creator>richhollis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3234731.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3234731</wfw:commentRss><description>&lt;p&gt;Hey Hongping&lt;/p&gt;&lt;p&gt;Good call - for some reason this page had both a CodeFile and CodeBehind attribute.&amp;nbsp; Once I removed the CodeFile attribute and recompiled the problem is resolved.&lt;/p&gt;&lt;p&gt;Thanks so much for posting the solution. Very much appreciated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Duplicate class from Web deployment project output</title><link>http://forums.asp.net/thread/3231010.aspx</link><pubDate>Sat, 13 Jun 2009 20:33:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3231010</guid><dc:creator>hongping</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3231010.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3231010</wfw:commentRss><description>&lt;p&gt;Perhaps there were some things that did not get converted correctly when you changed a web site to a web application project (WAP). Does your page use the CodeFile or CodeBehind attribute?&amp;nbsp;Does the Inherit attribute match what you have in the .aspx.cs file?&lt;/p&gt;
&lt;p&gt;You could try creating a new default WAP, then add a Web Deployment Project (WDP), and then build the WDP. This should work. Then try examining what is different between this WAP+WDP that works fine and your WAP.&lt;/p&gt;</description></item><item><title>Re: Duplicate class from Web deployment project output</title><link>http://forums.asp.net/thread/3230895.aspx</link><pubDate>Sat, 13 Jun 2009 18:53:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3230895</guid><dc:creator>richhollis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3230895.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3230895</wfw:commentRss><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;The problem I have is that the web
deployment project is creating its own Dll but duplicating a class
inside it when that class already exists from the compilation of the
web application project.&lt;/p&gt;
&lt;p&gt;Nothing leads me to believe that I
cannot use a web deployment project with VS2008 and a web application
project, as this excert from ScottGus blog suggests: Web Deployment projects can be used with
either the &amp;quot;ASP.NET Web Site&amp;quot; or &amp;quot;ASP.NET Web Application Project&amp;quot;
options built-into VS 2008, and provide a few additional build,
packaging and deployment options for you to use.&amp;nbsp; You can read an &lt;a href="http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx" target="_blank"&gt;old tutorial post of mine here&lt;/a&gt; to learn more about they work.&lt;/p&gt;&lt;p&gt;Does anyone have any idea why I&amp;#39;m getting this class duplication in the web deployment dll? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Duplicate class from Web deployment project output</title><link>http://forums.asp.net/thread/3229152.aspx</link><pubDate>Fri, 12 Jun 2009 17:39:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3229152</guid><dc:creator>chintanpshah</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3229152.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3229152</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;richhollis:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;web application dll and also the web deployment assembly dll &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What do you mean by this?&lt;/p&gt;&lt;p&gt;Use &lt;a href="http://msdn.microsoft.com/en-us/asp.net/aa336619.aspx" target="_blank"&gt;Web Deployment Project &lt;/a&gt;for VS 2005 and &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&amp;amp;displaylang=en" target="_blank"&gt;Web Deployment Project 2008&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;This will generated single DLL for whole application. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Duplicate class from Web deployment project output</title><link>http://forums.asp.net/thread/3228981.aspx</link><pubDate>Fri, 12 Jun 2009 16:23:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3228981</guid><dc:creator>richhollis</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3228981.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1020&amp;PostID=3228981</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve got a weird problem with my Web deployment project - I have one class name (from web form code behind class)&amp;nbsp;that appears in both the original web application dll and also the web deployment assembly dll that gets generated.&lt;/p&gt;
&lt;p&gt;The web application compiles first and generates its main dll file and then the web deployment project runs and this also generates a dll file.&amp;nbsp; Everything in the release build of the site works fine apart from one page - it complains of &amp;quot;The type &amp;#39;MyNameSpace.classname&amp;#39; exists in both...&amp;quot;&amp;nbsp; This is the page where the duplicate class name problem exists.&amp;nbsp; For some strange reason I have the same class name in the main web application dll and also the dll file that gets created by the Web deployment project - I have verified this by using Reflector.&amp;nbsp; I can see the class reference&amp;nbsp;in both.&amp;nbsp; There is only this class reference in the web deployment project and a reference to global_asax - apart from that it seems like nothing else in the file.&lt;/p&gt;
&lt;p&gt;I have &amp;quot;Merge all outputs into a single assembly&amp;quot; and &amp;quot;Treat as library component&amp;quot; checked.&lt;/p&gt;
&lt;p&gt;The web deployment project DLL seems almost redundant, but removing it breaks the site.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Any idea what is causing this problem?&amp;nbsp; Nothing during the build reports failure and its just this one page strangely - I can&amp;#39;t find any reason or anything special about this class that would cause this.&amp;nbsp; This is just a regular web form page with code behind class, in the default project namespace. I searched the whole project for the class name and it only comes back with the one place on the website where it resides, no duplicates from what I can see in the project.&lt;/p&gt;
&lt;p&gt;Are web deployment projects compatible with web application projects? I upgraded my old website project type to web application, so not sure if web deployment project still valid?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item></channel></rss>