Hello,
I am currently working on a deployment web app, which wraps msdeploy. I have run successfully from my local machine. However, when deployed to our dev server, the deployment app doesn't work. Files are not copied and I get the following event log entry:
Event Type: Error
Event Source: Application Error
Event Category: (100)
Event ID: 1000
Date: 12/1/2008
Time: 4:48:23 PM
User: N/A
Computer: DWEBAPP01.xxxx.Com
Description:
Faulting application msdeploy.exe, version 7.1.300.0, faulting module 490650db, version KERNEL32.dll, fault address 0x6.0.6001.18000.
I'm using IIS7 on our dev server (running Windows Server 2008), and my web development is using VS2008. In my deployment web app, I create a process and start it, using the following code:
mDeployProcess = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = cDeployCommandPath,
Arguments = DeployParameters(),
UseShellExecute = false,
CreateNoWindow = true,
UserName = cBuilder,
Password = GetSecurePassword(cBuilderPassword)
}
};
mDeployProcess.Start();
The FileName parameter points to msdeploy.exe, and the Arguments parameter ends up as follows:
-verb:sync -source:contentPath=\\builderpc\TeamCityBuildArtifacts\xxx.EnterpriseServices\xxx.EnterpriseServices_Release\405\ -dest:contentPath=\\dwebapp01\c$\inetpub\wwwroot\xxx.EnterpriseServices,computerName=DWEBAPP01,username=builder,password=builder
I can run msdeploy from a command prompt on the dev server using these parameters successfully, if I select "Run as administrator" when opening the command prompt. How do I make my web app run msdeploy as an administrator? I've read some posts about the need to use elevated privileges, but I don't know how to do this, or even if that is the correct solution. Any help much appreciated.
Thanks,
Dean