If the error is:
"Access to the database file is not allowed."
It is a file system permission problem and it cannot read or write to the database file then you must fix the file system permissions so it can. The user that is the identity on the web application pool must have full control on this file.
If you are talking about some other problem then start a new thread and ask it clearly separate from this one. The answer to this problem has been given and is not going to be different in the future.
The problem is that uploading the db is the cause of the file system permission problem, the file is created and owned by a windows user with a SID system id on your local machine but that user does not exist on the remote server but the remote server still sees the attributes on the file each time you upload it and it is owned by a user from your local windows that is unknown to the server so every time you upload it the permissions are messed up again.
You should upload it fix the permissions so it works then don't repeat the process, treat it the same as backup and restore of a sql database, restoring a sql database is not something to keep doing every day and it is the same store for sql ce even though it is easier to do than with sql server it is not something to keep doing over and over, unless you want to keep breaking and fixing the file system permissions.