ASP.NET 5 Error: the verb must be specified by using the -verb argument. Error count=1 - asp.net

I am pretty new to the .net and I had this error while trying to publish my website to file system.
Error: A '-dest' argument must be specified with the 'sync' verb. This error is shown when I try to publish in the default detination
Copying to output path C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103
Multiple commands defined. Defaulting to web.
Using command 'web' as the entry point for web.config.
Time elapsed 00:02:45.9471627
Publishing with publish method [FileSystem]
Publishing files to C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput
Executing command ["C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103\' -dest:contentPath='C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error: A '-dest' argument must be specified with the 'sync' verb.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.DNX.Publishing.targets(386,5): Error : Error count: 1.
I have searched for hours for an answer but nothing solved my problem.
Please help!

I think it's because there is an ' in your path name (or your username actually):
["C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:contentPath='C:\Users\Iulica'sPc\AppData\Local\Temp\PublishTemp\GpsTracking103\' -dest:contentPath='C:\Users\Iulica'sPc\Documents\Visual Studio 2015\Projects\GpsTracking\artifacts\bin\GpsTracking\Release\PublishOutput' -verb:sync -enableRule:DoNotDeleteRule -retryAttempts:2 -disablerule:BackupRule]
Try deploying to a different folder like c:\projects\ ad also the source path could be the issue.

Check the Important things to remember here: https://technet.microsoft.com/en-us/library/dd569005(v=ws.10).aspx
In order for the sync operation to function correctly, the Msdeploy.exe.configsettings file must be the same on the source and destination computers. If you add any rules or custom providers to the Msdeploy.exe.configsettings file, make sure that this configuration file is identical on the source and the destination computers before you perform a synchronization.

Related

ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable

I have an asp.net webform project that build on system1 but not on system2 (they both are windows 10 and visual studio 2022 Version 17.4.3) and when I build visual studio show an error in error list window :
"Severity Code Description Project File Line Suppression State
Error Metadata failure while creating assembly -- The file or directory is corrupted and unreadable. Modabber D:\BehsamanCode\Modabber\Modabber.Web\ALINK"
Also it shows this error in the output window :
"ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable"
I searched these errors and I enabled long path on windows10 and uncheck Sign the assembly but not work.
What should we do?
I don't know how but it resolved. I think system2 hard drive has a problem and after win10 repair it itself then restart windows the problem gone and project builded.

cannot create luminus project with sqlite and clojurescript support

I am trying to create a luminus project with sqlite and cljs support with this command:
lein new dbscript +sqlite +cljs
but I keep getting this error message all the time:
Failed to resolve version for dbscript:lein-template:jar:RELEASE: Could not find metadata dbscript:lein-template/maven-metadata.xml in local (/home/jonas/.m2/repository)
Failed to read artifact descriptor for dbscript:lein-template:jar:RELEASE
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Could not find template dbscript on the classpath.
and I cannot find any solution to this. Any suggestions?

BTDF error when targeting BounceAllBizTalkHosts (multi-server deployment)

I´m using BTDF v5.7 to deploy a BizTalk solution to BizTalk Server 2016. When deploying to our DEV environment (only one server) all goes well, but when we try to deploy to INT (two servers) it breaks on the second server (the one which have the "last server" flag set to true).
Checking logs I found this:
Target BounceAllBizTalkHosts:
Host list (BizTalkHosts ItemGroup) not customized.
Host instance ClusterdHost has cluster type Clustered.
Querying localhost to request active cluster node...
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : Invalid namespace
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at System.Management.ManagementScope.InitializeGuts(Object o)
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at System.Management.ManagementScope.Initialize()
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at System.Management.ManagementObjectSearcher.Initialize()
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at System.Management.ManagementObjectSearcher.Get()
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at DeploymentFramework.BuildTasks.ControlBizTalkHostInstance.GetActiveClusterNodeName()
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at DeploymentFramework.BuildTasks.ControlBizTalkHostInstance.ControlHostInstances(String query)
C:\Program Files (x86)\...\BizTalkDeploymentFramework.targets(1234,5): error : at DeploymentFramework.BuildTasks.ControlBizTalkHostInstance.Execute()
Done building target "BounceAllBizTalkHosts" in project "Deployment.btdfproj" -- FAILED.
I did a small research on the BTDF sources and it seems that GetActiveClusterNodeName() method is trying to access to the MSCluster namespace through WMI. Apparently it breaks because it`s not able to find it (it makes sense since servers are not configured as a MS FailOver Cluster).
Any idea about why BTDF is detecting this node as a clustered one?
PS: If we force servers to not restart, adding:
<TargetName="BounceBizTalk"DependsOnTargets="SetWinVer"/>
to .btdfprj, the issue doesn't happen. But we need to do a restart after deployment to apply changes :(

Azure Machine Learning Studio Custom Module Upload Error 0114 : An item with the same key has already been added

When trying to upload a custom R module to Azure Machine Learning Studio what causes the following error.
[ModuleOutput]
"ErrorId":"BuildCustomModuleFailed","ErrorCode":"0114","ExceptionType":"ModuleException","Message":"Error 0114: Custom module build failed with error(s): An item with the same key has already been added."}} [ModuleOutput] Error: Error 0114: Custom module build failed with error(s): An item with the same key has already been added.
I have tried renaming the module so a name that does not exists.
The duplicate key exception is a red herring. Build error 0114 is a general error that occurs if there is a system exception while building the custom module. The real issue my module was compressed using the built in compress folder option in the Mac Finder. To fix this compress the file using the command line interface for zip in Terminal in the following very specific manner.
The following example:
cd ScoredDatasetMetadata/
zip ScoredDatasetMetadata *
mv ScoredDatasetMetadata.zip ../
Builds a zip file with the correct file structure.

Windows Azure and GitHub: build error on web.config

I've created a new ASP.NET MVC 4 project using the HotTowel SPA template. I haven't changed very much as you can see in my GitHub repository. I've set up Windows Azure to take in the changes and deploy to hourlee.azurewebsites.net, but nothing happened.
When I check my dashboard, it seems something went wrong. Windows Azure is complaining about an error in my Web.Release.config file.
More specifically, this is the error message:
D:\home\site\repository\Hourly\Web.Release.config(1,1): error : Data at the root level is invalid. Line 1, position 1. [D:\home\site\repository\Hourly\Hourly.csproj]
Failed exitCode=1, command="D:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "D:\home\site\repository\Hourly\Hourly.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="C:\DWASFiles\Sites\hourlee\Temp\208c4975-46bc-4f4f-89d8-6ae54a5289d8";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release /p:SolutionDir="D:\home\site\repository\.\\"
An error has occurred during web site deployment.
It's repeated again (the entire message is longer).
I haven't changed anything in the web.config files and the whole thing builds and runs locally too.
I've noticed that it works when I remove the transform file (web.Debug.config and web.Release.config).

Resources