Problem with restoring database which has a filestream
Thanks to @Nic.
It seems that there's a bug with Windows 10 Creators Update. After reading this article I could manage to solve the problem by changing the service startup account to built-in account LocalSystem and now it works.