Run Demo Project

StatusIDPriorityType
Closed24265MinorBug
ProfileReply
doorscomputersClient

Hi I tried to run the NorthwindDc project and used the windows authentication and I encountered this problem below.

"DevExpress.ExpressApp.Updating.CompatibilityException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
) ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at DevExpress.Xpo.DB.MSSqlConnectionProvider.CreateDataBase(SqlConnection conn)
--- End of inner exception stack trace ---
at DevExpress.ExpressApp.Updating.DatabaseUpdater.Update()
at Xafari.Northwind.DC.AppModule.Win.WinAppModule.Application_DatabaseVersionMismatch(Object sender, DatabaseVersionMismatchEventArgs e) in c:\Users\Public\Documents\Xafari Framework v15.1.508 Demos\Northwind.DC\CS\Xafari.Northwind.DC.AppModule.Win\Module.cs:line 35
at DevExpress.ExpressApp.XafApplication.OnDatabaseVersionMismatch(DatabaseVersionMismatchEventArgs args)
at DevExpress.ExpressApp.XafApplication.CheckCompatibilityCore()
at DevExpress.ExpressApp.XafApplication.CheckCompatibility()
at DevExpress.ExpressApp.XafApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)
at DevExpress.ExpressApp.Win.WinApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)"

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Agent

Hello,

At first you can note next warning:

"... The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections..."

and please check for theĀ SQL Server 2012 Express LocalDB on your computer.

Regards, Sasha.

doorscomputers

Hi, I thought the Demo will run without any configuration, what is the database name of the xafari demo that I will search? This is the code in the xafari demo
add name="ConnectionString" connectionString="XpoProvider=XmlDataSet;Data Source=NorthwindWin_15.1.508.xml;read only=false;" />

What will I do with the code above from the xafari demo in order to run it ? Thanks!

doorscomputers

I have attached a video of the things that are having problems , I can run the Northwind and feature center demo. but the other 2 demos NorthwindDC and Business Components are having problems, Then I opened the source code and I cannot seem to get the the demo running because of the problem on connection strings maybe.

doorscomputers

I have attached a video of the things that are having problems , I can run the Northwind and feature center demo. but the other 2 demos NorthwindDC and Business Components are having problems, Then I opened the source code and I cannot seem to get the the demo running because of the problem on connection strings maybe.

Attached files:
Sasha (Xafari Support)Agent

Hello,

DemoCenter includes four applications for Xafari.
There is Northwind, Northwind.DC, FeatureCenter and Business Components.
Northwind and FeatureCenter using xml files to store data.
Northwind.DC and BusinessComponents using Sql Server to store data.
If you have not the SQL Server 2012 Express LocalDB on your computer,
you will not be able to run samples Northwind.DC and BusinessComponents.

Feel free to contact us if you have any questions.
Regards, Sasha.

× This ticket is closed.

Write US