!!HELP, NEW USER - Web App Problem

Discussion in 'ASP.NET / ASP.NET Core' started by Bruce, Jun 13, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Bruce

    Bruce DiscountASP.NET Staff

    this error usually means that you didn't upload the code behind dll to the bin folder.

    quote:Originally posted by writedom

    I have only installed web apps on local server. I have never used an online server (I am probably doing something wrong).
    Here is what I did on the online server (discountasp.net):
    I created a new folder named Test where I copied the asp.net files. I set folder Test as an application.
    When I open the page I get the following error:

    Server Error in '/Test' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: 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 't3.Global'.

    Source Error:


    Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="t3.Global" %>



    Source File: E:\web\midislandst\htdocs\Test\global.asax Line: 1

    Can someone help steer me in the right direction?? Any help is greatly appreciated.



    </blockquote id="quote"></font id="quote">
     
  2. I have only installed web apps on local server. I have never used an online server (I am probably doing something wrong).
    Here is what I did on the online server (discountasp.net):
    I created a new folder named Test where I copied the asp.net files. I set folder Test as an application.
    When I open the page I get the following error:

    Server Error in '/Test' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: 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 't3.Global'.

    Source Error:


    Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="t3.Global" %>



    Source File: E:\web\midislandst\htdocs\Test\global.asax Line: 1

    Can someone help steer me in the right direction?? Any help is greatly appreciated.
     
  3. I've had a similar problem with my attempted install of a very bare bones ASP.NET page. I have merely started my own 'test' ASP.NET C# Web Form project - only removing some stuff from the web.config file (for example the SessionState, customErrors and the authentication stuff).

    The WebForm1.aspx file consists merely of "<p>Hello world</p>" (ontop of the usual <html><title><form> stuff).

    I have built and uploaded all the files in the local directory (test) to the web directory (new folder: test) along with any /bin directory files.

    The following error message, in full, is displayed:

    quote:Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: 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 'test.WebForm1'.

    Source Error:


    Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="test.WebForm1" %>
    Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    Line 3:


    Source File: E:\web\mbhcomau000\htdocs\test\WebForm1.aspx Line: 1


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.903</blockquote id="quote"></font id="quote">

    Thankyou for any assistance you can give.
     
  4. ps - the app works fine locally.[B)]
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    Did you set up the sub directory as an application root?

    ASP.net always look to the bin directory in the web application root to find the dll.

    If you use VS.net, you may want to upload using VS.net's copy project feature.


    quote:Originally posted by mbh_brett

    I've had a similar problem with my attempted install of a very bare bones ASP.NET page. I have merely started my own 'test' ASP.NET C# Web Form project - only removing some stuff from the web.config file (for example the SessionState, customErrors and the authentication stuff).

    The WebForm1.aspx file consists merely of "<p>Hello world</p>" (ontop of the usual <html><title><form> stuff).

    I have built and uploaded all the files in the local directory (test) to the web directory (new folder: test) along with any /bin directory files.

    The following error message, in full, is displayed:

    quote:Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Parser Error
    Description: 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 'test.WebForm1'.

    Source Error:


    Line 1: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="test.WebForm1" %>
    Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    Line 3:


    Source File: E:\web\mbhcomau000\htdocs\test\WebForm1.aspx Line: 1


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.903</blockquote id="quote"></font id="quote">

    Thankyou for any assistance you can give.
    </blockquote id="quote"></font id="quote">
     
  6. Yep that was the problem there. Thanks Bruce - I suspected it was something so simple.

    For others who are a little more obtuse: you can set up the directory as an application under the "Web Application Tool" in your discountasp.net control panel.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page