Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Mohamed Hisham |
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
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.
spaceyjase | 2021-12-20 15:19
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
Mohamed Hisham | 2021-12-24 12:52