【问题标题】:Can't connect with Office 365 when publish Website to Azure Virtual Machine将网站发布到 Azure 虚拟机时无法连接 Office 365
【发布时间】:2015-04-02 08:23:59
【问题描述】:

我用 C# 编写了一个连接到 Office 365 并在 Azure 虚拟机中创建用户邮箱的程序。

当我在 Azure 虚拟机 (Windows server 2012) 或本地 Windows 7 计算机上运行我的程序时没问题。用户已创建。我检查了 EAC 和 Powershell。

但是当我将网站(部署到 Azure)发布到我的 Azure 订阅帐户时,我无法创建用户。

我认为连接字符串有问题。但是,如上所述,用户是在本地计算机和 Azure 虚拟机(Windows server 2012 虚拟机)上创建的。

我是否需要对 Azure 进行更多设置才能正确运行我的程序?

【问题讨论】:

    标签: c# azure deployment virtual office365


    【解决方案1】:

    我找到了解决方案。您需要配置“互联网信息(ISS)管理器”

    在虚拟机 Windows Server 2012 中。打开“管理工具”--> 打开“Internet 信息 (ISS) 管理器--> 选择您的 Windows 服务器--> 选择名为:应用程序池的子文件夹--> 右键单击​​” DefaultAppPopl" --> 选择"Detail Setting" --> 将"Load user profile" 设置为"True"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-13
      • 2015-08-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多