Error after uploading the project from my machine

Discussion in 'ASP.NET / ASP.NET Core' started by Yuda, Feb 17, 2004.

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 used the "copy project" command to upload my project to the web site. ( It is a IBuySpy based )
    I changed the web.config file in the web site to point to the database and also used the web application tool to install the directory as app dir.

    When trying to browse it I get the error that shows below.
    One strange thing is that after the "copy project" command finished, I noticed that a lot of the project's files were not uploaded at all. For example the "Components" directory was empty even though it has many files in my machine as well as the database directory and the db itself.. So I uploaded just everything manually. I am sure I missed a huge thing here but I am new to this stuff so .... :)

    please note that I moved the Access DB to the application root for testing only.

    Any response will be highly appreciated,

    Thanks.
    Yuda.

    Here is the error:

    Here is the error:

    Here is the error:
    Server Error in '/Makolet/IBS' Application.
    --------------------------------------------------------------------------------

    Could not find file 'c:\store2002.mdb'.
    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: Could not find file 'c:\store2002.mdb'.

    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): Could not find file 'c:\store2002.mdb'.]
    System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
    System.Data.OleDb.OleDbConnection.InitializeProvider() +57
    System.Data.OleDb.OleDbConnection.Open() +203
    IBuySpy.IBuySpy.ProductsDB.GetProductCategories() in C:\StoreVBVS\StoreVBVS\Components\ProductsDB.vb:65
    IBuySpy.C_Menu.Page_Load(Object sender, EventArgs e) in C:\StoreVBVS\StoreVBVS\_Menu.ascx.vb:44
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +35
    System.Web.UI.Control.LoadRecursive() +98
    System.Web.UI.Control.LoadRecursive() +98
    System.Web.UI.Page.ProcessRequestMain() +731




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.903
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Your DB path is wrong.

    To figure out the path, there are 2 ways

    1) Use server.mappath function. See this sample code, http://kb.discountasp.net/article.aspx?id=10023

    2) use the complete path, you can find the comple path to your webroot in the account information section in the control panel.


    quote:Originally posted by Yuda

    Hi,
    I used the "copy project" command to upload my project to the web site. ( It is a IBuySpy based )
    I changed the web.config file in the web site to point to the database and also used the web application tool to install the directory as app dir.

    When trying to browse it I get the error that shows below.
    One strange thing is that after the "copy project" command finished, I noticed that a lot of the project's files were not uploaded at all. For example the "Components" directory was empty even though it has many files in my machine as well as the database directory and the db itself.. So I uploaded just everything manually. I am sure I missed a huge thing here but I am new to this stuff so .... :)

    please note that I moved the Access DB to the application root for testing only.

    Any response will be highly appreciated,

    Thanks.
    Yuda.

    Here is the error:

    Here is the error:

    Here is the error:
    Server Error in '/Makolet/IBS' Application.
    --------------------------------------------------------------------------------

    Could not find file 'c:\store2002.mdb'.
    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: Could not find file 'c:\store2002.mdb'.

    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): Could not find file 'c:\store2002.mdb'.]
    System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
    System.Data.OleDb.OleDbConnection.InitializeProvider() +57
    System.Data.OleDb.OleDbConnection.Open() +203
    IBuySpy.IBuySpy.ProductsDB.GetProductCategories() in C:\StoreVBVS\StoreVBVS\Components\ProductsDB.vb:65
    IBuySpy.C_Menu.Page_Load(Object sender, EventArgs e) in C:\StoreVBVS\StoreVBVS\_Menu.ascx.vb:44
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +35
    System.Web.UI.Control.LoadRecursive() +98
    System.Web.UI.Control.LoadRecursive() +98
    System.Web.UI.Page.ProcessRequestMain() +731




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.903
    </blockquote id="quote"></font id="quote">
     
  3. Thanks Bruce, it surely did the job.
    Yuda.
     
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