|
-
Jul 15th, 2002, 07:20 PM
#1
Thread Starter
Addicted Member
Error loading page from a Web server.
Error loading page from a Web server.
All pages worked well at the local host, but after uploading to the Web server I have got such message:
‘Could not load type 'tower2.WebForm2'
The aspx file is: ‘Search.aspx’
The very first line caused an error:
Line 1: <%@ Page Language="vb" Debug = "true" Codebehind="Search.vb" Inherits="tower2.WebForm2" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 //EN">
Line 3: <HTML>
The class name in the file ‘Search.vb’ named ‘WebForm2’, so it seems that the browser cannot find the class ‘WebForm2’? The beginning of the file Search.vb:
Imports System.Data.OleDb
Public Class WebForm2
Inherits System.Web.UI.Page
…
What should be done to make it work properly?
-
Jul 26th, 2002, 04:32 AM
#2
Lively Member
Have you uploaded the "bin"-folder the web-server as well?
If you're creating an asp.net application you can choose:
"Project" - "Copy Project"
Select "Only files needed to run this application", FileShare and then type in a path (to an empy folder).
Now, all files needed to run the application will be copied to the folder. You'll now see that you wont need the ".vb"-files.
so...dont forget to include the folders as well.
________________________
Fredrik Klarqvist
-
Jul 28th, 2002, 07:44 PM
#3
Thread Starter
Addicted Member
Still the same!
I made a sample project for the testing and I have done exactly as you adviced, fredric, but I received the same error message.
I also tried another way: created a Web setup project, run this project at the local computer, after that tested it and it worked OK. But when I copied all files into the Web site, all the same repeated. I use a Brincster free account for this test:
http://www16.brinkster.com/tower22/finance.aspx
If anyone can sort it out: all files are zipped and can be downloaded at:
http://www16.brinkster.com/tower22/1.zip
I will really appreciate any advise!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|