"找不到路径&QUOT的一部分;创建服务 [英] "Could not find a part of the path" creating a service
本文介绍了"找不到路径&QUOT的一部分;创建服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试着用创建Azure云服务:
创建云服务
新AzureServiceProject -ServiceName服务升降和转移-Verbose
我使用的Azure SDK 2.9和它给了以下错误:
服务名称:服务的电梯和移位
新AzureServiceProject:找不到路径的一部分C:\\ Program Files文件(x86)的\\微软
SDKs\\Azure\\PowerShell\\ResourceManager\\AzureResourceManager\\AzureRM.Profile\\Resources\\Scaffolding\\General\\scaffold.xml'.
在行:1字符:1
+新-AzureServiceProject
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo:CloseError:(:) [新-AzureServiceProject] DirectoryNotFoundException
+ FullyQualifiedErrorId: Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding.NewAzureServiceProjectCommand$p$p>解决方案我通过复制的文件夹中解决了这个问题
C:\\ Program Files文件(x86)的\\微软的SDK \\的Azure \\ PowerShell的\\ ServiceManagement \\天青\\ SERVICES \\资源
到
C:\\ Program Files文件(x86)的\\微软的SDK \\的Azure \\ PowerShell的\\ ResourceManager的\\ AzureResourceManager \\ AzureRM.ProfileI tried to create Azure cloud service using:
Create the Cloud Service
New-AzureServiceProject -ServiceName 'service-lift-and-shift' -Verbose
I am using Azure SDK 2.9 and it is giving the following error:
ServiceName: service-lift-and-shift New-AzureServiceProject : Could not find a part of the path 'C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile\Resources\Scaffolding\General\scaffold.xml'. At line:1 char:1 + New-AzureServiceProject + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureServiceProject], DirectoryNotFoundException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding.NewAzureServiceProjectCommand
解决方案I solved this problem by copying folder
C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Resources
to
C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager\AzureRM.Profile这篇关于"找不到路径&QUOT的一部分;创建服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文