I am uploading the application to windows Azure using the powershell Script
New-AzureDeployment-ServiceName $servicename -LabelMySite-Slot"Staging"-Package"C:\Users\ronak\Documents\Visual Studio 2012\Projects\samplewebrole\samplewebrole\bin\Release\app.publish\samplewebrole.cspkg"-Configuration"C:\Users\ronak\Documents\Visual Studio 2012\Projects\samplewebrole\samplewebrole\bin\Release\app.publish\ServiceConfiguration.Cloud.cscfg"
When I run this I receive an error as follows
New-AzureDeployment:Unable to write data to the transport connection:An
existing connection was forcibly closed by the remote host.At line:14char:1+New-AzureDeployment-ServiceName $servicename -LabelMySite-Slot"Staging"-Pac...+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+CategoryInfo:CloseError:(:)[New-AzureDeployment],StorageException+FullyQualifiedErrorId:Microsoft.WindowsAzure.Management.ServiceManagement.HostedServices.NewAzureDeploymentCommand
on my local machine but when i run this on a virtual machine this script runs fine why is this happening.