- Home /
Cannot open file for write. Error in unity
Whenever i open my unity i keep getting this one error. "Cannot open file 'C:/ProgramData/Unity/Unity_v5.x.ulf' for write."
Is it important to fix it? and how do I fix it then?
Answer by FatIgor · Feb 15, 2017 at 04:20 PM
You can fix this by changing the file permissions. There is a thread about this here.
https://forum.unity3d.com/threads/unity-5-error-at-launch-failed-to-write-license-file.300964/
Answer by iamdenay · Feb 17, 2017 at 09:14 AM
Cause
You have downloaded Unity 5.x on a Windows machine and are unable to launch the Editor. This happens because you need to have administrative privileges within your network to install and run Unity 5.x. Unity is not allowed to write your license file in this directory without admin privileges.
Resolution
You will need to change the administrative permissions for the users on your machine. To do this:
Locate the the folder "C:/ProgramData/Unity" (this may be a hidden folder, if you cannot find it, you can change the explorer settings to make hidden folders visible.)
When you locate the "Unity_v5.x.ulf" file, right click Properties.
Click on the Security tab and then click Edit.
Select your required group or user names and check the Allow box for Full control.
Click Apply.