无法在Azure Web角色上本地访问网站

时间:2017-07-17 00:00:45

标签: azure azure-web-roles

我在单个Web角色上的Windows Azure云服务上部署多个网站。我添加了必需的绑定和主机文件条目。当我运行ping命令时,我也得到了响应。

但是当RDP到VM并在VM上本地浏览该站点为 localhost 时  它无法访问并显示404未找到。

IIS事件出错

The application '/' belonging to site '1' has an invalid AppPoolId 'DefaultAppPool' set.  Therefore, the application will be ignored.

1 个答案:

答案 0 :(得分:1)

  

当RDP到VM并在VM上本地浏览本地站点时,它无法访问并显示404未找到。

access the desktop of your web role running in Azure并向您的Web服务器添加一个新网站,我可以在本地浏览该网站。如果可能,您可以尝试创建一个新的网站来服务静态html文件并检查它是否正常工作,或者您可以分享绑定和您的应用程序的详细信息。

添加网站

enter image description here

设置:

enter image description here

应用程序池:

enter image description here

在本地浏览网站:

enter image description here

  

属于网站“1”的应用程序“/”具有无效的AppPoolId“DefaultAppPool”集。因此,应用程序将被忽略。

某些社区成员在this so thread中遇到并发布类似问题,您可以检查是否缺少任何.dll文件或使用32位库。

相关问题