Server object null?
<p><strong>When i start my application i get this error:</strong></p>

<pre><code> System.NullReferenceException was unhandled by user code
 Message=Objektreferensen har inte angetts till en instans av ett objekt.
 Source=App_global.asax.avoeinwy
 StackTrace:
 vid ASP.global_asax.BuildMessage() i E:\WEBB\Adilimo\Papp\Web\papplimited_com\global.asax:rad 400
 vid ASP.global_asax.Application_Error(Object sender, EventArgs e) i E:\WEBB\Adilimo\Papp\Web\papplimited_com\global.asax:rad 46
 vid System.EventHandler.Invoke(Object sender, EventArgs e)
 vid System.Web.HttpApplication.RaiseOnError()
 InnerException:
</code></pre>

<p><strong>This is where it happens:</strong></p>

<pre><code>       Dim strMessage As New StringBuilder
....... (lots of "strMessage.Append()")
        strMessage.Append("&lt;tr&gt;")
        strMessage.Append("&lt;td width=""100"" align=""right"" bgcolor=""#EEEEEE"" class=""header1"" nowrap valign=""top""&gt;Details&lt;/td&gt;")
 strMessage.Append("&lt;td bgcolor=""#FFFFFF"" class=""basix""&gt;" &amp; Server.GetLastError.InnerException.ToString() &amp; "&lt;/td&gt;")
        strMessage.Append("&lt;/tr&gt;")
</code></pre>

<p><strong>Here is the stack trace:</strong></p>

<pre><code>   vid ASP.global_asax.BuildMessage() i E:\WEBB\Adilimo\Papp\Web\papplimited_com\global.asax:rad 400
   vid ASP.global_asax.Application_Error(Object sender, EventArgs e) i E:\WEBB\Adilimo\Papp\Web\papplimited_com\global.asax:rad 46
   vid System.EventHandler.Invoke(Object sender, EventArgs e)
   vid System.Web.HttpApplication.RaiseOnError()
</code></pre>

<p>Any suggestions? I dont really know what to do when it seems that the server object is null. :(</p>

<p>Here is an image showing that i am getting an NullReference on the line where the Server Object is clearly not null!</p>

<p><img src="http://i.stack.imgur.com/vrVhy.jpg" alt="enter image description here"></p>
