.NET Framework Bookmark and Share   
 index > MSBuild > MSBuild Failure - What Permissions Are Needed To Build Workflow Projects? [CompileWorkflowTask]
 

MSBuild Failure - What Permissions Are Needed To Build Workflow Projects? [CompileWorkflowTask]

I get the following error when running our MSBuild service (via CruiseControl.NET) as Local System. However, it does not occur when running the service as me. Please let me know if this is something that has been seen before and what resolution I might find. Specifically, what permissions requirements are needed to compile Workflow projects using MSBuild?

C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets (127,5):

errorMSB4018: The "CompileWorkflowTask" task failed unexpectedly.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Windows\system32\config\systemprofile\AppData\Local\Temp\n8gmcgnr.tmp'.

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)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()

at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)

at System.Workflow.ComponentModel.Compiler.CompileWorkflowTask.Execute()

at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

Environment: Windows Server 2008, 64-bit


Thanks,
Jonathan


jlb0002
Found the fix!

Just use the 64x MSBuild exe.

C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe
cecildt

Hi Jonathan,

I am not very clear about your problem. Could you please show us how build the WorkFlow project with CruiseControl.NET?

Thanks,
Rong-Chun Zhang

Please mark the replies as answers if they help and unmark if they don't.
Rong-Chun Zhang
We are changing the issue type to "General Discussion" because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to "Question" by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!
Rong-Chun Zhang


Please mark the replies as answers if they help and unmark if they don't.
Rong-Chun Zhang
Reviving this thread. I'm getting the exact same error. As it turns out, the following folder doesn't exist on my machine!
C:\Windows\system32\config\systemprofile\AppData\Local\Temp\

The last part, Temp is missing. So I created the folder, but I'm still getting the same error.

The Sytem Account is running my build. So it seems there's some problem with the system account getting access to its own temp folder. Why would the temp folder not exist?

I"m running windows 2008 64-bit.
sfun28
Found the fix!

Just use the 64x MSBuild exe.

C:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe
cecildt
thanks!!!
sfun28

You can use google to search for other answers

Custom Search

More Threads

• Referencing Properties that contain free form XML
• Use MSBuild to create ClickOnce App files in alternate location
• Force MSBuild to look for Reference in GAC to resolve assembly reference error
• How to hide special TaskItems from Solution Explorer?
• Store the application return value when using metadata on Exec
• Visual Studio Compile Slow on Network
• Remote building
• Q on SUBST mapping behavior during the build
• Looping in MSBuild
• Custom Build Step Failure to Execute