Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all 663 articles
Browse latest View live

IIS 7.0 to IIS 7.5 Migration (32 bit to 64 bit) - Error when it hits machineConfig32

$
0
0

On the source Windows Server 2008 32 Bit server we run the command:

msdeploy -verb:sync -source:webServer -dest:archiveDir=E:\exportedfiles,encryptPassword=somepass

 

All files from  E:\exportedfiles on the source are then copied over to the destination server to the same folder

 

Then, on the destination Windows Server 2008 R2 64 Bit server, we run the command

 msdeploy -verb:sync -source:archiveDir=E:\exportedfiles,encryptPassword=somepass -dest:auto

 

It imports all the files but crashes out during the final stage of the configuration import at the machineConfig32 with the following error:

 

Info: Deleting system.serviceModel (MSDeploy.webServer/webServer/machineConfig32
[@path='/']/location[@path='']/system.serviceModel).
Error: Invalid index. (Exception from HRESULT: 0x80070585)
Error count: 1.

 

If the -debug switch is used the output is:

[@path='/']/location[@path='']/system.serviceModel).
System.Runtime.InteropServices.COMException (0x80070585): Invalid index. (Except ion from HRESULT: 0x80070585) at Microsoft.Web.Deployment.IAppHostElement.GetPropertyByName(String bstrSubName) at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateObjectEntryIfNeccessary(IAppHostElement sectionElement, SectionEntries entries)
   at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateSectionEntriesIfNeccessary(IAppHostConfigLocation location, LocationSectionEntries locSecEntries)
   at Microsoft.Web.Deployment.CrossPlatformRuleHandler.UpdateNativeModulesIfNeccessary(AdminManagerWrapper wrapper)
   at Microsoft.Web.Deployment.CrossPlatformRuleHandler.PostSync(DeploymentSyncContext syncContext)
   at Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
   at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObjectdestObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable)
   at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
   at MSDeploy.MSDeploy.ExecuteWorker()
Error count: 1.

 

 

Going from a 32bit 2008 IIS 7.0 server to another 32bit 2008 IIS 7.0 server this works fine. The problem is going to a 64 bit 2008 R2 IIS 7.5 server.

 

Any ideas?

 


MSDeploy - setAcl for IIS_IUSRS on the system Temp location

$
0
0

Hi,

 As part of my first web deploy run I need to grant read and write permissions to the system Temp location to the IIS_IUSRS group.   There is a system variable declared %TEMP%; but unfortunately there is also a user variable by the same name.

As a result, when I run the command "C:\Program Files\IIS\Microsoft Web Deploy V2>msdeploy -verb:sync -source:setacl -dest:setacl=%TEMP%,setAclUser="IIS_IUSRS",setAclAccess=Write" the IIS_IUSRS group is granted write permissions defined in the user's %TEMP% location, and not the system %Temp% location.

 One solution I explored was to reference the temp directory at %windir%\TEMP, but there's a good chance that the system %TEMP% variable that IIS references will not be set to that location in all instances.

 Has anyone tried to do this previously, or think of a method of referencing the system variables rather than the user variables?

 Thanks,
Alan

msdeploy sync fails when triggered from scheduled task

$
0
0

Greetings,

On Windows Server 2008 R2, msdeploy is successful when run from batch file invoked from command line by user x but fails when run from scheduled task configured to run as same user x (Run whether user is logged on or not, Run with highest privileges", "Windows 7, Windows Server 2008R2".).  Task completes with return code 4294967295.  Here is the contents of the .bat:

c:
cd "C:\Program Files\IIS\Microsoft Web Deploy V3\"
msdeploy.exe -verb:sync -source:dirPath=\\csmwebdev01\d$\inetpub\cityroot -dest:dirPath=\\csmwebprod\e$\inetpub\cityroot,computerName=csmwebprod,getCredentials=csmwebprod -skip:objectName=dirPath,absolutePath=_vti_pvt -skip:objectName=dirPath,absolutePath=_vti_cnf  -skip:objectName=dirPath,absolutePath=\\cityroot\\cityclerk\\council    -skip:objectName=dirPath,absolutePath=-donotpublish -debug > output.log

When triggered from scheduled task, output.log is empty. 

Any advice would be greatly appreciated.

MSDEPLOY : error : The parameter 'IIS Web Application Name' has already been defined.

$
0
0

I have been working on trying to create an automated build that also deploys the web app to the dev server.  I was having an issue getting MSBUILD to call MSDEPLOY, moving off of Windows 7 and onto a Server2008R2 server fixed that issue.  Now when I queue the build on the build server I recieve the following build error:

MSDEPLOY : error : The parameter 'IIS Web Application Name' has already been defined.

I have searched the MSDN forums and foound no hits on the above, Googlew is likewise silent on the issue.  I suspect that the issue is project configuration and not build configuration but I am completely in the dark on this issue.  Up until 3 montha ago I was an Oracle SQL developer now I'm a .NET web services developer and am not sure where to look for an answer.  The log file may be viewed here:

"https://skydrive.live.com/embed?cid=FFF11D189C0B5FA6&resid=FFF11D189C0B5FA6%21112&authkey=AJYdQZDieyPU9HE"

The error is at line 21904 in the log file.
Visual Studio 2012, TFS 2010.

Thank you in advance,

Roy.

webdeploy cmd line and delegation

$
0
0

Hi all, I spent some time trying to understand how to trigger a command line msdeploy to a remote iis configured for delegation.

Could you kindly paste me an example?

 

Regards

 

Marco

how to parametrize the connection strings

$
0
0

Hi all, I need to create a package with msdeploy where during deployment time (on IIS) I will customize the connection strings.

What is the parameter name that I have to parametrize from iis? 

Where can I find some official documentation (no blogs please..)?

 

Regards 

Combination and minification of javascript files

$
0
0

Hello,

We are trying to switch from a relatively manual deployment to automated web deploys with TFS.  Our old process had a proj file that did the build, ran some tests (jsLint), combined some .js files, performed minification, and then robocopied the resulting files.  The new process is creating a site, but the javascript operations (jsLint, combine, minify) aren't being performed.  We don't want to have to add the output artifacts to the solution or source control, nor do we want to remove the raw javascript files from the solution.

I think that the javascript operations should happen post-build, but before the drop package is created.  That seems like it makes sense.  Is that supported?  How can I insert logic to generically perform those actions?  Is there an example or documentation on how to do that?

If not, what is the 'standard' way of handling javascript combination and minification during a TFS web deploy?

Thanks,

Brian

 

how to deploy website in remote machine in IIS 7.0

$
0
0

hello IIS experts,

I want to deploy one application in remote machine from my server using IIS Manager.How can I do that?can any one help it is helpful.

Thanks and Regards

Muralikrishna


Microsoft Deployment Tool USB Stick

$
0
0

Hello everyone,

I foundthe following instructionson the internetto installmultiple operating systemsfrom a USBstick:
http://www.com-magazin.de/praxis/win...ick-66272.html

I wentcompletely according to the instructions,the following problemoccurs:
WhenI bootfrom the USB stick,comes theselection screenif I want toinstall32or64bit,then I clickonone ofthe two.Then thebackgroundfrom MDTcomewhere there shouldbethe choice of operating systems.After about 10-20seconds, itsimply reboots.

Does anyone havean idea tohow I can getthe problemunder control?
My guessis that the MDTis looking for anetworkpath thatdoes not find it and thenrestarts?

Thanks in advance

Greetings

thimo



Auf deutsch:

Hallo Ihr Lieben,

ich hab im Internet folgende Anleitung gefunden, um mehrere Betriebssysteme von einem USB-Stick aus zu installieren:
http://www.com-magazin.de/praxis/win...ick-66272.html

Ich bin komplett nach der Anleitung gegangen, folgendes Problem tritt auf:
Wenn ich vom USB-Stick boote, kommt der Auswahlbildschirm, ob ich 32 oder 64 Bit installieren will, dann klicke ich eins von beiden an. Dann kommt der Hintergrund vom MDT wo eigentlich die Auswahl der Betriebssysteme stehen sollte. Nach ca. 10-20 Sekunden startet er einfach neu.

Hat jemand dazu eine Idee, wie ich das Problem in den Griff bekomme?
Meine Vermutung ist, dass das MDT nach einem Netzwerkpfad sucht, den es nicht findet und dann neu startet?!

Vielen Dank im Voraus

Liebe Grüße

Thimo

msdeploy command line site=, sitename gets removed!!!

$
0
0

I'm trying to use ProjectName.deploy.cmd to publish my website and here's my command:

MyProject.deploy.cmd /T /M:https://mydomain.com:8172/MsDeploy.axd?site=my_website_name /A:Basic /U:username /P:password "-skip:objectname='filePath',absolutepath='app_offline.htm' -allowUntrusted=true"

This should work I suppose but here's what I get when deploy.cmd runs:

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package='C:\...\myproject.zip' -dest:auto,computerName="https://mydomain.com:8172/MsDeploy.axd?site",userName=....."

Notice ?site" -> it must be ?site=my_website_name !!!!!!!!!! Obviously, I get ERROR_USER_ANAUTHORIZED !!!

Am I missing something here?

dbFullSql Provider, drop script

$
0
0

Hi

I am using the sbFullSql provider to create a drop script as follows:

msdeploy.exe -verb:sync -source:dbFullSql="Data Source=MyServer\MyDb;Initial Catalog=MyCatalog;Integrated Security=True;",ScriptData=false,ScriptDrops=true,ScriptSchema=true -dest:dbFullSql=C:\temp\script.sql

This generates a script which includes drop constraints..., drop tables... and also the drop user:

DROP USER [MyDomain\MyAdGroup]

Is there a way through skip rules or anything else to avoid the generation of the DROP USER statement? 

Many thanks

Renaming a Remote File

$
0
0

We're deploying to a farm and need to take the application offline for a particular maintenance because of some longer running back-end changes.  I'm looking to script the offline/online step using MSDeploy.exe but I can't seem to get it running in the test environment:

msdeploy.exe
-verb:sync
-source:contentPath='"My Site/App_Offline.htm.deploy",computername=https://WebNodeA:8172/MSDeploy.axd?Site=My+Site'
-dest:contentPath='"My Site/App_Offline.htm",computername=https://WebNodeA:8172/MSDeploy.axd?Site=My+Site'
-enableRule:DoNotDeleteRule
-verbose

The errors are as follows:

Error: The metabase path 'My Site",computername=https://WebNodeA:8172/MSDeploy.axd?Site=My+Site' is not supported. Paths must be of the format '/lm/w3svc/<siteid>/ROOT/...'.
Error: The metabase key '/My Site",computername=https:/root/WebNodeA:8172/MSDeploy.axd?Site=My+Site' could not be found.
Error: Unable to access the IIS configuration system. Please make sure you haveIIS 7 (or later) installed.
Error: Retrieving the COM class factory for component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). Error count: 1.


Any thoughts on how to best accomplish this?  Destination is IIS 7.5 with WebDepoy 3.0

ASP Classic

$
0
0

Hello.

I like to know how i can open one url as explorer and get all cookies (all mean javascript cookies).

I try o open with WinHTTP but i get only "local" cookies without cookies created javascript.

Msdeploy.exe hanging on TeamCity

$
0
0

We are having trouble with msdelploy.exe hanging on our TeamCity CI server. It basically hangs indefinitely. Here is the thread dump from TeamCity:

Process is running under CLR version: v4.0.30319


Thread id=5764
M--&gt;U
[IL Method without Metadata]
at System.Net.Sockets.Socket.Receive(System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.Sockets.SocketError&amp; errorCode)
at System.Net.Sockets.NetworkStream.Read(System.Byte[] buffer, System.Int32 offset, System.Int32 size)
at System.Net.FixedSizeReader.ReadPacket(System.Byte[] buffer, System.Int32 offset, System.Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Net.AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Net.AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(System.Byte[] buffer, System.Int32 offset, System.Int32 count, System.Net.AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(System.Byte[] buffer, System.Int32 offset, System.Int32 size)
at System.Net.PooledStream.Read(System.Byte[] buffer, System.Int32 offset, System.Int32 size)
at System.Net.Connection.SyncRead(System.Net.HttpWebRequest request, System.Boolean userRetrievedStream, System.Boolean probeRead)
at System.Net.ConnectStream.ProcessWriteCallDone(System.Net.ConnectionReturnResult returnResult)
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Web.Deployment.AgentClientProvider.GetHttpResponse(System.Net.HttpWebRequest request)
at Microsoft.Web.Deployment.AgentClientProvider.RemoteDestSync(Microsoft.Web.Deployment.DeploymentObject sourceObject, Microsoft.Web.Deployment.DeploymentSyncContext syncContext, System.Nullable&lt;System.Int32&gt; syncPass)
at Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(Microsoft.Web.Deployment.DeploymentObject destObject, Microsoft.Web.Deployment.DeploymentSyncOptions syncOptions, Microsoft.Web.Deployment.PayloadTable payloadTable, Microsoft.Web.Deployment.ContentRootTable contentRootTable, System.Nullable&lt;System.Int32&gt; syncPassId)
at Microsoft.Web.Deployment.DeploymentObject.SyncTo(Microsoft.Web.Deployment.DeploymentProviderOptions providerOptions, Microsoft.Web.Deployment.DeploymentBaseOptions baseOptions, Microsoft.Web.Deployment.DeploymentSyncOptions syncOptions)
at MSDeploy.MSDeploy.HandleAuxillarySync(System.String syncType, System.Collections.Generic.Dictionary&lt;System.String, System.String&gt; sourceParameters, Microsoft.Web.Deployment.DeploymentBaseOptions destBaseOptions)
at MSDeploy.MSDeploy.ExecuteWorker()
at MSDeploy.MSDeploy.Execute()
at MSDeploy.MSDeploy.Main(System.String[] unusedArgs)


Thread id=1292
U--&gt;M


Thread id=1288
at Microsoft.Web.Deployment.PackageSerializerKeepAliveTable.KeepAliveThread()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
at System.Threading.ThreadHelper.ThreadStart()
U--&gt;M

We invoke msdeploy in the following fashion:

C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe -verb:sync -source:dirPath="C:\Solution\Reporting\" -dest:computerName=MYSERVER?site=services,userName=USERNAME,password=PASSWORD,authType=basic,dirPath="C:\Services\" -allowUntrusted -postSync:runCommand="C:\Solution\Deploy\PostSync.cmd",waitInterval=300000

The PostSync.cmd looks like this (where TeamCity is simply a param we pass to our .ps1 script):

powershell -inputformat none -ExecutionPolicy Unrestricted -noninteractive c:\services\Deploy\CreateSSISCatalog.ps1 TeamCity
exit /B %ERRORLEVEL%
<div>The build step appears to run just fine and we get this output in our build log:</div><div>
[00:58:03][Step 4/6] 
[00:58:03][Step 4/6] Info: C:\Windows\system32>
[00:58:03][Step 4/6] Info: exit
[00:58:03][Step 4/6] Info:  /B 0 
[00:58:03][Step 4/6] Info: 
[00:58:03][Step 4/6] 
[00:58:03][Step 4/6] Warning: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x0'.
[09:29:45][Step 4/6] Process exited with code 1
[09:29:45][Step 4/6] Step Deploy SSIS (Command Line) interrupted
But as you can see it has hung for 8 hours and we have to kill it manually. Strange thing is the PostSync.cmd batch file output appears to have completed, yet msdeploy.exe is still waiting on something.</div> <div></div>

msdeploy reports invalid path - why?

$
0
0

Here is the script we "run as" administrator:

net use I: \\csmwebp\e$\inetpub\cityroot 1>>c:\temp\testing\test2.txt 2>>&1

net use J: \\csmwebd\cityroot 1>>c:\temp\testing\test2.txt 2>>&1

net use J: 1>>c:\temp\testing\test2.txt 2>>&1

msdeploy.exe -verb:sync -source:dirPath=J: -dest:dirPath=I:,getCredentials=csmwebp -skip:objectName=dirPath,absolutePath=_vti_pvt -skip:objectName=dirPath,absolutePath=_vti_cnf  -skip:objectName=dirPath,absolutePath=\\cityroot\\cityclerk\\council -skip:objectName=dirPath,absolutePath=-donotpublish 1>>c:\temp\testing\test2.txt 2>>&1

net use I: /delete 1>>c:\temp\testing\test2.txt 2>>&1

net use J: /delete 1>>c:\temp\testing\test2.txt 2>>&1

Here are the contents of C:\temp\testing\test2.txt (my comments in italics):

The command completed successfully. -- net use I: \\csmwebp\e$\inetpub\cityroot was successful

The command completed successfully. -- net use J: \\csmwebd\cityroot was successful

Local name        J:

Remote name       \\csmwebdev01\cityroot

Resource type     Disk

Status            OK

 # Opens           0

 # Connections     1

The command completed successfully.

Error: Object of type 'dirPath' and path 'J:' cannot be created. Error: File system path 'J:' is not valid. Only absolute paths are supported. Error count: 1.

 I: was deleted successfully.

J: was deleted successfully.

Please advise, why is J: considered invalid?

Thank you,

Roslyn Wythe


command-line webdeploy to one server from several with parametrization

$
0
0

Hello,

looked over forum threads and msdn articles but didn't found one clear solution to for my task.

I got 3 web server:

- Server Web1

- Server Web2

- and backup server WebBackup

All 3 server are running IIS7.5 with a set of different sites.

I want to fully syncronize Web1 and Web2 sites to WebBackup on a daily basis. It is also needed to alter connection strings hardcoded in every site's web.config with own values(as the server name is changed) and to change the user used to authorize every website in IIS.

MSSQL databases are mirrored so there is no need to transfer them every sync iteration.

And now i'm stuck with keeping the backup of 2 servers simultaneously. I mean after every sync process WebBackup's IIS contain only the sites from last syncronization and deleting the other sites.

Is it possible at all to backup two different IISes onto one?

As the sites' list is varying from time to time i'm not enumeration all the websites and doing a full copy like:

msdeploy.exe -verb:sync -dest:appPoolconfig -source:appPoolConfig,computerName={IP},username={username},password={pass},authType=NTLM > pool.syncing.log
C:\"Program Files\IIS\Microsoft Web Deploy V3"\msdeploy.exe -verb:sync -dest:appHostconfig -source:appHostConfig,computerName={IP},username={username},password={pass} > host.syncing.log

After this i didn't found a suitable cmd-line webdeploy manual to perform connection string alteration inside the transferred file. Is this also possible to do?

p.s. If it is not best way to backup web server please advice me a better way. Your help is very appreciated, thank you in advance!

msdeploy change site name when running the {project}.deploy.cmd

$
0
0

when deploying with batch file, is there an easy way to pass the sitename to the script? I mean when deploying to multiple sites with some sites having different name. we try to use one package for all sites. currently I am using a batch file to replace the site name in the parameters xml file.

force update for certain files

$
0
0

with msdeploy, it only update the files that are changed (base on the modification date or something), I have some crystal report files in a project that are not getting updated. any flag to force the update?

 ok, here's a question for the forum moderator, is there a way to take the question back? seriously.

IIS backup not working

$
0
0

Im using Teamcity to build and deploy a website, all works very well, as soon as teamcity detects a commit, its built and deployed via webdeploy to my qa website. What I need to do now is to backup the existing site before the new site is deployed. Ive setup the configuration editor in IIS

continueSyncOnBackupFailure True

enabled True

turnedOn True

I also publish as a package which creates a .zip file in the apprporiate directory. The deployment and package creation process works perfectly, but no backup is ever created. Do I need to add a parameter to the MSBuild step in Teamcity ? Isnt is supposed to backup automatically if its activated on the webserver ? I cant see why its not happening


ive run this command

msdeploy -verb:dump -source:backupSettings="Default Web Site/mywebsite",computerName="computername",userName="user",password="password"

and it shows the correct flags set (enabled and turnedon)

and this command

msdeploy -verb:dump -source:backupManager="Default Web Site/mywebsite",computerName="computername",userName="user",password="password"

but I get no zip file listed, are there any steps im missing ? can anyone see where Im going wrong ?

Future of MS Deploy

$
0
0

The current version of MS Deploy is about a year old.  What is the future of this tool is it going to be?  We currently use it at my company and I am curious if it is going to be discontinued or will continue to be updated.

Thanks
Joshua

Viewing all 663 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>