2014-03-03 2 views
-1

다른 사람들이 내가 작업하도록 요청받은 ASP 웹 사이트에 직면하고있는 문제에 대한 해결책이 있는지 궁금합니다. 그러나 Microsoft .net 프레임 워크에 대한 경험이 없습니다. 다음과 같은 오류.net 오류 - '/'응용 프로그램의 서버 오류

웹 사이트 첫 페이지가로드되지 않지만, 대신에 던졌습니다 :

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.] Incon.Default.Page_Load(Object sender, EventArgs e) +261
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

이 페이지의 나머지 부분에서 문제가 발생하지 않습니다를 다음과 같이

문제는 로딩과 전혀 문제가 어디서 왔는지 알아 내려고 많은 시간을 낭비하고 있습니다.

미리 도움을 청하십시오.

+1

'Stackoverflow.com'에 오신 것을 환영합니다. '객체 참조가 객체의 인스턴스로 설정되지 않았습니다'는 'Default.aspx'페이지의 'Page_Load' 이벤트에서 무언가가 null임을 나타냅니다. 그것에 중단 점을 설정하고 ... 당신이 스스로 문제를 해결할 것입니다 .. 희망이 도움이 –

+0

당신은 페이지를 디버깅 할 수 있고 당신이 페이지로드에 사용중인 null 값이 어디에 있는지 찾아보십시오 –

+0

고맙습니다. 이 지금 :) – Und3rTow

답변

1

제공 한 코드 (코드 없음)에서 정확한 원인을 찾아내는 것은 매우 어렵습니다. 말할 수있는 것은 당신이 접근하려고하는 객체가 어떤 이유로 null이라는 것입니다.

stacktrace는 페이지의 코드 숨김 파일의 Page_Load 메서드에서 261 줄 주위를 액세스하려고 시도하는 사용자 컨트롤 중 하나 인 것으로 나타냅니다.

사용자 정의 컨트롤에 ID와 runat = "server"속성이 있는지 확인하고 코드 숨김 파일에서 사용자 컨트롤에 액세스 할 수 있는지 확인하십시오.

+1

OP가 코드를 제공하지 않았습니다.) –

+0

허, 사실, 내가 허락 해 주도록 허락 해주세요. – Robban

관련 문제