locked
Invalid characters in path RRS feed

  • Question

  • User31164289 posted

    I've a VPS server on which there are multiple web-app asp.net

    Every webapp use msaccess db.

    Now I've cloned an old web-app to create test environmentfor my customer.

    Problem is that web-app not work. Sometime I can access but after login while open a record it shows an error:

    Invalid characters in path.

    Sometime I cannot login for the same error.

    Googling error i found a post that solve this problem configuring IIS to run 32 bit application. But I think that this action is useless because other webapp work great.

    Someone have solution?

    Tahnks

    Friday, March 9, 2012 6:37 AM

Answers

  • User162050988 posted

    If your connectionString is like uses | characters, replace them by /.

    Invalid:

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|ASPNetDB.mdb"

    Valid:

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/DataDirectory/ASPNetDB.mdb" 
    
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 9, 2012 6:43 AM
  • User3866881 posted

    Could not use ''; file already in use."

    Plz make sure that your file of msaccess hasn't been used by any other apps,especially you should Close connection each time after using that。

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 10, 2012 8:26 PM

All replies

  • User162050988 posted

    If your connectionString is like uses | characters, replace them by /.

    Invalid:

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|ASPNetDB.mdb"

    Valid:

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/DataDirectory/ASPNetDB.mdb" 
    
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 9, 2012 6:43 AM
  • User31164289 posted

    Thanks, but now it shows 

    Could not use ''; file already in use."

    Friday, March 9, 2012 6:56 AM
  • User3866881 posted

    Could not use ''; file already in use."

    Plz make sure that your file of msaccess hasn't been used by any other apps,especially you should Close connection each time after using that。

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 10, 2012 8:26 PM