The "ToggleDebugCompilation" task failed unexpectedly

Last post 06-15-2009 4:56 AM by Thomas Sun – MSFT. 1 replies.

Sort Posts:

  • The "ToggleDebugCompilation" task failed unexpectedly

    06-10-2009, 3:09 PM
    • Member
      28 point Member
    • PlayWithFire
    • Member since 08-25-2006, 6:03 PM
    • Posts 28

    I am trying to set up a deployment project for my web aplication. It builds fine if i deploy locally, but when i try deploying it the server, it breaks with the following error

      

    Error	30	The "ToggleDebugCompilation" task failed unexpectedly.
    System.ArgumentNullException: Parameter "message" cannot be null.
    at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName, String resourceName)
    at Microsoft.Build.Utilities.TaskLoggingHelper.LogMessage(MessageImportance importance, String message, Object[] messageArgs)
    at Microsoft.WebDeployment.Tasks.ToggleDebugCompilation.Execute()
    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) 1 1 MailingList.csproj_deploy
     But, i can publish website without a problem. Any help is appreciated.
  • Re: The "ToggleDebugCompilation" task failed unexpectedly

    06-15-2009, 4:56 AM

    Hi,

    Did you run this Web Deployment project from Visual Studio on server or use MSbuild to run this Web Deployment project file? If it is built in Visual Studio, please set "MSBuild project build output verbosity" option from (Tools menu, click Options, and then select the Projects and Solutions folder and click Build and Run) to get detailed build steps.

    In this case, please make sure the process identity that your Web Deployment project is running under has appropriate permission, especially the location where the Output will be.

    I look forward to receiving your test results.

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (2 items)