Hello,
I have problem to run the runCommand provider in WPI. My goal is to enable 32 bit of application pool that has been created automatically (I guest it) by WPI.
So i think the runCommand provider is the right choice for me after install the website then the script that I've created will change the application pool to 32 bit.
You can look the manifest.xml contents:
<msdeploy.iisApp><iisApp path="Application1" /><runCommand MSDeploy.MSDeployKeyAttributeName="path" waitInterval="60000" waitAttempts="10" MSDeploy.MSDeployProviderOptions="H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In6NX/PX+DV+jf/7//6//2/8xP9+o1/r1/g1fo3vfVFM66qpztvxVT4Zz/JVWV0v8mU7Sn8yr5uiWn72YLw73hnvjNKTddmu6/yzZb5u66wcpS/Xk7KY/l759Zvqbb787N7u5Pzewf1Ps9m9T/fze/d/XfS05zr4LnXw1Hbg/fqyri6LWV5/uWqpw+bX+TV+jV/jN1rpZy+yRf7rrLJ2/usus0Xe/HqXWbnOm1/z1/z1fj2g/+v92r/Gr/FrJPV6eVItFtly9uvh3d/r5NHv+91iOauumt/39XXT5ot7e7/vtJnWxaod5+/ylL5/zX81v+/pMpuU+fFqRQPJ0PvLqirb6t7ek6IdX06aH/t1f41f49f4sV/v1/g1fo3fHL/hf785/sL/fsP/B95IjT9TAQAA" path="C:\Windows\System32\cscript.exe C:\Scripts\EnableApplicationPoolto32Bit.vbs"/></msdeploy.iisApp>
The reproduce steps are (UPDATED):
- Open WPI v4.5 with Windows 7, click Options in the bottom window, then add this custom feed https://dl.dropboxusercontent.com/u/168949007/wpiLab.xml
- Create folder with name Scripts in C drive, so the folder path is C:\Scripts.
- Download vbs script from here (put in C:\Scripts folder). Please make sure you saved it as vbs extension not txt extension.
- Install "Application 1"
- Then you get the exception
The exception:
[21:58:91]Source runCommand (C:\Windows\System32\cscript.exe C:\Scripts\EnableApplicationPoolto32Bit.vbs) does not match destination (C:\Windows\System32\cscript.exe C:\Scripts\EnableApplicationPoolto32Bit.vbs) differing in attributes (isSource,waitInterval,waitAttempts). Update pending. [21:58:92]Updating runCommand (C:\Windows\System32\cscript.exe C:\Scripts\EnableApplicationPoolto32Bit.vbs). Details: operationType: Update providerName: runCommand path: C:\Windows\System32\cscript.exe C:\Scripts\EnableApplicationPoolto32Bit.vbs EXCEPTION: System.IO.FileNotFoundException: Could not find file '\\?\C:\inetpub\wwwroot\Application1'. File name: '\\?\C:\inetpub\wwwroot\Application1'
I also have followed these links:
- http://stackoverflow.com/questions/12485887/ms-webpi-package-runcommand-not-working-in-manifest-xml
- http://stackoverflow.com/questions/1511792/runcommand-provider-in-msdeploys-manifest-xml-file and
- http://stackoverflow.com/questions/13608066/webdeploy-runcommand-issue
But the error still not solved :(.
My questions are:
- Any ways how to change application pool from WPI?
- Is runCommand provider "buggy" in WPI?Because I've tried it from import application of IIS Manager and also MS Deploy command line, both of them worked well.
- Actually I have another idea to change application pool via application on WPI (you can look at my custom feed) but I think this is not better solution. If it is integrated to my application, I think this is best solution for me :).
And also I attach the log files of WPI, you can get from this link.