<?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: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3531670.aspx</link><pubDate>Wed, 25 Nov 2009 07:12:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3531670</guid><dc:creator>tchimev</dc:creator><author>tchimev</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3531670.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3531670</wfw:commentRss><description>&lt;p&gt;The problem for me was that I had both CodeBehind and Src in my Page directive.&lt;/p&gt;&lt;p&gt;Thank you.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3524377.aspx</link><pubDate>Fri, 20 Nov 2009 16:43:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524377</guid><dc:creator>buehlej1</dc:creator><author>buehlej1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3524377.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3524377</wfw:commentRss><description>&lt;p&gt;Well, I may throw yet another answer to this error.&amp;nbsp; I don&amp;#39;t&amp;nbsp;think this is quite the same as others, but similar.&amp;nbsp; I unfortunately named my Master&amp;nbsp;page the same as an ASPX file that I had in the project.&amp;nbsp; This caused them both to have the same class name.&amp;nbsp; I renamed the master page (and class name within the master page)&amp;nbsp;and all references to it in any other file and that took care of it for me.&amp;nbsp;&amp;nbsp; Thanks for all the suggestions though that led me in the right direction.&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3355218.aspx</link><pubDate>Wed, 19 Aug 2009 01:49:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3355218</guid><dc:creator>domz</dc:creator><author>domz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3355218.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3355218</wfw:commentRss><description>&lt;p&gt;Thank you for documenting this, it was my problem and your tip saved me a lot of time.
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3323117.aspx</link><pubDate>Fri, 31 Jul 2009 09:16:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3323117</guid><dc:creator>Hornwood509</dc:creator><author>Hornwood509</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3323117.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3323117</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I also had this problem. In my case I had an extra reference in the Compilation&amp;gt;assemblies bit of my web.config file. Just removed the reference and it solved the problem.&lt;/p&gt;
&lt;p&gt;The following link is&amp;nbsp;suggested this fix to me&amp;nbsp;&lt;a href="http://dotnetfish.blogspot.com/2007/09/type-xxx-exists-in-both.html"&gt;http://dotnetfish.blogspot.com/2007/09/type-xxx-exists-in-both.html&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3292473.aspx</link><pubDate>Tue, 14 Jul 2009 12:57:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3292473</guid><dc:creator>dwishard</dc:creator><author>dwishard</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3292473.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3292473</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I had the same issue.&amp;nbsp; I had actually somehow got a copy of my Class.cs file in the Properties folder of another project.&amp;nbsp; Not sure how it happened, but most likely a drag and drop mishap, or a cut and paste mishap.&amp;nbsp; Once that was removed, all was well.&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3202216.aspx</link><pubDate>Mon, 01 Jun 2009 14:13:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3202216</guid><dc:creator>katarukoti</dc:creator><author>katarukoti</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3202216.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3202216</wfw:commentRss><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when i want to publish website in vs 2005&lt;/p&gt;
&lt;p&gt;i am getting the below one&amp;#39;s&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Error&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;1&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;e:\SMSPROD\DotnetCode\Registration.aspx(61): error CS0433: The type &amp;#39;DotnetCode_usercontrols_Email&amp;#39; exists in both &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_53uqcplx.dll&amp;#39; and &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_aruiysdi.dll&amp;#39;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;E:\SMSPROD\DotnetCode\Attendence\AttendenceMonthly.aspx&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;1&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Error&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;14&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;The type &amp;#39;DotnetCode_usercontrols_Email&amp;#39; exists in both &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_53uqcplx.dll&amp;#39; and &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_aruiysdi.dll&amp;#39;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;E:\SMSPROD\DotnetCode\Registration.aspx&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;61&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;try to fix these issues&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Koti&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3202201.aspx</link><pubDate>Mon, 01 Jun 2009 14:09:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3202201</guid><dc:creator>katarukoti</dc:creator><author>katarukoti</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3202201.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3202201</wfw:commentRss><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when i want to publish website in vs 2005&lt;/p&gt;
&lt;p&gt;i am getting the below one&amp;#39;s&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Error&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;1&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;e:\SMSPROD\DotnetCode\Registration.aspx(61): error CS0433: The type &amp;#39;DotnetCode_usercontrols_Email&amp;#39; exists in both &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_53uqcplx.dll&amp;#39; and &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_aruiysdi.dll&amp;#39;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;E:\SMSPROD\DotnetCode\Attendence\AttendenceMonthly.aspx&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;1&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Error&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;14&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;The type &amp;#39;DotnetCode_usercontrols_Email&amp;#39; exists in both &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_53uqcplx.dll&amp;#39; and &amp;#39;c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\smsprod\a3b2710a\74e825fa\App_Web_aruiysdi.dll&amp;#39;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;E:\SMSPROD\DotnetCode\Registration.aspx&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;61&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;try to fix these issues&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Koti&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/3077944.aspx</link><pubDate>Fri, 10 Apr 2009 06:49:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3077944</guid><dc:creator>Mike1298</dc:creator><author>Mike1298</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3077944.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3077944</wfw:commentRss><description>&lt;p&gt;Thank you for your help. I changed &amp;quot;CiodeFile&amp;quot; to &amp;quot;CodeBehind&amp;quot; in my &amp;quot;.aspx&amp;quot; file and it took care of my problem.&lt;/p&gt;
&lt;p&gt;Mike1298&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/2914403.aspx</link><pubDate>Wed, 04 Feb 2009 05:47:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2914403</guid><dc:creator>er-v</dc:creator><author>er-v</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2914403.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2914403</wfw:commentRss><description>Thanks so much, tomtyf! The event handler been realy the key for me. I have a user control, that is very simple. It has a dropdown inside, and I provide SelectedIndexChanged event with the folowing way. &lt;pre&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt; &lt;span class="kwd"&gt;public event&lt;/span&gt; EventHandler SelectedIndexChanged;
        &lt;span class="kwd"&gt;protected void&lt;/span&gt; ddlLocation_SelectedIndexChanged(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)
        {
            &lt;span class="kwd"&gt;if&lt;/span&gt; (SelectedIndexChanged != &lt;span class="kwd"&gt;null&lt;/span&gt;)
            {
                SelectedIndexChanged(sender, e);
            }
        }&lt;/pre&gt;&amp;nbsp;
I&amp;#39;ve started getting this &amp;#39;The type &amp;#39;&amp;#39; exists in both &amp;#39;&amp;#39; and &amp;#39;&amp;#39;&amp;#39; error from time to time. 
After I&amp;#39;ve commented this code the problem gone.
This is definitly strange. By the way I&amp;#39;m using .net 3.5 sp1 and I don&amp;#39;t use App_Code folder at all. This error been happening on ASP.NET development server, and after I publish it on IIS 7 and IIS 6.&lt;/pre&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/2682752.aspx</link><pubDate>Tue, 14 Oct 2008 21:18:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2682752</guid><dc:creator>TheMidnightCoder</dc:creator><author>TheMidnightCoder</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2682752.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2682752</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;piyushnaik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;* You have a &amp;quot;CodeFile&amp;quot; page directive in the some page markup instead of &amp;quot;CodeBehind&amp;quot;. (How? I don&amp;#39;t know. Could be because of certain migration issues between 1.1 and 2.0. )&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This was the problem for me.&amp;nbsp;&amp;nbsp;Actually, to be more specific, it was that I had BOTH a &amp;quot;CodeBehind&amp;quot; directive and a &amp;quot;CodeFile&amp;quot; directive in my page.&amp;nbsp; As an added bit of information, I was in the process of &amp;quot;globalizing&amp;quot; this particular application and I had recently used the &amp;quot;Generate Local Resource&amp;quot; tool (off the Tools menu).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Perhaps it was in that process that the mysterious &amp;quot;CodeFile&amp;quot; directive showed up.&amp;nbsp; Anyway, now it&amp;#39;s working and I&amp;#39;m happy.&amp;nbsp; Thank you piyushnaik!&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/2226073.aspx</link><pubDate>Tue, 11 Mar 2008 16:53:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2226073</guid><dc:creator>azote</dc:creator><author>azote</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2226073.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2226073</wfw:commentRss><description>&lt;p&gt;thanks tomtyf......&lt;/p&gt;&lt;p&gt;I moved the delegate and event arg definitions into a seperate file and it solved the problem. &lt;/p&gt;&lt;p&gt;* crazy!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/2171753.aspx</link><pubDate>Wed, 13 Feb 2008 22:18:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2171753</guid><dc:creator>loginprompt</dc:creator><author>loginprompt</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2171753.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2171753</wfw:commentRss><description>&lt;p&gt;I got this from having two referneces to the same dll. I included the dll by file name once (Browse tab), and then again via the project (Projects tab)&amp;nbsp;that produced the dll. Removed one of the references and all was well.&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/2147471.aspx</link><pubDate>Fri, 01 Feb 2008 11:20:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2147471</guid><dc:creator>tomtyf</dc:creator><author>tomtyf</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2147471.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2147471</wfw:commentRss><description>&lt;p&gt;I got this message due to the fact that I had a user control firing an event that was being handled in the parent page.&lt;/p&gt;
&lt;p&gt;I moved the delegate and event arg definitions into a seperate file and it solved the problem.&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/1815504.aspx</link><pubDate>Fri, 20 Jul 2007 21:09:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1815504</guid><dc:creator>piyushnaik</dc:creator><author>piyushnaik</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1815504.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1815504</wfw:commentRss><description>&lt;p&gt;I want to document for the posterity that one could get this error even if you don&amp;#39;t have an App_Code directory but if all of the following is true:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* You are using a Web Applications Project. (Perhaps you migrated from 1.1 like I did.)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;* You are also using a Web Deployment Project.&lt;/p&gt;&lt;p&gt;* You have a &amp;quot;CodeFile&amp;quot; page directive in the some page markup instead of &amp;quot;CodeBehind&amp;quot;. (How? I don&amp;#39;t know. Could be because of certain migration issues between 1.1 and 2.0. )&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In this scenario, when MSBuild compiles the wdproj file, it compiles this page into the &amp;lt;Project&amp;gt;_deploy.dll in addition to the regular &amp;lt;Project&amp;gt;.dll. This results in duplicate class names and hence the runtime error.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: The type '&lt;class&gt;' exists in both '&lt;dll location&gt;' and '&lt;dll location 2&gt;'</title><link>http://forums.asp.net/thread/1252683.aspx</link><pubDate>Mon, 10 Apr 2006 05:59:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1252683</guid><dc:creator>JeremyThake</dc:creator><author>JeremyThake</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1252683.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1252683</wfw:commentRss><description>Thanks for the link, and for your time in helping me to fix this. &lt;br /&gt;&lt;br /&gt;Keep up the amazing work!&lt;br /&gt;&lt;br /&gt;Jeremy&lt;br /&gt;</description></item></channel></rss>