Click here to Skip to main content
15,886,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to import some data to a datatable from an Access database table. When the file is stored locally, this works fine :-

string connString =
                "Provider=Microsoft.ACE.OLEDB.12.0;data source=C:\\database.accdb";


However, when the file is stored on Dropbox, this doesn't work :-

string connString =
                "Provider=Microsoft.ACE.OLEDB.12.0;data source=https://www.dropbox.com/sharedurl/BillingFileConverterV6.accdb";


and I get a "Not a valid file name" error.

Could someone let me know what I need to change?

Thanks in advance.
Posted

1 solution

Since DropBox requires Authentication, therefore it does not allows you to get data from that location.

Use your System Location where your dropbox saves files Locally as you have mentioned above.
 
Share this answer
 
Comments
Member 9704153 1-Jan-13 13:27pm    
Do even shared files on Dropbox require authentication??
[no name] 1-Jan-13 13:34pm    
yes !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900