Unreal Engine 4.9 - Cant build source when editor is open
I recently upgraded my project to 4.9 and ever since I have been unable to build the code in vs 2013 when the editor is open. It builds fine when the editor isn't open, but when it is I get these errors.
It was working absolutely fine in 4.8.3 - I could easily rebuild source on the fly with the editor open, so I am not sure what happened.
I am just wondering if this is a bug? or if this is something I might have done wrong?
Error 1 error : System.UnauthorizedAccessException: Access to the path 'C:\Users\UserName\Documents\Unreal Projects\Demo\Binaries\Win64\UE4Editor-Outbreak.dll' is denied. C:\Users\UserName\Documents\Unreal Projects\Demo\Intermediate\ProjectFiles\EXEC Demo
Error 13 error MSB3073: The command ""C:\Program Files\Epic Games\4.9\Engine\Build\BatchFiles\Rebuild.bat" DemoEditor Win64 Development "C:\Users\UserName\Documents\Unreal Projects\Demo\Demo.uproject" -rocket" exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 Demo
I encountered this problem with 4.9 and 4.8 while trying to get up to speed with the Visual Studio workflow. The following steps should get you past the errors and able to step through the code correctly:
1) Ensure that you are running Visual Studio as Administrator (Right Click on the launch shortcut and select the option, then select the option... See Image)
2) Ensure that you are running a Debug Profile as [DebugGame Editor] ( See image).
From here you should be able to code and step through the editor as per normal.
NB. It also means that you start your day from Visual Studio, not the editor. Good luck!
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.
answered Sep 21 '15 at 09:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here