I wrote a small program and it takes an access database stored as a resource in my.resources. On load im telling it to take that db and put it on the local workstation with the below code:
Dim tempFilePath As String = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "BMWMaintenance") My.Computer.FileSystem.WriteAllBytes(tempFilePath, My.Resources.BMWMaintenance, False)
IM not sure why but i keep erroring out with a permissions error telling me i dont have rights. I tried launching as an admin and i still get the same result. I am an admin of my machine and a domain admin so this should work. What could be wrong?