 |

06-02-2008, 19:22
|
|
|
חבר מתאריך: 17.05.05
הודעות: 7,321
|
|
עדכון: תראו מה מצאתי
בתגובה להודעה מספר 1 שנכתבה על ידי DCD שמתחילה ב "המורה שלי מאתגרת אותי לפרוץ לפורום שלה, הבנוי ב-ASP.NET"
כתבתי לה בטופס (במתודת POST) את המילים "ניסיון - הודעה ארוכה מידי" (רק שהכפלתי את הטקסט בכמה אלפים...). בקיצור, כתבתי מחרוזת ארוכה מאוד ושלחתי.
זה היה טופס של הוספת הודעה בפורום. הוא כולל נושא, תוכן הודעה, קובץ להעלות, תיאור הקובץ וכו'... (כתבתי בתגובתי למעלה על הדברים שיש בטופס)
ASP.NET החזיר לי הודעת שגיאה (כמובן...) ואלו הדברים שכתב לי:
(בלוק הקוד הראשון הוא החשוב ביותר לעניות דעתי)
ציטוט:
,14,,,,,
at SQLsp.SQLBase.handleError(String message)
at SQLsp.Forums.AddForumMessageI..ctor(Int32 ForumID, Int32 ReplyToMsgID, String MessageSubject, String MessageContent, Int32 MemberID, String MessageAttachExten, String AttachDesc, String MessageLink, String MessageLinkDesc, String writerName)
at Forums.NewMessage.btnSubmit_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
at System.Web.UI.Page.ProcessRequestMain()
[HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException was thrown.
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
--><!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
|
ציטוט:
@MemberID=14 @MessageAttachExten= @AttachDesc= @MessageLink= @MessageLinkDesc= @writerName= exec [Forums_AddForumMessageI] ,1,-1,ניסיון - ,ניסיון -
|
ציטוט:
[myException]: [Forums_AddForumMessageI]: String or binary data would be truncated.
The statement has been terminated. @retval= @ForumID=1 @ReplyToMsgID=-1 @MessageSubject=ניסיון - @MessageContent=ניסיון - ניסיון -
|
ציטוט:
,14,,,,,]
SQLsp.SQLBase.handleError(String message) +615
SQLsp.Forums.AddForumMessageI..ctor(Int32 ForumID, Int32 ReplyToMsgID, String MessageSubject, String MessageContent, Int32 MemberID, String MessageAttachExten, String AttachDesc, String MessageLink, String MessageLinkDesc, String writerName) +248
Forums.NewMessage.btnSubmit_Click(Object sender, EventArgs e)
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
|
אז מה דעתכם על זה?
1. מה שאני די לא בטוח בו הוא: מה הם הדברים האלה שבצד שמאל שלהם יש שטרודל(@) ? אלו משתנים? או אולי שמות של טורים בטבלה במסד נתונים?
אני לא מכיר ממש את DOT NET ככה שקשה לי להבין כל אחד מהדברים פה...
אני מתכוון לקוד הבא:
ציטוט:
The statement has been terminated. @retval= @ForumID=1 @ReplyToMsgID=-1 @MessageSubject=ניסיון - @MessageContent=ניסיון
|
2. בלוק הקוד הראשון שכתבתי הוא נראה לי החשוב ביותר...
כתוב בו המידע הבא:
ציטוט:
at SQLsp.Forums.AddForumMessageI..ctor(Int32 ForumID, Int32 ReplyToMsgID, String MessageSubject, String MessageContent, Int32 MemberID, String MessageAttachExten, String AttachDesc, String MessageLink, String MessageLinkDesc, String writerName)
|
שזה כנראה כל המשתנים הקשורים לאותו העמוד ב-DOT NET.
מה זה SQLsp ? מסד הנתונים שלה? הוא לא צריך להיות SQL SERVER?
צורת הפירוט של ASP.NET על השגיאות שלו מאוד לא מובנת...
בנוסף יש את השורה הבאה:
ציטוט:
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
|
שמעידה על הגדרות ASP.NET במקרה של תקלות\שגיאות.
עכשיו, מה שאני צריך לדעת, זה איך שני הדברים האלה יכולים לעזור לי. הם נראים לי כמו 2 הדברים החשובים ביותר מלבד הדברים שבשאלה הראשונה שכתבתי.
תודה 
נערך לאחרונה ע"י DCD בתאריך 06-02-2008 בשעה 19:27.
|
|