Click here to Skip to main content
15,891,951 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Frustrating! Datagrid - Get the information! Pin
Richard Leighton16-Mar-09 7:09
Richard Leighton16-Mar-09 7:09 
GeneralRe: Frustrating! Datagrid - Get the information! Pin
led mike16-Mar-09 7:47
led mike16-Mar-09 7:47 
RantRe: Frustrating! Datagrid - Get the information! Pin
Richard Leighton16-Mar-09 7:49
Richard Leighton16-Mar-09 7:49 
GeneralRe: Frustrating! Datagrid - Get the information! Pin
led mike16-Mar-09 7:55
led mike16-Mar-09 7:55 
Question"ASP" Sending Email Doesn't deliver.. Pin
D.Manivelan16-Mar-09 5:05
D.Manivelan16-Mar-09 5:05 
AnswerDon't cross post Pin
led mike16-Mar-09 5:34
led mike16-Mar-09 5:34 
JokeRe: Don't cross post Pin
Yusuf16-Mar-09 9:03
Yusuf16-Mar-09 9:03 
Questionproblem with SMTP email --System.Net.Sockets.SocketException Pin
developer_zone116-Mar-09 4:35
developer_zone116-Mar-09 4:35 
I am developing an application , it has to send an email to a admin notifying the new user registration, so that admin can approve it. The email is sent when ever a new user registers into the system.

Everything is running fine , in my computer. It is sending an email , everything works fine.
but when I move the code to the testing server, its give the following error .


Server Error in '/' Application.
--------------------------------------------------------------------------------

No connection could be made because the target machine actively refused it
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

Source Error:


Line 222: }
Line 223: catch (Exception ex)
Line 224: { throw ex; }
Line 225:
Line 226:


Source File: c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs Line: 224

Stack Trace:


[SocketException (0x274d): No connection could be made because the target machine actively refused it]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002146
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +431

[WebException: Unable to connect to the remote server]
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1447736
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +190
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +318
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +227
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485

[SmtpException: Failure sending mail.]
NewUserRegistration.btnSubmit_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\CIVARS\CIVAR\NewUserRegistration.aspx.cs:224
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Please help me out...

Thanks
AnswerRe: problem with SMTP email --System.Net.Sockets.SocketException Pin
Yusuf16-Mar-09 4:59
Yusuf16-Mar-09 4:59 
QuestionProblem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam16-Mar-09 4:15
Rashmi_Karnam16-Mar-09 4:15 
AnswerRe: Problem in renaming CSV file after hosting ASP.NET application Pin
ToddHileHoffer16-Mar-09 4:24
ToddHileHoffer16-Mar-09 4:24 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam25-Mar-09 3:00
Rashmi_Karnam25-Mar-09 3:00 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
ToddHileHoffer25-Mar-09 4:40
ToddHileHoffer25-Mar-09 4:40 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam25-Mar-09 20:02
Rashmi_Karnam25-Mar-09 20:02 
QuestionRegarding Securint Web Services Pin
vinodkrebc16-Mar-09 2:40
vinodkrebc16-Mar-09 2:40 
AnswerRe: Regarding Securint Web Services Pin
SeMartens16-Mar-09 3:01
SeMartens16-Mar-09 3:01 
GeneralRe: Regarding Securint Web Services Pin
vinodkrebc16-Mar-09 17:54
vinodkrebc16-Mar-09 17:54 
GeneralRe: Regarding Securint Web Services Pin
SeMartens16-Mar-09 23:05
SeMartens16-Mar-09 23:05 
QuestionCapturing data programatically from pdf file in asp.net (XML format) Pin
_Sun16-Mar-09 2:31
_Sun16-Mar-09 2:31 
QuestionAjax enabled page stops responding after kept idle for some time. Pin
Member 56545116-Mar-09 2:12
Member 56545116-Mar-09 2:12 
AnswerRe: Ajax enabled page stops responding after kept idle for some time. Pin
led mike16-Mar-09 5:36
led mike16-Mar-09 5:36 
GeneralRe: Ajax enabled page stops responding after kept idle for some time. Pin
Member 56545116-Mar-09 18:49
Member 56545116-Mar-09 18:49 
QuestionWeb service? Pin
Karthick_gc16-Mar-09 1:54
Karthick_gc16-Mar-09 1:54 
AnswerRe: Web service? Pin
Blue_Boy16-Mar-09 2:03
Blue_Boy16-Mar-09 2:03 
AnswerRe: Web service? Pin
SeMartens16-Mar-09 2:11
SeMartens16-Mar-09 2:11 

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.