我在 Azure 中运行 Windows 2012 服务器的虚拟机实例。
我已将 SQL Server Express 2012 安装到计算机上
我已经使用 click once 部署了我的 DevExpress xaf 应用程序。
我编辑了 .exe.config 文件以具有以下连接字符串
<add name="ConnectionString" connectionString="Integrated Security=False;MultipleActiveResultSets=True;User Id=sa;Password=nottelling;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=mytest"/>
我使用 ODBC 数据源管理员检查是否可以连接到 SQL Server 实例。
然而,当我尝试运行应用程序时收到以下错误
The application cannot connect to the specified database, because the latter doesn't exist or its version is older than that of the application.
This error occurred because the automatic database update was disabled when the application was started without debugging.
To avoid this error, you should either start the application under Visual Studio in debug mode, or modify the source code of the 'DatabaseVersionMismatch' event handler to enable automatic database update, or manually create a database using the 'DBUpdater' tool.
Anyway, refer to the 'Update Application and Database Versions' help topic at http://help.devexpress.com/#Xaf/CustomDocument2795 for more detailed information. If this doesn't help, please contact our Support Team at http://www.devexpress.com/Support/Center/
Inner exception:
通常,当我运行应用程序时,数据库会创建并自播