'/' 응용 프로그램에 서버 오류가 있습니다.

개체를 DBNull에서 다른 형식으로 캐스팅할 수 없습니다.

설명: 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 스택 추적을 검토하여 발생한 오류 및 코드에서 오류가 발생한 위치에 대한 자세한 정보를 확인하십시오.

예외 정보: System.InvalidCastException: 개체를 DBNull에서 다른 형식으로 캐스팅할 수 없습니다.

소스 오류:

현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 생성되었습니다. 아래의 예외 스택 추적을 사용하여 예외의 원인 및 위치 정보를 확인할 수 있습니다.

스택 추적:


[InvalidCastException: 개체를 DBNull에서 다른 형식으로 캐스팅할 수 없습니다.]
   System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +60
   Rtomato_MVC.Models.DAO.NoticeDAO.GetNoticeDetail(Int32 seq) in D:\project\rtomato_MVC\Rtomato_MVC\Rtomato_MVC\Models\DAO\NoticeDAO.cs:68
   Rtomato_MVC.Controllers.NoticeController.NoticeDetail(Int32 seq) in D:\project\rtomato_MVC\Rtomato_MVC\Rtomato_MVC\Controllers\NoticeController.cs:32
   lambda_method(Closure , ControllerBase , Object[] ) +141
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +80
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +466
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +659
   System.Web.Mvc.Controller.ExecuteCore() +147
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +60
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +60
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


버전 정보: Microsoft .NET Framework 버전:4.0.30319; ASP.NET 버전:4.8.4075.0