Problème de connexion avec Sql Server

Fermé
Mervelis - 15 nov. 2019 à 13:11
Bonjour,
J'ai un problème avec mon projet développé en C#, quand je l’exécute j'ai un message d'erreur de ce genre

(Error 1 Resource file "obj\Debug\SuperSaleApplication.frmBrandList.resources" has an invalid name. The item metadata "%(FullPath)" cannot be applied to the path "obj\Debug\SuperSaleApplication.frmBrandList.resources". C:\Users\Cortez\Downloads\Super Sales Inventory Project with source code and database SQL Server\Super Sales Inventory Project with source code and database SQL Server\SuperSaleApplication\SuperSaleApplication\obj\Debug\SuperSaleApplication.frmBrandList.resources SuperSaleApplication
)
Et voici ma chaîne de caractère que j'ai utilisé:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;

namespace SuperSaleApplication
{
    class DBConnection
    {
        SqlConnection con = new SqlConnection();
        SqlCommand cmd = new SqlCommand();
               SqlDataReader dr;

        public string MyConnection()
        {
            string Con = @"Data Source=HP\SQLEXPRESS;Initial Catalog=SuperSaleDB;Integrated Security=True";
            return Con;
        }