Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:

Line 56: <tr>


Line 57: <td
colspan="2">
Line 58: <p
style="font-size:20px;">Result for
<b>"@Model[0].searchTextbox"</b> in
<b>@Model[0].searchDropdown</b></p>
Line 59: </td>
Line 60: </tr>

Source File: c:\inetpub\vhosts\gcci.org.pk\gccisite\Views\Membership\TradeDirectoryPDF.cshtml Line: 58

Stack Trace:

[ArgumentOutOfRangeException: Index
was out of range. Must be non-
negative and less than the size of
the collection.
Parameter name: index]

System.ThrowHelper.ThrowArgumentOut
OfRangeException(ExceptionArgument
argument, ExceptionResource
resource) +77
System.Collections.Generic.List`1.g
et_Item(Int32 index) +14369976
ASP._Page_Views_Membership_TradeDir
ectoryPDF_cshtml.Execute() in
c:\inetpub\vhosts\gcci.org.pk\gccis
ite\Views\Membership\TradeDirectory
PDF.cshtml:58
System.Web.WebPages.WebPageBase.Exe
cutePageHierarchy() +252
System.Web.Mvc.WebViewPage.ExecuteP
ageHierarchy() +147
System.Web.WebPages.WebPageBase.Exe
cutePageHierarchy(WebPageContext
pageContext, TextWriter writer,
WebPageRenderingBase startPage)
+122

System.Web.Mvc.ViewResultBase.Execu
teResult(ControllerContext context)
+378
System.Web.Mvc.ControllerActionInvo
ker.InvokeActionResultFilterRecursi
ve(IList`1 filters, Int32
filterIndex, ResultExecutingContext
preContext, ControllerContext
controllerContext, ActionResult
actionResult) +91
actionResult) +91

System.Web.Mvc.ControllerActionInvo
ker.InvokeActionResultFilterRecursi
ve(IList`1 filters, Int32
filterIndex, ResultExecutingContext
preContext, ControllerContext
controllerContext, ActionResult
actionResult) +795
System.Web.Mvc.ControllerActionInvo
ker.InvokeActionResultWithFilters(C
ontrollerContext controllerContext,
IList`1 filters, ActionResult
actionResult) +81
System.Web.Mvc.Async.
<>c__DisplayClass1e.
<BeginInvokeAction>b__1b(IAsyncResu
lt asyncResult) +188
System.Web.Mvc.Async.AsyncControlle
rActionInvoker.EndInvokeAction(IAsy
ncResult asyncResult) +38
System.Web.Mvc.Controller.
<BeginExecuteCore>b__1d(IAsyncResul
t asyncResult, ExecuteCoreState
innerState) +32
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +73

System.Web.Mvc.Controller.EndExecut
eCore(IAsyncResult asyncResult) +52
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +39
System.Web.Mvc.Controller.EndExecut
e(IAsyncResult asyncResult) +38
System.Web.Mvc.MvcHandler.
<BeginProcessRequest>b__4(IAsyncRes
ult asyncResult,
ProcessRequestState innerState) +46
System.Web.Mvc.Async.WrappedAsyncVo
id`1.CallEndDelegate(IAsyncResult
asyncResult) +73
System.Web.Mvc.MvcHandler.EndProces
sRequest(IAsyncResult asyncResult)
+38
System.Web.CallHandlerExecutionStep
.System.Web.HttpApplication.IExecut
ionStep.Execute() +431
System.Web.HttpApplication.ExecuteS
tepImpl(IExecutionStep step) +75
System.Web.HttpApplication.ExecuteS
tep(IExecutionStep step, Boolean&
completedSynchronously) +158

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

You might also like