Click here to Skip to main content
15,917,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to send a mail from local SMTP server. Pin
Kandepu Rajesh18-Jun-14 11:18
Kandepu Rajesh18-Jun-14 11:18 
SuggestionRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan18-Jun-14 22:35
mveRichard MacCutchan18-Jun-14 22:35 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh19-Jun-14 13:31
Kandepu Rajesh19-Jun-14 13:31 
GeneralRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan19-Jun-14 22:37
mveRichard MacCutchan19-Jun-14 22:37 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh20-Jun-14 10:11
Kandepu Rajesh20-Jun-14 10:11 
GeneralRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan20-Jun-14 12:57
mveRichard MacCutchan20-Jun-14 12:57 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh23-Jun-14 11:40
Kandepu Rajesh23-Jun-14 11:40 
GeneralRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan25-Jun-14 15:16
mveRichard MacCutchan25-Jun-14 15:16 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh26-Jun-14 16:12
Kandepu Rajesh26-Jun-14 16:12 
GeneralRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan27-Jun-14 5:56
mveRichard MacCutchan27-Jun-14 5:56 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh27-Jun-14 10:59
Kandepu Rajesh27-Jun-14 10:59 
GeneralRe: How to send a mail from local SMTP server. Pin
Richard MacCutchan27-Jun-14 13:24
mveRichard MacCutchan27-Jun-14 13:24 
AnswerRe: How to send a mail from local SMTP server. Pin
Richard Deeming19-Jun-14 1:24
mveRichard Deeming19-Jun-14 1:24 
GeneralRe: How to send a mail from local SMTP server. Pin
Kandepu Rajesh19-Jun-14 13:32
Kandepu Rajesh19-Jun-14 13:32 
AnswerRe: How to send a mail from local SMTP server. Pin
Swinkaran19-Jun-14 15:16
professionalSwinkaran19-Jun-14 15:16 
QuestionSystem.InvalidOperationException TimeOut Expired. Pin
Member 1071694918-Jun-14 4:15
Member 1071694918-Jun-14 4:15 
The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

I am running this application in my local machine. So no heavy DB queries and all. I have pasted my code below. This error happens on con.Open()

string connString = ConfigurationManager.ConnectionStrings["DL"].ConnectionString;

            using (SqlConnection con = new SqlConnection(connString))
            {

                SqlCommand cmd = new SqlCommand("spGetAllEmployees", con);
                cmd.CommandType = CommandType.StoredProcedure;
                con.Open();

                SqlDataReader rdr = cmd.ExecuteReader();
                while (rdr.Read())
                {
                    Employee employee = new Employee();
                    employee.ID = Convert.ToInt32(rdr["ID"]);
                    employee.Name = rdr["name"].ToString();
                    employee.Gender = rdr["gender"].ToString();
                    employee.City = rdr["city"].ToString();
                    employee.DateOfBirth = Convert.ToDateTime(rdr["dateofbirth"]);

                    Employees.Add(employee);

                }

            }


Help me to resolve pls.

Thanks, Geetha
AnswerRe: System.InvalidOperationException TimeOut Expired. Pin
hypermellow18-Jun-14 4:39
professionalhypermellow18-Jun-14 4:39 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
Member 1071694918-Jun-14 4:49
Member 1071694918-Jun-14 4:49 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
hypermellow18-Jun-14 5:09
professionalhypermellow18-Jun-14 5:09 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
Member 1071694918-Jun-14 5:25
Member 1071694918-Jun-14 5:25 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
Member 1071694918-Jun-14 5:27
Member 1071694918-Jun-14 5:27 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
Member 1071694918-Jun-14 5:27
Member 1071694918-Jun-14 5:27 
AnswerRe: System.InvalidOperationException TimeOut Expired. Pin
thatraja19-Jun-14 0:11
professionalthatraja19-Jun-14 0:11 
GeneralRe: System.InvalidOperationException TimeOut Expired. Pin
Member 1071694919-Jun-14 1:33
Member 1071694919-Jun-14 1:33 
QuestionHow/where to set the Anti-MIME-Sniffing header X-Content-Type-Options to 'nosniff'. Pin
antony beula17-Jun-14 20:55
antony beula17-Jun-14 20:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.