Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Error building Player: Win32Exception: ApplicationName='rc.exe',

Discussion in 'Windows Mixed Reality' started by esuzen, May 3, 2017.

  1. esuzen

    esuzen

    Joined:
    Apr 28, 2017
    Posts:
    5
    Hi,
    I am trying to build my prokect with unity but i got this error

    Win32Exception: ApplicationName='C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.exe', CommandLine='/fo "Temp\StagingArea\Resource.res" "Temp/WindowsResources\Resource.rc"', CurrentDirectory=''
    System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
    System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
    System.Diagnostics.Process.Start ()
    (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
    UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:33)
    Utility.RunAndWait (System.String fileName, System.String arguments, System.String& result, IDictionary`2 environmentVariables) (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/Utility.cs:229)
    PostProcessWinRT.CreateWindowsResourceFile (System.String targetDirectory) (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:743)
    PostProcessWinRT.CreateWindowsResourceFile () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:751)
    PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:147)
    UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:155)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()

    Can everyone help me please :(
     
    ToPeter likes this.
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    557
    Are you building in unity or in visual Studio?
     
  3. ToPeter

    ToPeter

    Joined:
    May 5, 2017
    Posts:
    1
    Go to "C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86". Copy: "rcdll.dll" + "rc.exe" and paste it into: "C:\Program Files (x86)\Windows Kits\10\bin\x86\". This solved the problem for me.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,681
    This should also not be a problem on newest 5.5 and 5.6 releases.
     
  5. ILonion

    ILonion

    Joined:
    Oct 26, 2015
    Posts:
    28
    I have same issue: Unity 5.5.1, VS 2017.
    ToPeter said:
    "Go to "C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86". Copy: "rcdll.dll" + "rc.exe" and paste it into: "C:\Program Files (x86)\Windows Kits\10\bin\x86\". This solved the problem for me."
    It's solved problem for me too.
     
  6. ViralWebbs

    ViralWebbs

    Joined:
    Dec 23, 2017
    Posts:
    6
    i m using windows 7,
    my path is
    C:\Program Files (x86)\Windows Kits\8.1\References\
    bin folder not included.
     
  7. appvillas

    appvillas

    Joined:
    Aug 21, 2015
    Posts:
    11
    Hello Sir I have this issue:

    i am using unity 2018.3.11f

    Code (CSharp):
    1. Win32Exception: ApplicationName='C:\Program Files\Unity\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\user\Downloads\Client_issue_v2\Client_issue_v2\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\user\Downloads\Client_issue_v2\Client_issue_v2\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Users/user/Desktop/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="C:\Users\user\Downloads\Client_issue_v2\Client_issue_v2\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="C:\Users\user\Downloads\Client_issue_v2\Client_issue_v2\Temp\StagingArea\Il2Cpp\il2cppOutput" ', CurrentDirectory='C:\Users\user\Downloads\Client_issue_v2\Client_issue_v2\Temp\StagingArea\assets\bin\Data\Managed',
    2. Native error = You do not have the required permissions for this operation.
    3.  
    4. System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <3845a180c26b4889bc2d47593a665814>:0)
    5. System.Diagnostics.Process.Start () (at <3845a180c26b4889bc2d47593a665814>:0)
    6. (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    7. UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
    8. UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
    9. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:106)
    10. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    11. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    12. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    13. UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    14. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    15. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
    16. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <df7ba4d130594d168eec372b930522d4>:0)
    17. UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <df7ba4d130594d168eec372b930522d4>:0)
    18. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <df7ba4d130594d168eec372b930522d4>:0)
    19. UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
    20. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)