I’m using MongoDb realm with .NET SDK. Have build and deployed a webAPI to a VPS with IIIS on it.
When accessing the API, I get the following error:
Couldn’t determine a writable folder where to store realm file. Specify absolute path manually
.NET SDK has this path configurable, so I set it up in as follows:
var config = new PartitionSyncConfiguration(publicPartitionId, user, optionalPath: localRealmFilePath);
The localRealmFilePath is set to “C:\inetpub\wwwroot\MongoRealmDatabase\Default”.
I’ve even tried giving write access to IIS_IUSRS user on the MongoRealmDatabase folder.
Any advice is greatly appreciated.