I'm trying to run my web app in Visual Studio but when I run it I get the following error: System.BadImageFormatException: Non è stato possibile caricare il file o l'assembly 'Oracle.VsDevTools.EntityFramework.16.0. What's the problem?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OracleClient;
using Oracle.ManagedDataAccess;
using System.Data.OleDb;
namespace WebApplication
{
public partial class WebForm1 : System.Web.UI.Page
{
string conString = "User Id=C##FABIO;Password=oracle;Data Source=localhost:1521/orcl;";
protected void Page_Load(object sender, EventArgs e)
{
}
//aggiungi un elemento alla tabella ESAMI
protected void Button1_Click(object sender, EventArgs e)
{
OracleConnection con = new OracleConnection();
con.ConnectionString = conString;
con.Open();
OracleCommand cmd = con.CreateCommand();
cmd.CommandText = "Insert into ESAMI(CODICE_ESAME,NOME_ESAME,ANAGRAFICA_CODICE_FISCALE) VALUES('" + codice_esame_text.Text + "','" + nome_esame_text.Text + "','" + codice_fiscale_text.Text + "') WHERE ANAGRAFICA_CODICE_FISCALE = '" + codice_fiscale_text.Text + "'";
cmd.ExecuteNonQuery();
con.Close();
}
}
}