Deploy.bat got error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi,

I can't figure out what caused the errors. the log file doesn't seem to give me any clue (at my skill level). I made a lot of customisation on Nop 2.6. I am suspecting that my clean up job could make this mess. I removed a lot of packages including FluentValidation and installed newest version of the removed packages via nuget because of Nop 2.6 issues with FluentValidation.
prepare.bat runs without errors.
but deploy.bat got this log file below.
the log file says...
.........................................................................
...................upto here it is ok)....................................
  1>Done Building Project "D:\nop\nopCommerce_2.60_Source\build\nop.proj" (Plugin-CopyToWeb target(s)).
     1>Plugins-CopyToWeb:
         Copied plugins to D:\nop\nopCommerce_2.60_Source\build\..\Presentation\Nop.Web\Plugins
       Deploy:
         Removing directory "D:\nop\nopCommerce_2.60_Source\build\..\Deployable".
         Creating directory "D:\nop\nopCommerce_2.60_Source\build\..\Deployable".
         Creating directory "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60".
         Creating directory "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\Plugins\bin\".
     1>Project "D:\nop\nopCommerce_2.60_Source\build\nop.proj" (1) is building "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (22:5) on node 1 (ResolveReferences;_CopyWebApplication target(s)).
  22:5>Project "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (22:5) is building "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj" (12:91) on node 1 (default targets).
         Creating directory "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\".
  22:5>Project "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (22:5) is building "D:\nop\nopCommerce_2.60_Source\Libraries\Nop.Core\Nop.Core.csproj" (3:113) on node 2 (default targets).
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
     3>CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       _CopyFilesMarkedCopyLocal:
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\Autofac.2.6.3.862\lib\NET40\Autofac.Configuration.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Autofac.Configuration.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\Autofac.2.6.3.862\lib\NET40\Autofac.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Autofac.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\Autofac.Mvc3.2.6.3.862\lib\NET40\Autofac.Integration.Mvc.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Autofac.Integration.Mvc.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\Autofac.2.6.3.862\lib\NET40\Autofac.xml" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Autofac.xml".
       CopyFilesToOutputDirectory:
         Copying file from "obj\Release\Nop.Core.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Nop.Core.dll".
         Nop.Core -> D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\Nop.Core.dll
     3>Done Building Project "D:\nop\nopCommerce_2.60_Source\Libraries\Nop.Core\Nop.Core.csproj" (default targets).
  22:5>Project "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (22:5) is building "D:\nop\nopCommerce_2.60_Source\Libraries\Nop.Data\Nop.Data.csproj" (5:31) on node 3 (default targets).
       Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
     5>CoreCompile:
       Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
       _CopyFilesMarkedCopyLocal:
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\EntityFramework.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\Microsoft.SqlServer.Compact.4.0.8876.1\lib\net40\System.Data.SqlServerCe.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\System.Data.SqlServerCe.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\EntityFramework.SqlServerCompact.4.3.4\lib\net40\System.Data.SqlServerCe.Entity.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\System.Data.SqlServerCe.Entity.dll".
         Copying file from "D:\nop\nopCommerce_2.60_Source\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.xml" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\EntityFramework.xml".
       _CopyAppConfigFile:
         Copying file from "App.config" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Nop.Data.dll.config".
       CopyFilesToOutputDirectory:
         Copying file from "obj\Release\Nop.Data.dll" to "D:\nop\nopCommerce_2.60_Source\build\..\Deployable\nop_2.60\bin\Nop.Data.dll".
         Nop.Data -> D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\Nop.Data.dll
       PostBuildEvent:
         0 File(s) copied
         File not found - *.*
         File not found - *.*
         0 File(s) copied
     5>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073: The command "\r
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     if not exist "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86" md "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86"\r
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     xcopy /s /y "*Undefined*packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\x86\*.*" "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86"\r
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     if not exist "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64" md "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64"\r
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     xcopy /s /y "*Undefined*packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\amd64\*.*" "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64"" exited with code 4.
     5>Done Building Project "D:\nop\nopCommerce_2.60_Source\Libraries\Nop.Data\Nop.Data.csproj" (default targets) -- FAILED.
    12>Done Building Project "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj" (default targets) -- FAILED.
    22>Done Building Project "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (ResolveReferences;_CopyWebApplication target(s)) -- FAILED.
     1>Done Building Project "D:\nop\nopCommerce_2.60_Source\build\nop.proj" (Deploy target(s)) -- FAILED.

Build FAILED.

       "D:\nop\nopCommerce_2.60_Source\build\nop.proj" (Deploy target) (1) ->
       "D:\nop\nopCommerce_2.60_Source\Presentation\Nop.Web\Nop.Web.csproj" (ResolveReferences;_CopyWebApplication target) (22:5) ->
       "D:\nop\nopCommerce_2.60_Source\Libraries\Nop.Data\Nop.Data.csproj" (default target) (5:31) ->
       (PostBuildEvent target) ->
         C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073: The command "\r
       C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     if not exist "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86" md "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86"\r
       C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     xcopy /s /y "*Undefined*packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\x86\*.*" "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\x86"\r
       C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     if not exist "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64" md "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64"\r
       C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB3073:     xcopy /s /y "*Undefined*packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\amd64\*.*" "D:\nop\nopCommerce_2.60_Source\Deployable\nop_2.60\bin\amd64"" exited with code 4.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:04.60
11 years ago
It looks like you have removed the SQL Server Compact Package from the solution.

if you open up the solution in visual studio, then right click on the Nop.Web project. select "unload project".

Once the project is unloaded, you can right click on the project again and select "edit Nop.Web.csproj".

way down at the bottom of the file, you will find the postbuildevent tag. It should look something like this:

<PostBuildEvent>
    if not exist "$(TargetDir)x86" md "$(TargetDir)x86"
    xcopy /s /y "$(SolutionDir)packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\x86\*.*" "$(TargetDir)x86"
    if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64"
    xcopy /s /y "$(SolutionDir)packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"</PostBuildEvent>


all you have to do is delete the text between the tags to make it look like this:

<PostBuildEvent>
</PostBuildEvent>

save the file, reload the solution and it should now build.

Hope this helps.
11 years ago
Thanks. But my there is no entries between the two tag in my nop.web project file as shown below.

<PropertyGroup>
    <PostBuildEvent>    
    </PostBuildEvent>
  </PropertyGroup>


I can't figure out what is causing and I am copying custom codes to Nop65 and want to have a look at it if it works. Original Nop 2.6 and 2.65 works (prepare.bat and deploy.bat) without any problem.
11 years ago
mnivers wrote:
It looks like you have removed the SQL Server Compact Package from the solution.

if you open up the solution in visual studio, then right click on the Nop.Web project. select "unload project".

Once the project is unloaded, you can right click on the project again and select "edit Nop.Web.csproj".

way down at the bottom of the file, you will find the postbuildevent tag. It should look something like this:

<PostBuildEvent>
    if not exist "$(TargetDir)x86" md "$(TargetDir)x86"
    xcopy /s /y "$(SolutionDir)packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\x86\*.*" "$(TargetDir)x86"
    if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64"
    xcopy /s /y "$(SolutionDir)packages\Microsoft.SqlServer.Compact.4.0.8876.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"</PostBuildEvent>


all you have to do is delete the text between the tags to make it look like this:

<PostBuildEvent>
</PostBuildEvent>

save the file, reload the solution and it should now build.

Hope this helps.


Thanks! ... really useful! I've got the same problem ... nopcommerce ver 2.7 + mssql 2012 + vs2012  :)
9 years ago
hi
i am working in nopcommmerce 2.6 in VB 12  and get the following error and exception

Error  14  Unable to find version '2.0.21' of package 'LinqToFacebook'.  Nop.Plugin.ExternalAuth.Facebook


Error  15  The command ""D:\zafar\nopCommerce_2.60_Source\.nuget\NuGet.exe" install "D:\zafar\nopCommerce_2.60_Source\Plugins\Nop.Plugin.ExternalAuth.Facebook\packages.config" -source ""  -NonInteractive -RequireConsent -solutionDir "D:\zafar\nopCommerce_2.60_Source\ "" exited with code 1.  Nop.Plugin.ExternalAuth.Facebook


output list

1>------ Build started: Project: Nop.Admin, Configuration: Debug Any CPU ------
2>------ Build started: Project: Nop.Web, Configuration: Debug Any CPU ------
1>  Restoring NuGet packages...
1>  To prevent NuGet from downloading packages during build, open the Visual Stud
1>  io Options dialog, click on the Package Manager node and uncheck 'Allow NuGet
1>   to download missing packages'.
1>  All packages listed in packages.config are already installed.
1>  Nop.Admin -> D:\zafar\nopCommerce_2.60_Source\Presentation\Nop.Web\bin\Nop.Ad
1>  min.dll
2>  Restoring NuGet packages...
2>  To prevent NuGet from downloading packages during build, open the Visual Stud
2>  io Options dialog, click on the Package Manager node and uncheck 'Allow NuGet
2>   to download missing packages'.
2>  All packages listed in packages.config are already installed.
2>  Nop.Web -> D:\zafar\nopCommerce_2.60_Source\Presentation\Nop.Web\bin\Nop.Web.
2>  dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlceca40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlcecompact40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlceer40EN.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlceme40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlceqp40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\sqlcese40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\Microsoft.VC90.CRT\msvcr90.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\x86\Microsoft.VC90.CRT\README_ENU.txt
2>  9 File(s) copied
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlceca40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlcecompact40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlceer40EN.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlceme40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlceqp40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\sqlcese40.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\Microsoft.VC90.CRT\msvcr90.dll
2>  D:\zafar\nopCommerce_2.60_Source\packages\SqlServerCompact.4.0.8852.1\NativeB
2>  inaries\amd64\Microsoft.VC90.CRT\README_ENU.txt
2>  9 File(s) copied
3>------ Build started: Project: Nop.Plugin.ExternalAuth.OpenId, Configuration: Debug Any CPU ------
4>------ Build started: Project: Nop.Plugin.ExternalAuth.Twitter, Configuration: Debug Any CPU ------
4>  Restoring NuGet packages...
4>  To prevent NuGet from downloading packages during build, open the Visual Stud
4>  io Options dialog, click on the Package Manager node and uncheck 'Allow NuGet
4>   to download missing packages'.
4>  All packages listed in packages.config are already installed.
4>  Nop.Plugin.ExternalAuth.Twitter -> D:\zafar\nopCommerce_2.60_Source\Presentat
4>  ion\Nop.Web\Plugins\ExternalAuth.Twitter\Nop.Plugin.ExternalAuth.Twitter.dll
5>------ Build started: Project: Nop.Plugin.ExternalAuth.Facebook, Configuration: Debug Any CPU ------
3>  Restoring NuGet packages...
3>  To prevent NuGet from downloading packages during build, open the Visual Stud
3>  io Options dialog, click on the Package Manager node and uncheck 'Allow NuGet
3>   to download missing packages'.
3>  All packages listed in packages.config are already installed.
3>  Nop.Plugin.ExternalAuth.OpenId -> D:\zafar\nopCommerce_2.60_Source\Presentati
3>  on\Nop.Web\Plugins\ExternalAuth.OpenId\Nop.Plugin.ExternalAuth.OpenId.dll
6>------ Build started: Project: Nop.Plugin.Misc.WebServices, Configuration: Debug Any CPU ------
6>  Nop.Plugin.Misc.WebServices -> D:\zafar\nopCommerce_2.60_Source\Presentation\
6>  Nop.Web\Plugins\Misc.WebServices\Nop.Plugin.Misc.WebServices.dll
5>  Restoring NuGet packages...
5>  To prevent NuGet from downloading packages during build, open the Visual Stud
5>  io Options dialog, click on the Package Manager node and uncheck 'Allow NuGet
5>   to download missing packages'.
5>D:\zafar\nopCommerce_2.60_Source\.nuget\NuGet.targets(100,9): error : Unable to
5> find version '2.0.21' of package 'LinqToFacebook'.
5>D:\zafar\nopCommerce_2.60_Source\.nuget\NuGet.targets(100,9): error MSB3073: Th
5>e command ""D:\zafar\nopCommerce_2.60_Source\.nuget\NuGet.exe" install "D:\zafa
5>r\nopCommerce_2.60_Source\Plugins\Nop.Plugin.ExternalAuth.Facebook\packages.con
5>fig" -source ""  -NonInteractive -RequireConsent -solutionDir "D:\zafar\nopComm
5>erce_2.60_Source\ "" exited with code 1.
========== Build: 5 succeeded, 1 failed, 47 up-to-date, 0 skipped ==========

when i comment inside nop.plugin.externalAuth.facebook  < package.config< comment this line  <package id="LinqToFacebook" version="2.0.21" />

then getting exception

Operation could destabilize the runtime.
Exception Details: System.Security.VerificationException: Operation could destabilize the runtime.

Line 7:      public class InstallValidator : AbstractValidator<InstallModel>
Line 8:      {
Line 9:       public InstallValidator(IInstallationLocalizationService locService)
Line 10:         {
Line 11:             RuleFor(x => x.AdminEmail).NotEmpty().WithMessage(locService.GetResource("AdminEmailRequired"));


Help me out
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.