Beginners problem

Discussion in 'ASP.NET / ASP.NET Core' started by Malin, Feb 9, 2003.

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

    I read an earlier question in the forum that helped me a bit but still there seems to be more problems.

    I'm new in asp.NET but have managed to create some aspx-files with code behind files. This works perfectly on my intranet (Localhost)

    To my place here I've uploaded the aspx files, the aspx.cs (codebehind) files, the aspx.resx files, the web.config and the dll

    When I try to browse to my pages an error message displays:

    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 'Test2.WebForm1'.

    Source Error:


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


    Source File: E:\web\fagelfenix1\htdocs\register.aspx Line: 1

    ___________________________

    I don't understand what this error means. In my account settings there is att "server path". Should I use this path somewhere?

    Is there anyone who can help a beginner [:I]

    Malin
     
  2. First problem solved [:D]

    ... But a new problem popped up (of course)

    I have a database an I am trying change all paths to localhost but it does not seem to work. Altough I've changed the path in the connectionstring Localhost seems to be stuck in the program.

    This is the error message I get:

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

    'C:\Inetpub\wwwroot\Test2\data.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Data.OleDb.OleDbException: 'C:\Inetpub\wwwroot\Test2\data.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [OleDbException (0x80004005): 'C:\Inetpub\wwwroot\Test2\data.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.]
    System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
    System.Data.OleDb.OleDbConnection.InitializeProvider() +57
    System.Data.OleDb.OleDbConnection.Open() +131
    Test2.display.getData(String sqlQuestion) in c:\inetpub\wwwroot\test2\display.aspx.cs:162
    Test2.display.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\test2\display.aspx.cs:152
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +29
    System.Web.UI.Page.ProcessRequestMain() +724

    **********************************

    Is there any help for me? Again..I'm just a beginner so please be kind to me [:I]

    Malin
     
  3. I can't say for sure, but is the folder named "test2" or "Test2"? That is one discrepancy I see. Try it.
     
  4. Thank you for your help Davidseye

    I solved the problem and one of the things I did was to change the "Test2" name. I'm not sure if this was the succsessful change or one of the other changes I did. I should learn to bugtest in a more diciplined way [:I]

    Now my files are working out just perfectly, It's really great with asp.NET. Can't wait to develope something new [:)]

    Malin
     
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