Publishing a very basic asp.net web application - with Visual Studio 2010 & 2012
<p>I have simple webpage assignments for my CSC class where I'm making simple toy "hello world" type applications and buisness web apps.</p>

<p>I have run into a MASSIVE issue with these assignments and that is to actually get these web files working on a Microsoft server.</p>

<p>I'm very experiences with PHP and HTML and working with them makes life good! I upload e.g. index.php to a directory on a server, then in my browser I simply navigate to index.php and volla! my page appears with no trouble, gee open source stuff is great!</p>

<p>So in my class for building web applications we're forced to use Microshit asp.net and all I can say about it is that it sucks, no wonder why it's losing popularity compared to PHP...</p>

<p>I am SIMPLY trying to make a "press a button then Hello World label appears", it compiles PERFECTLY fine and runs great locally, but I can't get anything to work online!</p>

<p><a href="http://csc-srv1.lasalle.edu/andrzejczukm1/PrecompiledWeb/1100.aspx" rel="nofollow">http://csc-srv1.lasalle.edu/andrzejczukm1/PrecompiledWeb/1100.aspx</a></p>

<p>Above is a hello world page I'm making for the sake of dealing with Microsoft's god awful development environment. I simply cannot figure out why I'm receiving the Runtime error.</p>

<p>I compiled that 1100.aspx by right clicking on the project in the Solutions Explorer, then I clicked Publish Website, then I hit Ok. Finally I dragged the contents of the precompiled website to my ftp server using filezilla.</p>

<p>This is what the precompiled webfiles look like:
<img src="http://i.stack.imgur.com/kJx1Z.jpg" alt="enter image description here"></p>

<p>I just cannot understand what I'm doing wrong here... So if anyone knows, what's the point of making this process so difficult? There doesn't even seem to be a way to publish this manually. It's like Microsoft added in all these fancy publishing tools for nothing, they just don't work in any accordance to the superior simplicity and power of PHP and CSS. Sorry, I'm done with the ranting for now.</p>

<p>This is the code for 1100.aspx</p>

<pre><code>&lt;%@ Page Language="VB" AutoEventWireup="false" CodeFile="1100.aspx.vb" Inherits="_1100" %&gt;

&lt;!DOCTYPE html&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;Navigation&lt;/h1&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;

        &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
        &lt;br /&gt;
        &lt;asp:Label ID="lblMain" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;

    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And this is the code for 1100.aspx.vb</p>

<pre><code>Partial Class _1100
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        lblMain.Text = "Hello World."
    End Sub
End Class
</code></pre>

<p>Lastly, this is the code for the web.config:</p>

<pre><code>&lt;?xml version="1.0"?&gt;

&lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&gt;

&lt;configuration&gt;
    &lt;system.web&gt;
    &lt;customErrors mode="Off"/&gt;
      &lt;compilation debug="false" strict="false" explicit="true" targetFramework="4.5" /&gt;
    &lt;/system.web&gt;

&lt;/configuration&gt;
</code></pre>

<p>Not sure if I would have been able to make this web app any simpler. Does anyone see what I'm doing wrong here? </p>

<p>NOTE: I've also tried using Visual Studio 2010 as well and I was still plagued with the same problems. </p>

<p>I will gladly revise this page for asp.net rookies in the future to help them develop and deploy simple web apps since Microsoft can't even make a freaking publishing tutorial right...</p>
