Results 1 to 3 of 3

Thread: Error loading page from a Web server.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    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?

  2. #2
    Lively Member
    Join Date
    May 2001
    Location
    Falkenberg, Sweden
    Posts
    76
    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    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
  •  



Click Here to Expand Forum to Full Width