Getting error when deploying website in vs-2008

Last post 10-28-2009 4:54 AM by imran_khan. 2 replies.

Sort Posts:

  • Getting error when deploying website in vs-2008

    10-23-2009, 1:47 AM
    • Contributor
      2,914 point Contributor
    • imran_khan
    • Member since 03-11-2008, 7:57 AM
    • Ahmedabad
    • Posts 572

    I checked the detailed output. Here is what I get. Any clue?

    Using "ToggleDebugCompilation" task from assembly "C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.Tasks.dll".

    Task "ToggleDebugCompilation"

    Updating Web.config <compilation> element debug attribute to 'False'.

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error : Section or group name 'system.web.extensions' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\Documents and Settings\pvakil0\Desktop\MyProjects\MyProject\Release\web.config line 4)

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: The "ToggleDebugCompilation" task failed unexpectedly.

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: System.ArgumentNullException: Parameter "message" cannot be null.

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: at Microsoft.Build.Shared.ErrorUtilities.VerifyThrowArgumentNull(Object parameter, String parameterName, String resourceName)

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: at Microsoft.Build.Utilities.TaskLoggingHelper.LogMessage(MessageImportance importance, String message, Object[] messageArgs)

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: at Microsoft.WebDeployment.Tasks.ToggleDebugCompilation.Execute()

    C:\Program Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(639,7): error MSB4018: at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

    Done executing task "ToggleDebugCompilation" -- FAILED.

    Done building target "CopyToOutputDir" in project "MyProject.wdproj" -- FAILED.

    Done building project "MyProject.wdproj" -- FAILED.

    Build FAILED.


    Regard

    Imrankhan

    Imrankhan
    -----------------------------------------------------
    Always remember to mark as answer on the post that helped you.

    My Blog :
    http://aspnet-solutions.blogspot.com/
    http://javascriptsolution.blogspot.com/
  • Re: Getting error when deploying website in vs-2008

    10-28-2009, 4:21 AM
    Answer

    Hi,

    Did your website exist in sub directory under another website? Please make sure there is not two sections named 'system.web.extensions' in your web.config file and its inherited web.config.

    You also can publish it to another location to see whether it works?

    You also can 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.

    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.
  • Re: Getting error when deploying website in vs-2008

    10-28-2009, 4:54 AM
    • Contributor
      2,914 point Contributor
    • imran_khan
    • Member since 03-11-2008, 7:57 AM
    • Ahmedabad
    • Posts 572

    Hi.

    Thanks for your reply. I will follow your suggesion and forward results soon.

    regard

    Imrankhan


    Imrankhan
    -----------------------------------------------------
    Always remember to mark as answer on the post that helped you.

    My Blog :
    http://aspnet-solutions.blogspot.com/
    http://javascriptsolution.blogspot.com/
Page 1 of 1 (3 items)