在IIS上托管Azure文件

在IIS上托管Azure文件,iis,azure-files,Iis,Azure Files,我已经阅读了这篇文章,除了不需要的共享配置之外,我没有遗漏任何步骤。正如文章所说,我创建了一个具有相同名称和密码的本地用户 我能够在虚拟目录的内容视图中看到azure文件。但当我浏览时,它会说 HTTP Error 500.19 "The requested page cannot be accessed because the related configuration data for the page is invalid." Config Error Cannot read

我已经阅读了这篇文章,除了不需要的共享配置之外,我没有遗漏任何步骤。正如文章所说,我创建了一个具有相同名称和密码的本地用户

我能够在虚拟目录的内容视图中看到azure文件。但当我浏览时,它会说

HTTP Error 500.19 
"The requested page cannot be accessed because the related configuration data for the page is invalid."
Config Error       Cannot read configuration file

它实际上是在UNC路径
\\staticcontent.file.core.windows.net\repo
中查找配置文件

以下是我遵循的步骤。如果您有任何疑问,请联系微软网站renash的我

第一步 在经典部署模型中为Windows虚拟机配置可用性集

步骤2

$vm1name =  'cltkdemovm1'
$vm2name =  'cltkdemovm2'
$servicename= 'cltkdemodomain'
Login-AzureRmAccount
Select-AzureSubscription -SubscriptionName "Windows Azure Internal Consumption"
$vm = Get-AzureVM -Name $vm1name -ServiceName $servicename
.\Add-AzureFtpEndpoints.ps1 $vm 21 10000 10050
$vm = Get-AzureVM -Name $vm2name  -ServiceName $servicename
.\Add-AzureFtpEndpoints.ps1 $vm 21 20000 20050
步骤3 在vm1上:

Install-FTP.bat cltkdemoftp <storageaccountname> <storageaccountkey>  <sharename> 21 10000 10050 <VMIPAddress>
Install-FTP.bat cltkdemoftp 21 10000 10050
例如:

Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 10000 10050 40.76.29.172
Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 20000 20050 40.76.29.172
Install-FTP.bat cltkdemoftp cltkdemosa==FTP 21 10000 10050 40.76.29.172
关于vm2:

Install-FTP.bat ctdemoftp cltkdemosa <storage account key>==  ftp 21 20000 20050 <VMIPAddress>
Install-FTP.bat ctdemoftp cltkdemosa==FTP 21 20000 20050
例如:

Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 10000 10050 40.76.29.172
Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 20000 20050 40.76.29.172
Install-FTP.bat cltkdemoftp cltkdemosa==FTP 21 20000 20050 40.76.29.172
步骤4 将sa添加到IISUser组 将sa添加到应用程序池->池名->高级设置->标识

关于VM2 将sa添加到IISUser组
将sa添加到应用程序池->池名->高级设置->识别-/p>Hey@Batman欢迎加入SO!为了使这个问题有用,你需要提供更多的细节。您提到可以在一个视图中看到文件,但在另一个视图中看不到。你试过什么?您能确认权限是否正确吗?用户名和密码传递是否正确?我可以在iis的内容视图中看到文件。是的,权限是正确的。我可以从windows资源管理器查看共享文件。用户名密码正确,因为当我单击“测试设置”选项时,身份验证已通过。UNC路径是什么?\\staticcontent.file.core.windows.net\repo“,名称已更改,但看起来与此类似。没有驱动器号。