<?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: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/3235380.aspx</link><pubDate>Mon, 15 Jun 2009 23:13:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3235380</guid><dc:creator>Sounge</dc:creator><author>Sounge</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3235380.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3235380</wfw:commentRss><description>&lt;p&gt;I am bumping this up because I am still having difficulty.&amp;nbsp; I created a new ASP.NET Web Application, with just one file (default.aspx).&amp;nbsp; I saved it, compiled it, and used the &amp;quot;Publish&amp;quot; option.&amp;nbsp; I chose the default option, &amp;quot;Copy Only files needed to run this application&amp;quot;, and saved it to a folder.&amp;nbsp; However, when I look at the default.aspx file, it is trying to access the default.aspx.cs codebehind file, but it doesn&amp;#39;t exist since it wasn&amp;#39;t published.&lt;/p&gt;&lt;p&gt;If I publish using the &amp;quot;Copy All Project Files&amp;quot;&amp;nbsp; option, it does copy ALL the project files, including the codebehind.&amp;nbsp; However, I was under the assumption that the whole point of ASP.NET when you compile is that you don&amp;#39;t have access to the source code when you publish it?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;What is the proper way to deploy/publish &amp;quot;ASP.NET Web Application&amp;quot; types in VS2008? I am really confused.&lt;/p&gt;&lt;p&gt;Many thanks for any help.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2939530.aspx</link><pubDate>Fri, 13 Feb 2009 12:50:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2939530</guid><dc:creator>Jeremy Lunn</dc:creator><author>Jeremy Lunn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2939530.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2939530</wfw:commentRss><description>&lt;p&gt;Change &lt;em&gt;&lt;strong&gt;CodeFile&amp;nbsp;&lt;/strong&gt;to&lt;strong&gt; Codebehind&lt;/strong&gt;&lt;/em&gt; on your form then the deployment will work.&lt;/p&gt;
&lt;p&gt;This works for all types of web projects.&lt;/p&gt;
&lt;p&gt;Cheerio Jeremy&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2857118.aspx</link><pubDate>Fri, 09 Jan 2009 15:55:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2857118</guid><dc:creator>Sounge</dc:creator><author>Sounge</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2857118.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2857118</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;*bump*&lt;/p&gt;&lt;p&gt;&amp;nbsp;any help would be greatly appreciated. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2731958.aspx</link><pubDate>Fri, 07 Nov 2008 18:07:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2731958</guid><dc:creator>oblongbottleneck</dc:creator><author>oblongbottleneck</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2731958.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2731958</wfw:commentRss><description>&lt;p&gt;I am having the same problem in VS2008. I have been pounding my head against the keyboard for some time now trying to get this to work. I tried publishing using the option &amp;quot;All Project files&amp;quot; and that works fine. But since everything I&amp;#39;ve read insists that this is a one-click solution, I manually deleted all the file from the destination directory and published the project again with the &amp;quot;Only files needed to run this application&amp;quot; and out of nowhere it started working. I can&amp;#39;t explain why though. Any other insight into the matter would be appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;For what it&amp;#39;s worth, the web application .aspx file still shows &amp;quot;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; Codebehind=&amp;quot;MyPageName.aspx.cs&amp;quot; Inherits=&amp;quot;MyNamespace.MyPageName&amp;quot; %&amp;gt;&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2726614.aspx</link><pubDate>Wed, 05 Nov 2008 17:11:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2726614</guid><dc:creator>Sounge</dc:creator><author>Sounge</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2726614.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2726614</wfw:commentRss><description>&lt;p&gt;I am still having difficulty with an ASP.NET Web Application.&amp;nbsp; I created a new project, and it created a Default.aspx page (as well as the .cs codebehind page).&amp;nbsp; I just created a sample label and in the CodeBehind I assigned a string to the label Text property.&amp;nbsp; I built the page and ran it from Visual Studio, and it works.&lt;/p&gt;&lt;p&gt;I then tried using the &amp;#39;Publish&amp;#39; command and I published it to a folder on my computer.&amp;nbsp; That folder now has a default.aspx file, but no more .aspx.cs file as it compiled it in a .DLL file in the Bin folder.&amp;nbsp; However, when I open up that Default.aspx file that was &amp;#39;published&amp;#39;, in the Page directive it is still trying to reference &amp;quot;CodeBehind=Default.aspx.cs&amp;quot;.&amp;nbsp; However, obviously since it is now compiled that file is not there, instead there is a DLL file in the \Bin folder.&lt;/p&gt;&lt;p&gt;&amp;nbsp;a) How do I fix this so that it properly references that DLL file that was compiled and published?&lt;/p&gt;&lt;p&gt;b) How do I set it up so that every time I compile/publish the project it doesn&amp;#39;t show the CodeBehind=Default.aspx.cs anymore in the Page directive since obviously it doesn&amp;#39;t exist?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2724650.aspx</link><pubDate>Wed, 05 Nov 2008 02:05:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2724650</guid><dc:creator>Thomas Sun – MSFT</dc:creator><author>Thomas Sun – MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2724650.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2724650</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;They are both working. You can choose the one you prefer to work with.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2724286.aspx</link><pubDate>Tue, 04 Nov 2008 20:57:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2724286</guid><dc:creator>Sounge</dc:creator><author>Sounge</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2724286.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2724286</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for the reply.&amp;nbsp; So, if I am starting a new project in Visual Studio 2008, I shouldn&amp;#39;t choose &amp;quot;Web Application Project&amp;quot; but instead should choose &amp;quot;ASP.NET Web Site&amp;quot; every time?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2709542.aspx</link><pubDate>Tue, 28 Oct 2008 06:49:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2709542</guid><dc:creator>Thomas Sun – MSFT</dc:creator><author>Thomas Sun – MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2709542.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2709542</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ASP.NET Web Application project (&lt;a href="http://msdn.microsoft.com/en-us/asp.net/aa336618.aspx"&gt;http://msdn.microsoft.com/en-us/asp.net/aa336618.aspx&lt;/a&gt;)&amp;nbsp;is closer to the Visual Studio .NET 2003 Web Project model and compiles all of the source code files during the build process and generates a single assembly in the local /bin directory for deployment. After we use Publish feature to publish web application, we can remove the &amp;quot;CodeFile&amp;quot; from Page directive, instead, CLR uses &lt;strong&gt;&lt;em&gt;Inherits &lt;/em&gt;&lt;/strong&gt;to load type.&lt;/p&gt;
&lt;p&gt;In ASP.NET Website project, the compiler will remove &lt;em&gt;&lt;strong&gt;CodeFile&lt;/strong&gt;&lt;/em&gt; attribute and change the &lt;em&gt;&lt;strong&gt;Inherits&lt;/strong&gt;&lt;/em&gt; attribute to include the assembly name. &lt;/p&gt;
&lt;p&gt;This is by design. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I look forward to hearing from you. &lt;/p&gt;</description></item><item><title>Confused about Deployment (ASP.NET Web Application vs ASP.NET Web Site)</title><link>http://forums.asp.net/thread/2706297.aspx</link><pubDate>Sat, 25 Oct 2008 20:37:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2706297</guid><dc:creator>Sounge</dc:creator><author>Sounge</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2706297.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=2706297</wfw:commentRss><description>&lt;p&gt;I am having difficulty publishing my ASP.NET website when my project is of type &amp;quot;ASP.NET Web Application&amp;quot; (I created a new project by File -&amp;gt; New Project -&amp;gt; Visual C# -&amp;gt; ASP.NET Web Application).&amp;nbsp; When I choose &amp;quot;Publish Web Site&amp;quot;, it asks me to select the folder to publish to, which works fine.&amp;nbsp; I notice, however, in the &amp;#39;published&amp;#39; default.aspx page (the only page in my project) that it is pointing to &amp;quot;Default.aspx.cs&amp;quot; for the CodeFile, however, the Published web site only has a .DLL in the \bin folder, named [Projectname].DLL, but its not being referenced anywhere or anything.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I created another project of type &amp;quot;ASP.NET Website&amp;quot;, by going to File -&amp;gt; New Website -&amp;gt; ASP.NET Website, used the same source files, did a build, and then published the site, and it works great.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any ideas on how/why this is happening? Also, what is the exact difference by an &amp;#39;ASP.NET Web Application&amp;#39; and an &amp;#39;ASP.NET Website&amp;#39; when creating a new project?&lt;/p&gt;&lt;p&gt;Many thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>