IMPORTANT!
This forum is now archived. Click here for the New Support Forum
No Database crreated
Quote from mikew194a on March 25, 2018, 7:45 pmHi,
I am using the latest, but lookes like the DB seed is not running. Do I have to do anything special?
Mike
Hi,
I am using the latest, but lookes like the DB seed is not running. Do I have to do anything special?
Mike
Quote from a.kindlbacher on March 26, 2018, 2:10 pmHave u checked the sql explorer for existance?
Have u done "add-migration" and "update-database" in the packet manager console?
Andreas
Have u checked the sql explorer for existance?
Have u done "add-migration" and "update-database" in the packet manager console?
Andreas
Quote from mikew194a on March 27, 2018, 11:55 pmHi Andreas,
I tried what you suggested: But my local server seems to be working just fine and I created a db from another app.
active ...xjs\_esm5\add\observable\fromEvent.jsinfo: System.Data.SqlClient.SqlException (0x80131904): 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.ComponentModel.Win32Exception (0x80004005): Unknown error (0x89c50118)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
Hi Andreas,
I tried what you suggested: But my local server seems to be working just fine and I created a db from another app.
active ...xjs\_esm5\add\observable\fromEvent.jsinfo: System.Data.SqlClient.SqlException (0x80131904): 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.ComponentModel.Win32Exception (0x80004005): Unknown error (0x89c50118)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
Quote from mikew194a on March 27, 2018, 11:56 pmI think their is something wrong withthe connection string.
Let you know after I try someting
I think their is something wrong withthe connection string.
Let you know after I try someting
Quote from mikew194a on March 28, 2018, 8:08 pmLooks nice,
But does not work. I tired everything even created my own database. but does not login or create the database.
Quest I need to find another product.
Looks nice,
But does not work. I tired everything even created my own database. but does not login or create the database.
Quest I need to find another product.
Quote from Al Ve on April 1, 2018, 11:45 amfor connectionstrings rely on https://www.connectionstrings.com/
the problem is that it can't find your database server.
It would be great if you provide where you start the app and where everything is installed with which versions? Example: I run it locally on a windows 10 with MS sql server 2017 as named instance with windows authentication and the connectionstring is
"SQLServerConnection": "Server=.\\SQLSERVER2017;Database=xxx;Trusted_Connection=True;MultipleActiveResultSets=true"
for connectionstrings rely on https://www.connectionstrings.com/
the problem is that it can't find your database server.
It would be great if you provide where you start the app and where everything is installed with which versions? Example: I run it locally on a windows 10 with MS sql server 2017 as named instance with windows authentication and the connectionstring is
"SQLServerConnection": "Server=.\\SQLSERVER2017;Database=xxx;Trusted_Connection=True;MultipleActiveResultSets=true"
Quote from Jay Kay on November 1, 2018, 7:36 pmThe database is created in your windows user account folder, c:\users\<username>\
https://blogs.msdn.microsoft.com/sqlexpress/2011/10/28/localdb-where-is-my-database/
If you want to use SQL Server, change the connection string in the:
- appsettings.json - for release version
- appsettings.development.json - for dev version (can be found inside the collapsed appsetting.json file in solution explorer).
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/
There should already be a xxxxx_initial.cs file in the migrations folder, so just hit a "update-database" in your package manager console. Whatever you set in the appsettings connection string, that database will reflect all the tables for you...
The database is created in your windows user account folder, c:\users\<username>\
https://blogs.msdn.microsoft.com/sqlexpress/2011/10/28/localdb-where-is-my-database/
If you want to use SQL Server, change the connection string in the:
- appsettings.json - for release version
- appsettings.development.json - for dev version (can be found inside the collapsed appsetting.json file in solution explorer).
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/
There should already be a xxxxx_initial.cs file in the migrations folder, so just hit a "update-database" in your package manager console. Whatever you set in the appsettings connection string, that database will reflect all the tables for you...
IMPORTANT!
This forum is now archived. Click here for the New Support Forum