Click here to Skip to main content
15,921,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web Service Deployment and Usage Pin
Abhishek Sur10-May-10 12:38
professionalAbhishek Sur10-May-10 12:38 
AnswerRe: Web Service Deployment and Usage [EDIT #2] Pin
Martin Jarvis10-May-10 12:41
Martin Jarvis10-May-10 12:41 
GeneralRe: Web Service Deployment and Usage [EDIT #2] Pin
#realJSOP11-May-10 3:33
professional#realJSOP11-May-10 3:33 
GeneralRe: Web Service Deployment and Usage [EDIT #2] Pin
Martin Jarvis11-May-10 4:58
Martin Jarvis11-May-10 4:58 
QuestionUsing Javascript and server side code to handle button click event Pin
Adam Brown 310-May-10 4:48
Adam Brown 310-May-10 4:48 
AnswerRe: Using Javascript and server side code to handle button click event Pin
Brij10-May-10 6:29
mentorBrij10-May-10 6:29 
AnswerRe: Using Javascript and server side code to handle button click event Pin
Ryan McBeth10-May-10 15:54
Ryan McBeth10-May-10 15:54 
QuestionMail Server Pin
Dhyanga10-May-10 4:45
Dhyanga10-May-10 4:45 
hey,

I got a problem related with mail server. i tried to send email from asp.net. my code is

MailMessage message = new MailMessage("sm@hotmail.com", "sm@hotmail.com");
message.Subject = "Project Request";
message.Body = "Project named " + txtProjectTitle.Text + "has arrived";
message.Priority = MailPriority.High;
SmtpClient client = new SmtpClient("localhost");
client.Send(message);


But i doubt in the smptclient part. I gave localhost but it is giving error like


<pre lang="msil">System.Net.Mail.SmtpException: Failure sending mail. ---&gt; System.Net.WebException: Unable to connect to the remote server ---&gt; System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket&amp; socket, IPAddress&amp; address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception&amp; exception) --- End of inner exception stack trace --- at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress&amp; address, Socket&amp; abortSocket, Socket&amp; abortSocket6, Int32 timeout) at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at ProjectRequestTest._Default.btnSubmit_Click(Object sender, EventArgs e) in C:\Documents and Settings\sm\My Documents\Visual Studio 2008\Projects\ProjectRequestTest\ProjectRequestTest\Default.aspx.cs:line 50</pre>


How to solve it ? or what client name do I have to give and how do I know that name ?

Thanks in advance,
suchi
suchitamanandhar@hotmail.com

AnswerRe: Mail Server Pin
Michel Godfroid10-May-10 11:56
Michel Godfroid10-May-10 11:56 
QuestionSyntax error: Missing operand after '12' operator. Pin
sankararao10-May-10 2:47
sankararao10-May-10 2:47 
AnswerRe: Syntax error: Missing operand after '12' operator. Pin
Brij10-May-10 2:58
mentorBrij10-May-10 2:58 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
sankararao10-May-10 3:06
sankararao10-May-10 3:06 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
Brij10-May-10 3:16
mentorBrij10-May-10 3:16 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
sankararao10-May-10 3:26
sankararao10-May-10 3:26 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
Brij10-May-10 3:52
mentorBrij10-May-10 3:52 
AnswerRe: Syntax error: Missing operand after '12' operator. Pin
Not Active10-May-10 3:23
mentorNot Active10-May-10 3:23 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
sankararao10-May-10 3:42
sankararao10-May-10 3:42 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
Not Active10-May-10 4:22
mentorNot Active10-May-10 4:22 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
fjdiewornncalwe10-May-10 4:04
professionalfjdiewornncalwe10-May-10 4:04 
GeneralRe: Syntax error: Missing operand after '12' operator. Pin
sankararao10-May-10 4:13
sankararao10-May-10 4:13 
AnswerRe: Syntax error: Missing operand after '12' operator. Pin
fjdiewornncalwe10-May-10 8:27
professionalfjdiewornncalwe10-May-10 8:27 
Questionhtml looks different in Firefox Pin
Tridip Bhattacharjee10-May-10 2:41
professionalTridip Bhattacharjee10-May-10 2:41 
AnswerRe: html looks different in Firefox Pin
Brij10-May-10 2:51
mentorBrij10-May-10 2:51 
AnswerRe: html looks different in Firefox Pin
Abhijit Jana10-May-10 3:06
professionalAbhijit Jana10-May-10 3:06 
AnswerRe: html looks different in Firefox Pin
Peace ON10-May-10 3:52
Peace ON10-May-10 3:52 

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.