2015-04-13 1 views
0

Я запускаю экземпляр виртуальной машины сервера Windows 2012 внутри Azure.DevExpress DatabaseVersionMismatch Ошибка, когда база данных еще не создана

Я установил SQL Server Express 2012 на компьютер

Я развертывается мое приложение 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: 

Обычно база данных будет создавать и уверенных в семени, когда я запустить приложение

ответ

0

Как оказалось (спасибо Paul Usher) Я смог скопировать DBEpdater exe-файл в каталог приложения в Azure (с помощью вырезания и вставки)

затем я открыл приглашение dos и запустил программу обновления для файла конфигурации приложения.

это создало базу данных и даже провело мой метод посева

Смежные вопросы