I am having difficulty publishing my ASP.NET website when my project is of type "ASP.NET Web Application" (I created a new project by File -> New Project -> Visual C# -> ASP.NET Web Application). When I choose "Publish Web Site", it asks me to select the folder to publish to, which works fine. I notice, however, in the 'published' default.aspx page (the only page in my project) that it is pointing to "Default.aspx.cs" 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.
I created another project of type "ASP.NET Website", by going to File -> New Website -> ASP.NET Website, used the same source files, did a build, and then published the site, and it works great.
Any ideas on how/why this is happening? Also, what is the exact difference by an 'ASP.NET Web Application' and an 'ASP.NET Website' when creating a new project?
Many thanks in advance.