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

Migration error Enum

$
0
0

After running


msdeploy -verb:sync -dest:apphostconfig="website", -source:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

Error: Enum must be oneof LocalSystem, LocalService, NetworkService, SpecificUser..

Error count: 1

I'm I missing a command?


How can I set parameters that include the parameterValidation Element for Visual Studio 2010 Web Application Project package creation

$
0
0

I have a parameter that I wish to enable as a drop down list. When I add the following to the parameters.xml file within a Web Deployment Tool package a drop down list appears:

  <parameter name="SelectList" description="Select the value.">
    <parameterValidation type="Enumeration" validationString="value1,value2" />
    <parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
  </parameter>

 When this parameter is added to the Web Publishing Pipeline used by Visual Studio 2010 to create the package the following appears in the paramaters.xml file:

   <parameter name="SelectList" description="Select the value." defaultValue="">
    <parameterEntry kind="TextFile" scope="\\textfile.config$" match="PlaceHolderForSelectList" />
  </parameter>

 Notice that the <parameterValidation> element is not added.

The MsDeployDeclareParameters only seems to support the following:

<MsDeployDeclareParameters Include="ParameterName">

     <Kind></Kind>

     <Scope></Scope>

     <Match></Match>

     <Description></Description>

     <DefaultValue></DefaultValue>

     <Tags></Tags>

</MsDeployDeclareParameters>

So is there any way to add the parameterValidation entries?

Providing empty parameter values

$
0
0

I have an appSetting that is only used in some environments. In order to make it configurable, I need to mark it as a parameter in parameters.xml. However, when I omit the parameter (or supply it as an empty string) during a deployment, I receive the following error:

 The 'AppSettingKey' argument cannot be null or empty

 Any thoughts on how to resolve this?

Migration from iis7 windows Server 32bit too iis7 windows Server 64bit

$
0
0

Hi,

using the following command im able not able to migrate  

msdeploy -verb:sync -source:apphostconfig="d32",computername=dWeb -dest:archiveDir="c:\arcuk",encryptPassword=pass

msdeploy -verb:sync -source:apphostconfig="d32",computername=dWeb -dest:archiveDir="c:\arcuk",encryptPassword=pass -enableLink:AppPoolExtension

msdeploy -verb:sync -dest:apphostconfig="d32", -source:archiveDir="c:\arcuk",encryptPassword=pass -enableLink:AppPoolExtension

Am I missing a command so that i can migrate Website and application pool too windows server 2008 64bit? 

NullReferenceException

$
0
0
Hi,

We are facing an issue where MsDepSvc randomly crashes with the same exception on multiple servers. All servers are Windows 2008 R2 Server and are running msdeploy version 7.1.1046.1.

Windows version is 6.1.7600 Build 7600.

The exceptions we're getting are as follows:

MsDepSvc.exe Error: 0 : An error occurred during 'execution'. The exception details are as follows:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Web.Deployment.TraceEventSerializer.TraceEventHandler(Object sender, DeploymentTraceEventArgs traceEvent)
   at Microsoft.Web.Deployment.DeploymentBaseOptions.OnRaiseEvent(DeploymentTraceEventArgs traceEvent)
   at Microsoft.Web.Deployment.RunCommandProvider.RunningProcess_OutputDataReceived(String data)
   at Microsoft.Web.Deployment.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
ProcessId=1216
ThreadId=16
DateTime=2012-08-03T12:19:48.4504849Z
Timestamp=11169891554326

We're calling msdeploy using custom dll written in CSharp 4.0 referencing MSWebDeployment libraries Microsoft.Web.Deployment Version 8.0.0.0.

The exceptions happens when calling RunCommand provider. Please let me know if you need any more details or if there is a better place to raise this defect. I could not found official support site for MsDeploy.

web publish causes issues with entity framework

$
0
0

 Hi,

I have 2 projects, the WebUI and domain (containing the entity framework)

I don't want WP3 to do anything to my connection strings, (the asp membership one in WebUI and the other one in domain), yet web deploy insists in modifying the web config(domainCS_DatabasePublish + domainCS, I used domainCS in my app config in the domain project) and I then get an error

Server Error in '/' Application.

Format of the initialization string does not conform to specification starting at index 81.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 81.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Format of the initialization string does not conform to specification starting at index 81.]
   System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) +6374820
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +253
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +134
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +103
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionStr

 

any ideas?

 

     <add name="domainCS" connectionString="Server=localhost\sqlexpress; Database=s; Integrated Security=SSPI;Persist Security Info=True&quot; providerName=&quot;System.Data.SqlClient&quot; " providerName="System.Data.SqlClient" />
        <add name="domainCS_DatabasePublish" connectionString="Server=localhost\sqlexpress; Database=s; Integrated Security=SSPI;Persist Security Info=True&quot; providerName=&quot;System.Data.SqlClient&quot; " providerName="System.Data.SqlClient" />
    

Msdeploy from windows 2008 32bit to windows 2008 64bit

$
0
0

Do i need to add anything when running msdeploy command on a 64bit systems.

Below is my commands

msdeploy -verb:sync -source:apphostconfig="dC",computername=Web -dest:archiveDir="c:\arc",encryptPassword=pass

2

msdeploy -verb:sync -source:apphostconfig="dC",computername=Web -dest:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

On the 64bit system

msdeploy -verb:sync -dest:apphostconfig="dc", -source:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

Ignore File Last Write Time Rule doesn't work in UI

$
0
0
I'm using IIS Manager to Import a Application and it seems that the "IgnoreFileLastWriteTime" rule is not working. It's on by default yet when I run it with WhatIf it wants to update all the files only because they have a different lastWriteTime: "...differing in attributes (lastWriteTime['09/11/2012 14:37:26','08/09/2012 21:22:14']). Update pending." Does this rule work in the UI? Is it turning on the -useChecksum or will I have to use the command line? I would rather not use the command line if I can avoid it.

Sync migration not working on 64bit system

$
0
0

I used the following commands from 32bit system to a another 32bit system worked fine, site working!!!

msdeploy -verb:sync -source:apphostconfig="d32",computername=dWeb -dest:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

sdeploy -verb:sync -dest:apphostconfig="d32", -source:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

If i run the same commands using the same archivedir file on a 64bit system it falls.

msdeploy -verb:sync -dest:apphostconfig="d32", -source:archiveDir="c:\arc",encryptPassword=pass -enableLink:AppPoolExtension

Error: Enum must be one of localsystem, localservice, networkservice, specificuser

Both systems are windows server 2008 with just iis7 installed and web deploy.

Please help?

web configs are not transfered or transformed

$
0
0

 hi.

 When using web deploy 3 my web configs are not transfered or transformed, any ideas?

Set physical path when install web package created in visual studio 2010 by web deploy command line run .deploy.cmd file

$
0
0
I create web package install by visual studio 2010 and I install it by web deploy command line and I run this command:
myproject.deploy.cmd /y
Command line run success. But my problem is physical path default in C:\inetpub\wwwroot\myproject. I want to change physical path to other directory (Ex: D:\Install\Myproject).

Please help me !

Thanks.

WebDeploy cmdlet -- SetupSiteForPublish.ps1 Problem

$
0
0

Dear Experts :

I'm trying to use Web Deploy 2.0 cmdlet (SetupSiteForPublish.ps1)  to make IIS Default Web Site auto publish setting job.

(http://www.iis.net/learn/publish/using-web-deploy/powershell-scripts-for-automating-web-deploy-setup

But after running the script, the remote IIS site publish setting is not like when I manually click the IIS management UI ==> Default web site ==> Deploy.

 1. After manually click the IIS management UI ==>
     The tag "PublishURL" in publish setting file  is https://hostname:8172 and I can using vs2010 to publish application for Default web site using  "non-administrator" account

2. After running Web Deploy cmdlet (SetupSiteForPublish.ps1)  : 
     The tag "PublishURL" in publish setting file is http://hostname/  and I can't using vs2010 to publish application for Default web site using non-administrator account in this Publish URL

So, is there any other information about using this cmdlet, I have checked this page about parameters in this cmdlet.

But still can;t figure out this problem~

TKS

Albert

"Publishing - Failed" error with WebDeploy in WebMatrix 2.0

$
0
0

 

Hello,

I'm having trouble using WebDeploy to download/publish a site with the new WebMatrix 2.0.  I was running WebMatrix 1 (which version I can't remember) and had several websites publishing successfully to a local IIS server.  When I upgraded to 2.0 I started getting a failure when I tried to publish to the same servers.  I tried uninstalling/reinstalling 2.0, which didn't work.  Then I upgraded my OS from XP to Win 7 Enterprise and installed 2.0 and still get the same error.  Here's what happens:

  1. I create an Empty Site to download my existing app from the server.
  2. I click on the Remote tab, open Settings, and enter all my publishing settings using WebDeploy.  These validate successfully.
  3. I close Settings and then Download the site.  I tell it to delete local files from the Empty Site template that aren't needed.  The remote site downloads successfully.
  4. I open Settings and click in the database field to enter the database settings (this wasn't available before I downloaded the site.)  The database settings save successfully.
  5. In the freshly downloaded local files I make a small change to test publishing to the server.
  6. I click Publish and WebDeploy successfully compares all the files and produces a list of files to upload.
  7. I leave the copy database field unchecked (the database is actually on a separate SQL Server) and click Publish.  The system returns this error message:

"Publishing - Failed. The regular expression 'server=EXAMPLE\EXAMPLE1;database=MYDB_TEST;user id=sa' is invalid."

This message always clips off the password declaration at the end of the statement, though I don't know if that is significant.  The password is still there when I review the whole string in the database connection area of the Settings window.

Any ideas on where to troubleshoot this next?

Thanks, Bill

What mechanism does Web Deployment Tool use to guarantee atomic deployment with no downtime?

$
0
0

 What mechanism does Web Deployment Tool use to guarantee atomic deployment with no downtime?

Problem Updating Web.config via MSDeploy Command Line

$
0
0
Hi there,

Background info:
We have a 3 server set up (dev, staging & production) for an ASP.NET MVC 3 site. I use Visual Studio to publish to the dev server. From there, I can sync from dev to staging or staging to production with a custom batch file that uses msdeploy. This all works great.

The problem:
I'd like to alter some of the web.config appSettings when going from staging to production (turning off certain developer-only settings, for instance). When I add the "setParam" switch (see below), it attempts to change all web.config files in the site EXCEPT the root web.config. (For example, it finds and updates /Views/web.config but not /web.config)

Current msdeploy command line example (this works):

msdeploy.exe
-verb:sync
-source:contentPath="Our Site",wmsvc=dev.oursite.com,userName=%User%,password=%Pass%
-dest:contentPath="Our Site",wmsvc=staging.oursite.com,userName=%User%,password=%Pass%
-allowUntrusted=true
-enableRule:DoNotDeleteRule
-skip:Directory="\\Dir\\SubDir"

What I've tried to do (this skips /web.config, but finds /Views/web.config):

-setParam:
kind=XmlFile,
scope=web.config$,
match=/configuration/appSettings/add[@key='AttributeToChange'],
value=false

Am I missing something? Can I not update the root web.config file this way? Thanks for reading!

-Chris

AppOfflineTemplate not working in WD 3.0 RTW

$
0
0

The help documentation for "-enableRule:AppOffline" has this to say:

msdeploy -help -enableRule:AppOffline:

Takes an ASP.NET application offline by placing an app_offline.htm file in the root directory of a site or app before a sync begins.  The file will then be removed upon successful completion of the sync.

Example(s):

    msdeploy.exe -verb:sync -source:iisApp=siteName, -dest:iisApp=siteName,computerName=MyComputer,AppOfflineTemplate=template.htm -enableRule:AppOffline

However, actually attempting to provide the AppOfflineTemplate setting errors with the following output:

msdeploy.exe -verb:sync -source:iisApp=SourceWebsite -dest:iisApp=TargetWebsite,AppOfflineTemplate=app_offline_template.htm -enableRule:AppOffline:

Error: The provider 'iisApp' does not support the 'AppOfflineTemplate' setting. Supported settings are (SkipAppCreation, managedRuntimeVersion, enable32BitAppOnWin64, managedPipelineMode, authType, computerName, encryptPassword, includeAcls, password, prefetchPayload, userName, wmsvc).

If I poke around in System.Web.Deployment I can see that the template is supported by the rule, but based on the errror message it looks like it wasn't hooked up properly. 

Is this something that has simply been pushed to a future release?

WebPICMD.exe doesn't always install WDeployPS correctly

$
0
0
I have tried to install Web Deploy 3.0 through Web Platform Installed Command line tool but I am not getting the same result everytime. The installed sometimes installs the Management Service but it sometimes doesn't. This is not a big deal for me as I can Install Management service seperately but when I do that, web deploy doesn't work as it is supposed to. For example, I am using the following command: $webPiProducts = @('WDeployPS', 'UrlRewrite2') .\WebPICMD.exe /Install /Products:"$($webPiProducts -join ',')" /AcceptEULA /Log:"$env:TEMP\webpi_products_install_log_$((get-date).ToString("yyyyMMddHHmmss")).txt" This sometimes gets the installation right but sometimes doesn't. Also, I see that lots of people are having the same problem: http://forums.iis.net/p/1171432/1960329.aspx http://nicksnettravels.builttoroam.com/post/2010/04/22/Done28099t-Install-Web-Deployment-Tool-using-the-Web-Platform-Installer.aspx Any chance you guys can have a look at this? thanks!

Migrate from 1 webserver to 2 webservers

$
0
0

Dear all,

We would like to migrate all websites from 1 webserver to 2 different webservers and devide the websites 50/50 over these webservers.
Do you guys have any idea how to script this with MSdeploy?

I have thought to use:

msdeploy.exe -verb:sync -source:metakey=lm/w3svc/[identifier] -dest:auto,computername=80.246.191.6,username=[user],password=[pass] 

But is that case i have to alter the [identifier] for all of our websites...

Regards,

Daniël

Same command different behaviour on Web Deploy V2 and Web Deploy V3.

$
0
0

When i run msdeploy command , against MSDeploy V3 it gived Error message, while i run same command against MSDeploy V2 it works like a charm.

Errror Mesage: Error: Unable to connect to the remote server Error: No connection could be made because the target machine actively refused i t :8172 Error count: 1.

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:package="d:\test\SampleWebSite.zip" -dest:auto,wmsvc=mycomputer.net,userName=Administrator,password=mypassword,authtype=basic -allowUntrusted -verb:sync -setParamFile:"d:\test\SampleWebSite.SetParameters.xml"

"C:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe" -source:package="d:\test\SampleWebSite.zip" -dest:auto,wmsvc=mycomputer.net,userName=Administrator,password=mypassword,authtype=basic -allowUntrusted -verb:sync -setParamFile:"d:\test\SampleWebSite.SetParameters.xml"

Can you please tell me what is wrong in case of  Web Deploy V3.

Website crash caused by MSDeploy?

$
0
0


I was out of town earlier this week and was told all websites which used a specific app pool crashed. After troubleshooting the issue they found IIS was set to look for "ASP Compiled Templates" directory in C:\Windows\System32\inetsrv which is the correct location in IIS6.

However, we have migrated our sites using msdeploy (webserver60 provider) to IIS7. So, the folder was located in C:\intepub\temp. Is it possible some paths were not converted properly? Either way, are there any paths I should check to make sure they are pointed to actual folders that exist.

Thanks,

John C.

Viewing all 663 articles
Browse latest View live


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