0 votes

I'm using godot C# stable v3.4 and using VScode an external editor with C# code and trying to make a connection between my project using C# and SQL Server using SQL server management studio 2019 and here is my initial code

using Godot;
using System;
using System.Data.SqlClient;
public class Control : Godot.Control
{
public override void Ready()
{
SqlConnection conn = new SqlConnection("Server=DESKTOP-CQUGBAI;Database=SMS;Trusted
Connection=True;");
try
{
conn.Open();
OS.Alert("Open", "Message Box");
}
catch(Exception ex)
{
OS.Alert(ex.ToString(), "Message Box");
}
}
}

the problem is the debug stoped at the SqlConnection object and give me this message

enter image description here

for better quality

Godot version 3.4
in Engine by (26 points)
edited by

This has to be a path issue; perhaps 'Mono.Security.dll' is missing from the output folder? Unsure if you've added it as a dependency to your project? Perhaps look into the msbuild output and ensure the assembly is present.

Where can I find mono.security.dll fill and how to add it to my project sorry but can you guide me It's my first time dealing with godo mono stuff

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.