Object Type Cast Error & Azure DB Emulator not running/found

Discussions related to custom development with Select.
Post Reply
ruberked@gmail.com
Posts: 7
Joined: Thu May 12, 2022 1:32 pm

Object Type Cast Error & Azure DB Emulator not running/found

Post by ruberked@gmail.com »

We are facing two problems at them the moment:

A. Object type cast issue in Softpro SDK (exception screenshot attached)

B. Azure database emulator not running (See exception below. We have also tried using domain/machine name instead of localhost with no luck)

Any assistance is appreciated, thank you!

Could not find a LocalDB Installation.
Probing SQL Instance: 'localhost\SQLExpress'.
Caught exception while probing for SQL endpoint. 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: 26 - Error Locating Server/Instance Specified)
Number of SqlErrors Reported: 1
SqlError: System.Data.SqlClient.SqlError: 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: 26 - Error Locating Server/Instance Specified)
No available SQL Instance was found.
One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again.
Error: No available SQL Instance was found.
objectCastType.jpg
objectCastType.jpg (170.64 KiB) Viewed 641 times
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Object Type Cast Error & Azure DB Emulator not running/found

Post by BobRichards »

(A) I don't know why the object cast error is occurring. Look in the InnerException for additional clues.

(B) The SQL connection string for the server package can be found at ISelectServerEnvironment.ConnectionString.
Bob Richards, Senior Software Developer, SoftPro
ruberked@gmail.com
Posts: 7
Joined: Thu May 12, 2022 1:32 pm

Re: Object Type Cast Error & Azure DB Emulator not running/found

Post by ruberked@gmail.com »

Thank you, we will look into that and see if we have any luck.
Post Reply