DB error ? or ...

Discussion in 'ASP.NET / ASP.NET Core' started by 2Fast2BCn, Nov 9, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 'E:\web\allnicebe02\htdocs\ambo\_database\amboDB.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: 'E:\web\allnicebe02\htdocs\ambo\_database\amboDB.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:





    Code:
    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.







    After I get this error, I upload the same (unchanged) "Web.conf"-file and the error is gone for some time...


    After a while the errorisback


    Is there a way to solve this problem?


    It's like the database url changes while using the webapplication. I extract the database url in my "global.asax"-file in the "Application_Start"-methode. By using Server.MapPath("../")+relativePath

    www.allnice.be

    Post Edited (2Fast2BCn) : 11/9/2004 1:35:44 PM GMT
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    THis error is usually caused by the fact that the application is not able to locate or open the mdb file.

    Are you sure the database file is at the correct location? Would you be updating the database with FTP or something?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. The path is incorrect...
    But the webapplication initialyworks fine.
    After a while the application changes it's Server.MapPath("../")+relativePath
    Looks like it does something like that.

    I'll try to parse the Server.MapPath("../")
    So that if it changes I can adjust the url
    guess that's going to work.

    www.allnice.be
     
  4. Have you fixed this.... ?


    I would have thought the problem could have been using Server.Mappath("../")


    of course this is going to change, it is going to depend on what directory the application is running in at the time, it is a relative path.


    I would have just thought you would need Server.Mappath("/") & "_database\dbname.mdb"


    I orignally had problems like this and it was solved by using just Server.Mappath("\")


    not sure if I have slashes the correct way or not, but thats my thoughts.


    Mikey
     
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