Note that there are some explanatory texts on larger screens.

plurals
  1. POOrchard 1.7 publish error: The "MSBuild.Orchard.Tasks.XmlDelete" task could not be loaded from the assembly
    text
    copied!<p>I have a local Orchard 1.7 cms site, which i have customized and so forth. My task is now to publish my site to my host(arvixe.com) through Visual Studio Ultimate 2012 - via the publish option. But the publish fails and i get this error: </p> <pre><code>Error 1 The "MSBuild.Orchard.Tasks.XmlDelete" task could not be loaded from the assembly C:\Users\WilliamHolm\Documents\Visual Studio 2012\Projects\whj\src\Orchard.Web\..\Tools\MSBuild.Orchard.Tasks\bin\Release\MSBuild.Orchard.Tasks.dll. Could not load file or assembly 'file:///C:\Users\WilliamHolm\Documents\Visual Studio 2012\Projects\whj\src\Tools\MSBuild.Orchard.Tasks\bin\Release\MSBuild.Orchard.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the &lt;UsingTask&gt; declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. C:\Users\WilliamHolm\Documents\Visual Studio 2012\Projects\whj\src\Orchard.Web\Orchard.Web.csproj 247 5 Orchard.Web </code></pre> <p>by looking at the source where the error is located around line 247, in the Orchard.Web.csproj, it looks like this:</p> <pre><code>&lt;/Target&gt; &lt;Import Project="$(ProjectDir)..\..\lib\msbuild\MSBuild.Community.Tasks.Targets" /&gt; &lt;UsingTask AssemblyFile="$(ProjectDir)..\Tools\MSBuild.Orchard.Tasks\bin\Release\MSBuild.Orchard.Tasks.dll" TaskName="MSBuild.Orchard.Tasks.XmlDelete" /&gt; &lt;Target Name="ProcessConfigurationFiles" AfterTargets="CopyAllFilesToSingleFolderForMsdeploy"&gt; &lt;PropertyGroup&gt; &lt;PackageTmp&gt;$(ProjectDir)obj\Release\Package\PackageTmp&lt;/PackageTmp&gt; &lt;/PropertyGroup&gt; &lt;!-- extra processing of the staged config files --&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\web.config" XPath="/configuration/system.web/compilation/@debug" Value="false" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\web.config" XPath="/configuration/system.web/trust" /&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\web.config" XPath="/configuration/system.web/machineKey/@validationKey" Value="AutoGenerate" /&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\web.config" XPath="/configuration/system.web/machineKey/@decryptionKey" Value="AutoGenerate" /&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/appender/immediateFlush/@value" Value="false" /&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/logger/priority/@value" Value="ERROR" /&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/root/priority/@value" Value="ERROR" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/appender[@name='debug-file']" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/appender[@name='debugger']" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/appender[@name='error-file']/filter" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/logger[@name='Orchard.Localization']" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/logger[@name='Orchard']" /&gt; &lt;XmlDelete XmlFileName="$(PackageTmp)\Config\log4net.config" XPath="/log4net/root/appender-ref[@ref='debug-file']" /&gt; &lt;!-- disable all file monitoring but ExtensionMonitoringCorrdinator to detect new modules/themes --&gt; &lt;XmlUpdate XmlFileName="$(PackageTmp)\Config\HostComponents.config" XPath="/HostComponents/Components/Component/Properties/Property[@Name='DisableMonitoring']/@Value" Value="true" /&gt; &lt;/Target&gt; </code></pre> <p>The closest ting i can find on this, is this thread: </p> <p><a href="http://orchard.codeplex.com/workitem/19688" rel="nofollow">http://orchard.codeplex.com/workitem/19688</a></p> <p>and i have tried those advices, but it keeps failing.</p> <p>Does anyone have a solution for this? </p> <p>THX in advance.</p> <p>/Will.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload