Problem using server based memories

As an SDL beginner I have the task to create an automated process for a customer. As long as the process uses file-based memories, everything works out fine. As soon as the process is to use server-based memories from the groupshare server, the process does not generate any results. All files that are expected are created. But there are no matches. It is as if no memories are given.

Does anyone have an idea what the process is missing? The code to access the memories is ...

Dim tmpConfig As TranslationProviderConfiguration = mySDLProject.GetTranslationProviderConfiguration()
Dim tmpUri As New Uri(My.Settings.SDL_Groupshare_URL)
Dim tmpUserName As String = My.Settings.SDL_Groupshare_Username
Dim tmpPassword As String = My.Settings.SDL_Groupshare_Password

Dim tmpMemory As ServerBasedTranslationMemory
Dim tmpTmServer As New TranslationProviderServer(tmpUri, False, tmpUserName, tmpPassword)

Dim tmpRoot As String = My.Settings.SDL_Groupshare_TMLocation
Dim tmpTM As String = "/" & myFileTm
Dim tmpLocation As String = tmpRoot & tmpTM
tmpMemory = tmpTmServer.GetTranslationMemory(tmpLocation, TranslationMemoryProperties.All)

Dim tmpTranslationProviderReference As New TranslationProviderReference(tmpMemory.Uri, tmpMemory.SerializeState, True)
Dim tmpTranslationProviderCascadeEntry As New TranslationProviderCascadeEntry(tmpTranslationProviderReference, True, True, True)
tmpConfig.Entries.Add(tmpTranslationProviderCascadeEntry)
mySDLProject.UpdateTranslationProviderConfiguration(tmpConfig)

mySDLProject.Credentials.AddCredential(tmpUri, False, tmpUserName, tmpPassword)
mySDLProject.UpdateProject(mySDLProjectInfo)