I've been working on updating my current project (part of which is a WPF desktop application using RavenDB in embedded mode) to use RavenDB 3, but I ran into some trouble with changing the parts that used attachments to use RavenFS. Whenever I tried to save a file, I would get what ultimately appeared to be a FileNotFoundException. It seems as though the AsyncFilesSession is trying to make a web request despite being in embedded mode, and it's getting a 404 error from my local instance of IIS, which RavenDB is translating into a FileNotFoundException.
I traced through the code and ultimately found that when the session is opened, the FilesStore is creating a new instance of AsyncFilesServerClient for the new session instead of using the one it already has. When running in embedded mode, the AsyncFilesServerClient owned by the FilesStore is configured not to actually send a web request (by setting the HttpJsonRequestFactory's HttpMessageHandler to an OwinClientHandler instance, I believe), but the new one being created for the session isn't inheriting that configuration.
I changed the code to pass the FilesStore's existing AsyncFilesServerClient to the new session, and that solved the problem I was having, so I'm submitting a pull request for that. If there's a problem with doing it that way that I didn't consider, then passing the FilesStore's HttpJsonRequestFactory to the new AsyncFIlesServerClient should also work, I think.