過去数日間、パッケージをIIS 7に展開しようとしていますが、どこにも行きません。パッケージを公開しようとすると、宛先フォルダーが存在しないというエラーが表示されますが、実際にはリモートサーバーで作成されましたが、空でした(フォルダー構造のみ):/
次のコマンドを使用してパッケージを作成しています。
msbuild.exe /t:CreateWebPackages /toolsversion:4.0 CRM.msbuild
そしてそれを展開しようとしています:
CRM.cmd /M:server /Y
結果は次のとおりです。
C:\...WebService.deploy.cmd /M:crm-web /y
=========================================================
SetParameters from:
"C:...WebService.SetParameters.xml"
You can change IIS Application Name, Physical path, connectionString
or other deploy parameters in the above file.
-------------------------------------------------------
Start executing msdeploy.exe
-------------------------------------------------------
"C:\Program Files\IIS\Microsoft Web Deploy\\msdeploy.exe"
-source:package='C:...WebService.zip' -dest:auto,computerName='crm-w
eb-new',includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLin
k:ContentExtension -disableLink:CertificateExtension
-setParamFile:"C:...WebService.SetParameters.xml"
Info: Adding sitemanifest (sitemanifest).
Info: Updating createApp (Kruk CRM Web Service/2.0.65000.65000).
Info: Adding contentPath (Kruk CRM Web Service/2.0.65000.65000).
Info: Adding dirPath (Kruk CRM Web Service/2.0.65000.65000).
Info: Adding child dirPath (Kruk CRM Web Service/2.0.65000.65000\bin).
Info: Adding setAcl (Kruk CRM Web Service/2.0.65000.65000).
Error: (2011-10-27 11:07:59) An error occurred when the request was processed on
the remote computer.
Error: Could not find file '\\?\C:\inetpub\wwwroot\CRM\2.0.65000.65000'.
Error count: 1.
しかし、SetParameters.xmlファイルを編集して変更すると
<setParameter name="IIS Web Application Name" value="Web Service/2.0.65000.65000" />
に
<setParameter name="IIS Web Application Name" value="Web Service" />
できます!それで、サイトの下に新しいdirを作成するために私がしなければならないいくつかの魔法のトリックがありますか?