I’ve successfully managed to create a file cache with mongo, when running with the database in the default database folder everything works a treat.
But if I run it with a custom dbpath I can no longer insert with GridFS. I’m using the official c# driver.
Simply restarting the mongo instance with the defaults solves the issue.
mongod (works).
mongod –dbpath F:\mongo\db (Doensn’t work).
Thanks in advance.
It was down to file permissions, changed those and it’s all sorted now.