....mdb" is not a valid virtual path. but it's is there.

  •  01-14-2007, 7:03 AM

    ....mdb" is not a valid virtual path. but it's is there.

    Hi.
     
    I have edit the database-example.aspx so the names match my tabels and so on but when i changes the: LINE 130
     conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Context.Server.MapPath("../uploads/Northwind.mdb") + ";"
    to
    conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Context.Server.MapPath("d:/web/localuser/domain.dk/database/mybase.mdb") + ";"
    or to
    conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Context.Server.MapPath("d:\web\localuser\domain.dk\database\mybase.mdb") + ";"
     
    Hope someone can help me with this.
     
    The error i get is:

    'd:/web/localuser/domain.dk/database/mybase.mdb' is not a valid virtual path.

    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.Web.HttpException: 'd:/web/localuser/domain.dk/database/mybase.mdb' is not a valid virtual path.
View Complete Thread