locked
TFS 2013 Error MSB4018:The "MapperCompiler" task failed unexpectedly. RRS feed

  • Question

  • I'm using TFS 2013 build and running into  below error

    The error is specifically to .btm.cs file. The Administrator access is given on folder level but still we are getting access to the path denied.

    C:\Program Files (x86)\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets (126): The "MapperCompiler" task failed unexpectedly.
    System.UnauthorizedAccessException: Access to the path 'C:\Builds\12\src\DeleteThisSample\SampleBizTalkOrchestartion\MapTransform.btm.cs' is denied.
       at Microsoft.VisualStudio.BizTalkProject.Compiler.MapCompiler.Compile(BizTalkBuildSnapshot buildSnapshot, IEnumerable`1 mapFilesToCompile, IEnumerable`1 schemaFiles, List`1& generatedCodeFiles, List`1& xsltFiles)
       at Microsoft.VisualStudio.BizTalkProject.BuildTasks.MapperCompiler.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() 

    Any help on how to fix this would be greatly appreciated.

    Thursday, February 4, 2016 6:39 PM

Answers

All replies

  • Hi Shalini,

    Thanks for your post.

    Based on the error message, when build the solution, the build account has no permission on the build source folder.

    You could add full control permission to the build account on the source folder. Or add "Everyone" permission to the source folder and test if this error happen. How to add "Everyone" permission to folder, please refer to the following steps:

    1. Right-click the source folder.
    2. Select Properties. Go to Security.
    3. Add "Everyone" user like below:

    Regards,
    Shrek Li


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, February 5, 2016 9:04 AM
    Moderator
  • Hi Shrek Li,

    Thanks for the details explanation. But both build and output folder has full permission for build service account.

    We are using TFS 2013 and BizTAlk 2013R2 and Build server is configured on Windows 10.

    I tired to removed Btm.cs  file and treid to build and the build was successful. I have even created a different solution having just btm.cs file created and i faced same error. With out btm.cs file in soln it builds perfectly.

    Regards,

    Shalini


    Friday, February 5, 2016 8:20 PM
  • Hi Shalini,

    Does the Btm.cs file in the source control? If not, how Btm.cs file be generated? What’s it used for?

    You said you are using BizTAlk 2013 R2, is it related to that file?

    Regards

    Starain


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, February 8, 2016 9:14 AM
    Moderator
  • Hi Startain,

    Yes the Btm.cs file is in Source Control. It is the Mapping File which we use in BizTalk. It is one of the BizTalk artifact.

    

    Tuesday, February 9, 2016 12:33 PM
  • Issue has been resolved after deleting btm.cs file from solution. 
    Tuesday, February 9, 2016 8:51 PM