ArfiSoft / MSoHelpDesk

Web interface for the Kaseya ServiceDesk
1 stars 1 forks source link

K 9.1 Error SD API Whats wrong #1

Open PeterChant opened 9 years ago

PeterChant commented 9 years ago

An exception of type 'System.Data.SqlClient.SqlException' occurred in EntityFramework.dll but was not handled in user code

Additional information: 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: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.)

ServiceDeskWSClient sDesk = new ServiceDeskWSClient(db.Settings.FirstOrDefault(s => s.Key == "ServiceDeskURI").Value.ToString(), db.Settings.FirstOrDefault(s => s.Key == "KaseyaURI").Value.ToString());

PeterChant commented 9 years ago

this must change to my kserver db ?

ArvidHamersma commented 9 years ago

No, this is the localDB. All info from the Kaseya is coming from the api. In the local db are just the settings and users. In production use a SQL server, in debug use the localDB. To clear the error execute VS as administrator.

ArvidHamersma commented 9 years ago

And from the NuGet consol run update-database to create the database