Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Newbie:  error loading Hello World

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nospam - 03 Oct 2007 17:18 GMT
Hello,

Help!  I've been developing an ASP 2.0 app locally.  Now when I want to
upload to a web hosting company, I am getting errors.  I have never dealt
with the web hosting company before and this is my first ASP venture.

I created a small Hello world program and uploaded Default.aspx and
Default.aspx.cs to the domain.
When I run I get an error ( see below).
It complains about inheriting "_Default" which is in the Default.aspx.cs
file. ( I put both of these in the domain folder.).
Is this correct?  Do they belong in some special folder ( there is a bin
folder but not sure what it is).

Thanks,
bruce

Error ----------------------------------------->

Server Error in '/' Application
Parser Error

An error occurred during the parsing of a resource required to service this
request. Please review the following specific parse error details and modify
your source file appropriately.

Parser Error Message:  Could not load type '_Default'.

Line 1:  <%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
Alexey Smirnov - 03 Oct 2007 17:39 GMT
> Hello,
>
[quoted text clipped - 26 lines]
> Line 1:  <%@ Page Language="C#" AutoEventWireup="true"
> CodeFile="Default.aspx.cs" Inherits="_Default" %>

You have to compile your app and copy /bin folder instead of
Default.aspx.cs

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.