PDA

View Full Version : سوال: پابلیش کردن سایت asp



arjmand67
یک شنبه 20 مرداد 1392, 10:54 صبح
سلام
من سایتم و پابلیش می کنم بعد از پابلیش این error میده :گریه:
چکار کنم




Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
Class1..cctor() +73

[TypeInitializationException: The type initializer for 'Class1' threw an exception.]
sabt_user.select_user() +359
sabt_user.random1() +203
sabt_user.Button1_Click(Object sender, EventArgs e) +2713
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

no0rin_66
یک شنبه 20 مرداد 1392, 11:26 صبح
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

اینو در وب کانفیگتون بزارید تا ارور معلوم شود

arjmand67
یک شنبه 20 مرداد 1392, 11:45 صبح
هستش
این دستورات در وب کانفینگ

omid kh
یک شنبه 20 مرداد 1392, 22:36 عصر
با سلام
دوست عزیز درست متوجه نشدم . در هنگام پابلیش کردن این ارورو میده یا بعد از پابلیش که پروِژه رو اجراش میکنی ؟ و این که این خطا چه زمانی رخ میده ( موقع بارگزاری صفحه اصلی یا ...‌ ) .