为什么编译后的网站 在IIS上就报错,不编译直接添加就一切正常
做的一个网站,通过VS2008发布网站后,放到IIS里 用户名和密码输入登录后,就开始报错Server Error in '/' Application.
--------------------------------------------------------------------------------
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.]
DB_ORMapping.baseMapping.AddToFields() +139
Consume2008.Logic.UserManager.CheckUser(String userid, String pass, String& storeid) +40
_Default.loginPageButton_Click(Object sender, EventArgs e) +81
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
System.Web.UI.WebControls.ImageButton.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
但是如果我把这个网站不编译,直接放到IIS里,是一切正常,VS2008里 调试代码也是一切正常。
不知道问题出在哪,或者是应该如何才能一步步找出问题所在来,谢谢! --------------------编程问答-------------------- 可能是ORM配置文件路径的问题,用调试器附加到IIS进程调试
补充:.NET技术 , ASP.NET