Can't to DebugDeploy the solution

Nov 6, 2009 at 1:17 AM

I can DebugBuild the solution successfully,but when i DebugDeploy the solution,and i Compile the solution,the error message is:

Warning 1 Command“"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o addsolution -filename DeploymentFiles\Adalovelacer.WebPartTest.wsp”exited with code -1.

error 2 Command“"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o deploysolution -name Adalovelacer.WebPartTest.wsp -immediate -allowgacdeployment -url http://litwareinc.com -force”exited with code -1. 


I has changed the DebugDeploy section of Microsoft.SharePoint.targets:

<Exec Command="$(STSADM) -o deploysolution -name $(PackageName) -immediate -allowgacdeployment -allcontenturls" />

with

<Exec Command="$(STSADM) -o deploysolution -name $(PackageName) -immediate -allowgacdeployment -url $(TargetUrl) -force" />

Why the error still occurs?