SqlException: System.Net.Security.Native in Unity
No error message attached to the exception? That may give you more detailed information what is wrong.
That is not an error message, that is a stack-dump. (That is, the nested function calls that were active at the time the exception happened.)
I don't know what .net does with error-messages if it dumps the stack, but in case it doesn't show the message by default, you can try the following:
In that stack-dump find the function in your code that was active. Change that code by catching the exception, retrieve and print the message from the exception (or save it somewhere), and probably then rethrow it, or exit in some other way.
By the way, it is good practice to always check returned results from calls to the system (or in this case, catch raised exceptions), and deal with them in a proper way. It avoids the situation you're in now, a crashed program and no idea what is wrong.
On 4/13/2019 at 3:22 PM, RobbyT15 said:in Unity while trying to connect to my SQL Database
If this is released to the public you probably shouldn't connect directly to the database.
Add some (Web/REST/SOAP/etc-)API to handle authorization, authentication and dataflow beween the game client and your database.
Without further information my guess is, you are using C# functionality that's not 100% supported by Unity.
But the exception message would help in indetifying the problem.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.