Editor cant find/open Visual Studio

So I have been trying to learn and work with unreal for the past week doing the c++ quick start tutorials and only got as far as creating one class and building before unreal just seemed to stop linking to the open visual studio instance. Ever since then, when I create a new project or open an existing project, Unreal is unable to open visual studio. I work full time in visual studio as a c# developer, but I don’t have any crazy plugins or custom configurations that may interfer. I appreciate any help I can get on this matter.

53075-unreal_cant_load_vs.png

  • Visual Studio 2013 Pro
  • Windows 10 (same issues on Win 8.1)
  • Have VS 2012 and 2015 also installed on the system.
  • env variable for VS120COMMONTOOLS is pointing at the correct tools path. As well as VS11 and VS14.
  • Using the client to install unreal builds
  • Unreal 4.8 and 4.7

Not sure if this will help, Verify (it’s a UE instlation option) your Unreal instalation, if you use engine from source run UnrealVersionSelector in engine binery forder

I have done both of those, to no avail. I can create brand new projects, and it loads vs correctly (and builds, add new classes, etc), but loading an existing project still cant find it.

Hey cschaf-

I just want to make sure I understand everything that is happening. Does Visual Studio open when you create a new code project or does that give you this error as well? Are you opening Visual Studio by double clicking on the .sln file? Are you able to open the VS solution for the project with File->Open Visual Studio through the editor? Are you able to open the solution through File->Open->Porject/Solution inside Visual Studio? It is also possible that the solution is being confused by the other Visual Studio versions. If possible you may want to remove them and try again.

Cheers

When I create a brand new project visual studio opens correctly and I can add classes and such, issue is loading an existing project now. I can open the solution .sln file directly and that opens in visual studio correctly. I use the File->Open Visual Studio command. My console output says the following:

LogWindows:Warning: CreateProc failed (740) C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/devenv.exe “E:/GameDev/QuickStart/QuickStart.sln”

LogVSAccessor:Warning: Couldn’t access module table
LogVSAccessor:Warning: Couldn’t access module table

Hey cschaf-

I have a couple more questions about the scope of this issue. Does Visual Studio open if you create a new class through the editor? Does the editor register a hot reload if you compile in VS with the project open?

As for the problem itself, one possible cause is lack of administrator access on the machine. In addition to the questions can you also check that the account you’re using on the machine has admin rights and debug privilege?

Hey,

VS does not open when creating a class and the editor does not do a hot reload. My account is full admin also. I have replicated this issue on both my home and work computer. Originally I thought it was this plugin (http://vscommands.squaredinfinity.com/) that does force visual studio to boot a certain way, but have since removed it and still have the same problem. I may just trying to fresh install visual studio.

So, after much trial and error, it came down to this: Running unreal as administrator mode directly. I am happy this is solved, but slightly embarrassed it took this long. Thanks for the help !

I have encounterd the same problem. I solved it by executing the UE4Editor.exe in administrator mode. That is, Run as administrator.

Doesn’t work any more. Without starting as administrator, HotReload simply fails. With starting as administrator - shows false positive, which is HIDING AN ERROR!
Displays success, without updating the project.

Found the solution here:

Whatever Ke9an posted didn’t exactly work, but appeared useful. After erasing Binaries,Intermediate,Saved and .sln and then restoring everything, Running Editor as administrator suddenly started to work. Please note, that VS also has to be run as admin.