title speaks for itself,
db.ExecuteCommand("INSERT INTO tCSVFile(fileName, fileContent, mimetype, timeCreated) VALUES({0}, {1}, {2}, {3})", filename, EncodeTo64(CreateCSVFile(header, rows)), "text/csv", DateTime.Now );
this works fine from the virtual server but on iis inserting causes nothing to happen.
Also tried this..
tCSVFile c = new tCSVFile
{
fileContent = EncodeTo64(CreateCSVFile(header, rows)),
fileName = filename,
mimetype = "text/csv",
timeCreated = DateTime.Now
};
db.tCSVFiles.InsertOnSubmit(c);
db.SubmitChanges();
again works on virtual server but on iis no luck. any help would be greatly appreciated as i have looked on the web and havent found anything of use. My selects work fine and can select without a problem.
Connection string is
<add name="db_ac_motors_testConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\db_ac_motors_test.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
The insert is a call from a MVC Partial view and is done through ajax.beginform()