I am getting Instance failure error in two places in two pages
1st palce when i m filling dataadpter values to dataset Exact location is
da.fill(ds,"tables");
At the tables ..i.e ..dataset table name is showing the Instance failure error .
How to resolve this error. but the syntax is not wrong as per my opnion...
and 2nd place is con.open()
i had declared the con object and i passed string as toooooooo.
i don't no what it could be the problem...........
How to solve these Instance failure errors
Loading
ashish guptaPosted May 25, 2010, 10:08 AM
protected void MailSend()
{
ar = (ArrayList)Session["Detail"];
//ar = (string[])Session["User_Info"];
string To_email = ar[4].ToString().Trim();
MailMessage Mail = new MailMessage();
MailAddress ma = new MailAddress(ConfigurationManager.AppSettings["AdminId"], ConfigurationManager.AppSettings["Name"]);
Mail.From = ma;
Mail.To.Add(To_email);
Mail.IsBodyHtml = true;
Mail.Subject = "Subject";
//string bdy = "Dear " +ar[1].ToString()+ "
" + "Thanks for registration on Universal Export mart your password is " +ar[5].ToString() + " " + "we will give you a confirmation mail after that you can sell your items on our site
" + "Support Team " + "
" + "Universal Export mart";
string bdy = "Dear " + ar[1].ToString() + "
" + "Thanks for registration on Universal Export mart your password is " + ar[5].ToString() + " " + "we will give you a confirmation mail after that you can sell your items on our site
";
Mail.Body = bdy;
SmtpClient smtpMailObj = new SmtpClient();
//eg:localhost, 192.168.0.x, replace with your server name
smtpMailObj.Port = 465;
smtpMailObj.Host = ConfigurationManager.AppSettings["Host"];
smtpMailObj.Credentials = new System.Net.NetworkCredential(ConfigurationManager.AppSettings["AdminId"], ConfigurationManager.AppSettings["Password"]);
smtpMailObj.Send(Mail);
lblError.Text = "Mail sent successfully";
harish kumarPosted Apr 3, 2010, 2:05 PM
Sam HobbsPosted Apr 2, 2010, 5:37 PM
Jaish MathewsPosted Apr 2, 2010, 1:45 PM
Not able to assume anything without seeing ur code.