iT邦幫忙

0

webform 偶發出現Server Error in '/' Application 問題

  • 分享至 

  • xImage

此網站已架設多年
使用webform的方式撰寫
透過微軟的雲端服務Azure 的 webapp架設網站

目前遇到的問題

網站無論任何時候都可以進入首頁(只有帳號和密碼和登入按鈕的頁面),但輸入完畢帳密按下登入就會產生以下錯誤
以下錯誤並不是常態發生,當重新發布網站,或是將網站重開後,大約一個月才會遇到一次這樣的問題
當這個問題發生後,只有重開網站或是重新發布網站才能解決這個問題
也就是說不曉得為什麼,用了將近一個月左右就會發生這種問題...而重開網站就會自動好了,有人知道是甚麼問題嗎?...小弟百思不得其解...

Index was outside the bounds of the array.
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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

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.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) +0
   System.Array.GetValue(Int32 index1, Int32 index2) +94
   Microsoft.VisualBasic.CompilerServices.Container.GetArrayValue(Object[] Indices) +260
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.InternalLateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, ResolutionFailure& Failure, Boolean[] CopyBack) +211
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateInvokeDefault(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, Boolean[] CopyBack) +118
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.InternalLateInvokeDefault(Object Instance, Object[] Arguments, String[] ArgumentNames, Boolean ReportErrors, Boolean[] CopyBack) +64
   AccountWebform.Index.Button1_Click(Object sender, EventArgs e) in C:\Users\User\OneDrive\AccountWebform\AccountWebform\Index.aspx.vb:20
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9796650
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +211
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1696

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0
/?aaa=123 不被允許,請具名寫上 /Default.aspx?aaa=123
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答