579
צפיות
צפיות
6
תשובות
תשובות
שאלה בקשר לשליחת אי מייל
בס"ד
שלום.
קראתי את המאמר כאן באתר על שליחת אי מייל עם ASP.NET
אבל אני לא מצליח.
הוא רושם שגיאת שרת.
בשורה של ה – smtp רשמתי לו mail.gmail.com
וגם עשיתי הרשאה בחשבון שלי ל- POP3.
מה הבעיה ?
תודה רבה.
6 תשובות
שאלה בקשר לפקדי שרת
בס"ד
שלום לכם מומחים יקרים
שאלה.
בניתי לאתר שלי פקד שיהיה תפריט בכל האתר.
עכשיו בדף הבית הוא עובד טוב, אך בדפים פנימיים הקישורים לא עובדים. כלומר, הוא
מראה את התפריט אך הקישורים לא עובדים.
כשאני רושם אותו אני כמובן מציב src="../../the page.aspx" וכו"
אך בפועל הלינקים לא עובדים.
השאלה היא מדוע ?
הרי הקובץ עצמו (התפריט.ascx) נמצא בספריה הראשית, ומשם הקישורים יחסיים ?
תודה רבה.
מנחם
smtp ו pop3 אלו שני דברים שונים.
חוצמזה, מה השגיאה המדוייקת?
זה לא משנה איפה יושב ה ascx,
בסופו של התהליך, הדפדפן מקבל דף html אחד, ולא יודע להבדיל איזה חלק ממנו הוא ה ascx ואיזה חלק הוא ה aspx.
עברה קצת יותר משנה מאז שנגעתי ב asp.net, אבל למיטב זכרוני אתה יכול באחת מהמתודות של הטעינה של ה ascx לגלות לאיזה דף הוא משוייך כרגע, ולפי זה לקבוע את הנתיב היחסי לקישורים.
זוהי הודעת השגיאה
——————————————————————————–
השרת דחה את כתובת השולח. תגובת השרת היתה: 530 5.7.0 Must issue a STARTTLS command first 29sm1327728uga
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.Runtime.InteropServices.COMException: השרת דחה את כתובת השולח. תגובת השרת היתה: 530 5.7.0 Must issue a STARTTLS command first 29sm1327728uga
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
וגם זה
[COMException (0x8004020e): השרת דחה את כתובת השולח. תגובת השרת היתה: 530 5.7.0 Must issue a STARTTLS command first 29sm1327728uga
]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +2501344
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +72
[HttpException (0x80004005): השרת דחה את כתובת השולח. תגובת השרת היתה: 530 5.7.0 Must issue a STARTTLS command first 29sm1327728uga
]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +119
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +2684
System.Web.Mail.SmtpMail.Send(MailMessage message) +131
ASP.zeitim_order_aspx.submitEmail(Object obj, EventArgs e) +159
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
לא יודע, לא נתקלתי בשגיאה הזו