Hi all,
I just signed up for an account because i would like to use my c# programming knowledge on my new website. I am having some issues and feeling a bit confused after searching these forums for a while.
I am looking to clarify whether asp.net is enabled on account by default or if i have to apply to get it and indeed if i have to apply for it, how i go about doing that.
I am trying to create a site with visual studio 2005. so far i have a very basic page which i am trying to upload as a precompiled page. to see how basic it is take a look at my default.aspx file:
The codebehind file is even more simple. looking like this:
So as you can see there is not alot of code for errors to occur in
I am compiling it with "Allow this precompiled site to be updatable" enabled. It runs fine on my machine, but when i upload it and go to the page i get a gnarly 500 error. You can see the full error on the page by going to angrywasp.x10hosting.com Posting the stack trace causes the forum post to exceed the maximum character limit.
I was wondering if this might be the result of asp.net not being enabled on my account, or is it just me being retarded.
Any help would be greatly appreciated
Cheers
I just signed up for an account because i would like to use my c# programming knowledge on my new website. I am having some issues and feeling a bit confused after searching these forums for a while.
I am looking to clarify whether asp.net is enabled on account by default or if i have to apply to get it and indeed if i have to apply for it, how i go about doing that.
I am trying to create a site with visual studio 2005. so far i have a very basic page which i am trying to upload as a precompiled page. to see how basic it is take a look at my default.aspx file:
Code:
[SIZE=2][FONT=Courier New]<%[/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#0000ff]@[/COLOR][/SIZE][SIZE=2][COLOR=#800000]Page [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Language[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="C#" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]AutoEventWireup[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="true" [/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#ff0000]CodeFile[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="Default.aspx.cs" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Inherits[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="_Default"[/COLOR][/SIZE][SIZE=2] %>[/SIZE][/FONT]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]<![/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]DOCTYPE [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]html [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]PUBLIC[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]"-//W3C//DTD XHTML 1.0 Transitional//EN" [/COLOR][/SIZE][/FONT]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]<[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]html [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]xmlns[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="http://www.w3.org/1999/xhtml"[/COLOR][/SIZE][/FONT][SIZE=2][COLOR=#0000ff][FONT=Courier New]>[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]<[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]head [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]runat[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="server">[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]title[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][SIZE=2]Untitled Page[/SIZE][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]title[/COLOR][/SIZE][/FONT][SIZE=2][COLOR=#0000ff][FONT=Courier New]>[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]</[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]head[/COLOR][/SIZE][/FONT][SIZE=2][COLOR=#0000ff][FONT=Courier New]>[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]<[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]body[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#800000]form[/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]id[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="form1" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]runat[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="server">[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]div[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] <[/COLOR][/SIZE][SIZE=2][COLOR=#800000]asp[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]:[/COLOR][/SIZE][SIZE=2][COLOR=#800000]Image [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]ID[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="Image1" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]runat[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="server" [/COLOR][/SIZE][SIZE=2][COLOR=#ff0000]Height[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="240px"[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#ff0000] ImageUrl[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="~/images/waspLogoSmall.gif" [/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#ff0000]Width[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]="320px"[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]/>[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff] </[/COLOR][/SIZE][SIZE=2][COLOR=#800000]div[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#800000]form[/COLOR][/SIZE][/FONT][SIZE=2][COLOR=#0000ff][FONT=Courier New]>[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]</[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]body[/COLOR][/SIZE][/FONT][SIZE=2][COLOR=#0000ff][FONT=Courier New]>[/FONT][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]</[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800000]html[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][/FONT]
The codebehind file is even more simple. looking like this:
Code:
[SIZE=2][COLOR=#0000ff][FONT=Courier New]using[/FONT][/COLOR][/SIZE][SIZE=2][FONT=Courier New][COLOR=#29384e] System;[/COLOR][/FONT][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]using[/FONT][/COLOR][/SIZE][SIZE=2][FONT=Courier New][COLOR=#29384e] System.Web.UI;[/COLOR][/FONT][/SIZE]
[SIZE=2][COLOR=#0000ff][FONT=Courier New]public[/FONT][/COLOR][/SIZE][FONT=Courier New][SIZE=2][COLOR=#0000ff]partial[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]class[/COLOR][/SIZE][SIZE=2][COLOR=#008080]_Default[/COLOR][/SIZE][SIZE=2][COLOR=#29384e] : [/COLOR][/SIZE][SIZE=2][COLOR=#008080]Page[/COLOR][/SIZE][/FONT]
[SIZE=2][FONT=Courier New]{[/FONT][/SIZE]
[FONT=Courier New][SIZE=2][COLOR=#0000ff]protected[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] Page_Load([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, [/SIZE][SIZE=2][COLOR=#008080]EventArgs[/COLOR][/SIZE][/FONT][SIZE=2][FONT=Courier New] e)[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]{[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]}[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]}[/FONT][/SIZE]
So as you can see there is not alot of code for errors to occur in
I am compiling it with "Allow this precompiled site to be updatable" enabled. It runs fine on my machine, but when i upload it and go to the page i get a gnarly 500 error. You can see the full error on the page by going to angrywasp.x10hosting.com Posting the stack trace causes the forum post to exceed the maximum character limit.
I was wondering if this might be the result of asp.net not being enabled on my account, or is it just me being retarded.
Any help would be greatly appreciated
Cheers