Hi
I am getting above error on below line
string myCnn = _configuration.GetConnectionString("myCnn");
using Core_Program1.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
Thanks

Vikas PanwarRank #1,447 · 1.1K reputationPosted Nov 27, 2021, 6:27 AM EST
Add this refrence
if this not work then
Right click on project, add, reference. Find System.Configuration and click on it.
geetha geethaRank #7,130 · 248 reputationPosted Nov 29, 2021, 9:29 AM EST