Last post Mar 03, 2015 01:32 AM by Zhi Lv - MSFT
Mar 02, 2015 04:00 PM|ArCiGo|LINK
How can I change the path of my Firebird database located into the App_Data folder in the Web.config before publish it in the server?
I tried using
and putting the ~\ and ../ before the path of my DB.
This is my current connection string:
<add key="ConecctionString" value="User=sysdba;Password=masterkey;Database=C:\BasesDatos\GrupoSAT\Ejemplos.fdb;Datasource=localhost;" />
<add key="TableName" value="INVE01" />
I'll appreciate any help.
Mar 02, 2015 07:40 PM|oned_gk|LINK
Try change to
Mar 02, 2015 08:51 PM|ArCiGo|LINK
Could you post an example of the path?
Mar 02, 2015 08:56 PM|oned_gk|LINK
|DataDirectory| will point to App_Data folder inside your application
The real path depend where the application
Mar 03, 2015 01:32 AM|Zhi Lv - MSFT|LINK
As for this issue, I agree with Suwandi, for more details about DataDirectory, please refer to this article.