Click here to Skip to main content
15,898,538 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: authentication Pin
Walter_H18-Feb-07 19:41
Walter_H18-Feb-07 19:41 
GeneralRe: authentication Pin
Sebastian T Xavier18-Feb-07 20:06
Sebastian T Xavier18-Feb-07 20:06 
Questionfooter page information appear in new page in crystal report Pin
AjayKrSh18-Feb-07 17:51
AjayKrSh18-Feb-07 17:51 
AnswerRe: footer page information appear in new page in crystal report Pin
Sylvester george18-Feb-07 19:52
Sylvester george18-Feb-07 19:52 
GeneralRe: footer page information appear in new page in crystal report Pin
AjayKrSh19-Feb-07 0:02
AjayKrSh19-Feb-07 0:02 
QuestionNeed Help with Gridview RowState. Pin
xiao bin bin18-Feb-07 7:41
xiao bin bin18-Feb-07 7:41 
AnswerRe: Need Help with Gridview RowState. Pin
bayo18-Feb-07 7:55
bayo18-Feb-07 7:55 
QuestionLogin failed for user 'NIT\ASPNET'. Pin
Nitin198118-Feb-07 7:00
Nitin198118-Feb-07 7:00 
AnswerRe: Login failed for user 'NIT\ASPNET'. Pin
Colin Angus Mackay18-Feb-07 22:30
Colin Angus Mackay18-Feb-07 22:30 
GeneralRe: Login failed for user 'NIT\ASPNET'. Pin
Nitin198119-Feb-07 6:27
Nitin198119-Feb-07 6:27 
GeneralRe: Login failed for user 'NIT\ASPNET'. Pin
Nitin198119-Feb-07 7:22
Nitin198119-Feb-07 7:22 
GeneralRe: Login failed for user 'NIT\ASPNET'. Pin
Colin Angus Mackay21-Feb-07 14:02
Colin Angus Mackay21-Feb-07 14:02 
QuestionUpdating data from a gridview in code Pin
bayo18-Feb-07 5:39
bayo18-Feb-07 5:39 
QuestionDatabase. Pin
v45030518-Feb-07 5:18
v45030518-Feb-07 5:18 
AnswerRe: Database. Pin
bayo18-Feb-07 5:30
bayo18-Feb-07 5:30 
GeneralRe: Database. Pin
v45030518-Feb-07 6:22
v45030518-Feb-07 6:22 
GeneralRe: Database. Pin
Guffa18-Feb-07 6:40
Guffa18-Feb-07 6:40 
GeneralRe: Database. Pin
bayo18-Feb-07 7:50
bayo18-Feb-07 7:50 
QuestionGoing hell with datagrid Pin
www.Developerof.NET18-Feb-07 4:22
www.Developerof.NET18-Feb-07 4:22 
AnswerRe: Going hell with datagrid Pin
Sylvester george18-Feb-07 20:03
Sylvester george18-Feb-07 20:03 
Questionhow can i build a search engine with c#.net Pin
shawn41418-Feb-07 4:20
shawn41418-Feb-07 4:20 
AnswerRe: how can i build a search engine with c#.net Pin
Colin Angus Mackay18-Feb-07 4:41
Colin Angus Mackay18-Feb-07 4:41 
AnswerRe: how can i build a search engine with c#.net Pin
GaryWoodfine 18-Feb-07 12:22
professionalGaryWoodfine 18-Feb-07 12:22 
QuestionSMTP - Trouble sending message in ASP.Net but not as a C# application on my machine? Pin
hetrobezz17-Feb-07 23:13
hetrobezz17-Feb-07 23:13 
I'm having a problem with this peice of code and for the life of me I cant figure out why. If I run it as a C# application on my computer it will send an email to the testaddress@gmail.com containing the text "HI!" ... When I copy this code into my Asp.Net applictation and run it on the server I get the error shown below the code... The server version is also shown. Any ideas would be very welcome as I've been trying to make this work for several hours now!



<br />
    protected void Button1_Click(object sender, EventArgs e)<br />
    {<br />
        MailMessage message = new MailMessage("mailer@testdomain.com", "testaddress@gmail.com", "feedback", "HI!");<br />
        SmtpClient mailClient = new SmtpClient("mail.testdomain.com");<br />
<br />
        mailClient.Port = 25;<br />
        mailClient.UseDefaultCredentials = false;<br />
        mailClient.Credentials = new NetworkCredential("mailer@testdomain.com", "test");<br />
        mailClient.DeliveryMethod = SmtpDeliveryMethod.Network;<br />
<br />
        mailClient.Send(message);<br />
        <br />
<br />
<br />
        message.Dispose();<br />
    }<br />


Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23 <br />
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. <br />
<br />
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23<br />
<br />
Source Error: <br />
<br />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  <br />
<br />
Stack Trace: <br />
<br />
<br />
[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23]<br />
   System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +819256<br />
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316<br />
   System.Net.Mail.SmtpClient.GetConnection() +42<br />
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2004<br />
   Email.Button1_Click(Object sender, EventArgs e) +153<br />
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105<br />
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107<br />
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7<br />
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11<br />
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102<br />
<br />
 <br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 


Thank you in advance,

Curt
AnswerRe: SMTP - Trouble sending message in ASP.Net but not as a C# application on my machine? Pin
badgrs18-Feb-07 0:51
badgrs18-Feb-07 0:51 

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.