x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can't create new C++ project: access denied

I'm trying to create a new C++ project, from a clean install of UE 4.11.2, with the latest version of Visual Studio Community 2015 installed.

I keep receiving the error: UnrealBuildTool Exception: Access to path BuildConfiguration.Schema.xsd is denied. I get the same error if I try to add a C++ class to an existing Blueprints project, too. Any ideas what could be wrong?

 An error occurred while trying to generate project files.
 
 Running C:/Program Files/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Projects/Example/Example.uproject" -game -progress -2015
 UnrealBuildTool Exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Epic Games\4.11\Engine\Saved\UnrealBuildTool\BuildConfiguration.Schema.xsd' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
    at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
    at UnrealBuildTool.XmlConfigLoader.OverwriteIfDifferent(String FilePath, String Content, Boolean bReadOnlyFile)
    at UnrealBuildTool.XmlConfigLoader.Init()
    at UnrealBuildTool.UnrealBuildTool.InitConfigurationClasses(String[] Arguments)
    at UnrealBuildTool.UnrealBuildTool.Main(String[] Arguments)
Product Version: UE 4.11
Tags:
more ▼

asked May 25 '16 at 07:51 AM in Installation & Setup

avatar image

chris.nolet
13 3 5 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hello chris.nolet,

From what I've seen previously, that error message could mean a few different things. Firstly, be sure that you're running Visual Studio as an administrator, otherwise it won't be able to access this file. If that doesn't help, please check that file that it isn't able to access and ensure that it isn't set to "read-only". If neither of these work, please try disabling your anti virus temporarily to see if it may be blocking Visual Studio from accessing certain files.

Edit: If none of these options help, what version of Windows are you using and have you been able to create C++ projects in Unreal previously on this same computer? If so, what version was it on?

more ▼

answered May 26 '16 at 06:34 PM

avatar image

Matthew J ♦♦ STAFF
31.8k 526 92 417

avatar image chris.nolet May 27 '16 at 04:54 PM

Thanks Matthew! You were right – even though I'd deleted and reinstalled UE4 from the launcher, some files were left over, and this particular file was read-only. Deleting the entire 4.11 folder and reinstalling it fixed the issue. Thanks again :)

avatar image kongbu0621 Apr 25 '18 at 10:12 AM

thanks , the same error for me , it' s help me

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question