2011-10-27 1 views
1

지난 며칠 동안 IIS 7에 패키지를 배포하려고하는데 아무데도 들지 않습니다. 패키지 게시를 시도 할 때마다 대상 폴더가 존재하지 않는다는 오류가 발생하지만 실제로 원격 서버에서 생성되었지만 비어 있습니다 (폴더 구조 만 해당)./IIS 7 Web Deploy에서 하위 폴더를 만들 수 있습니까?

저는 후속 명령을 내 패키지를 구축 :

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을 생성하기 위해해야 ​​할 마술 트릭이 있습니까?

답변

0

발견! 거의 모든 msbuild, msdeploy, 프로젝트 설정, IIS 등의 옵션을 시험해 본 결과, ID가 분명히 권한이 없기 때문에 msdeploy가 사이트의 응용 프로그램 풀에서 내 응용 프로그램을 만들 수 없다는 것을 알았습니다.

트릭이 사이트 풀의 ID를 로컬 시스템으로 변경하는 이유는 무엇입니까?

관련 문제