Server Error in '/' Application.

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.]
   System.Data.SqlClient.SqlConnection.get_TypeSystem() +40
   System.Data.SqlClient.SqlDataReader..ctor(SqlCommand command, CommandBehavior behavior) +202
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +221
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +666
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +82
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +197
   Dapper.<QueryInternal>d__d`1.MoveNext() +549
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +239
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +43
   BidDetail.Infrastructure.Data.Repository.GlobalTendersRepository.InsertErrorLog(MainSiteErrorLog model) in D:\Rachana\GitHub_Projects\BidDetailWebSite\BidDetailWebSite\BidDetail.Infrastructure.Data\Repository\GlobalTendersRepository.cs:1191
   BidDetailWebSite.Controllers.BaseController.OnException(ExceptionContext filterContext) in D:\Rachana\GitHub_Projects\BidDetailWebSite\BidDetailWebSite\BidDetailWebSite\Controllers\BaseController.cs:72
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +173
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +164
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +37
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +26
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +24
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +51
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +24
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +37
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +40
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +24
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +601
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +127


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0