• Register
3 votes

Problem :

I am very new to Crystal Report. I have recently got one project which needs me to make a crystal report in the asp.net for my web application. My previous reports were working very well. But recently my reports have started showing me below error message.

Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
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.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
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: [COMException (0x8002000b): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))]
Report_Viewer.Page_Load(Object sender, EventArgs e) +894
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

Please find below my system configuration for your reference:

Microsoft .NET Framework Version:- 2.0.50727.4927,

ASP.NET Version:- 2.0.50727.4927,

VS:- VS 2008,

Database:- MS SQL Express 2005,

OS:- Windows 7

Can somebody help me in fixing my issues?

8 5 2
3,230 points

1 Answer

2 votes

Solution :

I have gone through your error message. I can help you in fixing your error.

Above error message can occur in below conditions.

In your below line I guess you want to check that whether the parameter exists or not. crParameterFieldDefinitions["@Parameter1"];

But I think that parameter which you want to check is not available. So you are facing the error.

If the parameter names which you have set in the code are completely different from the parameter names which you have defined in your report.

8 4
5,680 points

Related questions

0 votes
2 answers 92 views
Problem : I am facing below error: Index and length must refer to a location within the string. Parameter name: length I am using below code: string s1 = ddlweek.Text.Substring(0, 8); string s3 = ddlweek.Text.Substring(10, 14); How can I resolve the error?
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 89 views
Problem : I am new to ASP.Net and I have an ASP.Net application which runs correctly on my local development machine. But when I try to run this application online, it shows me following error Format of the initialization string does not conform to specification starting at index 0 I don’t have any clue about this error. Does anybody have any idea regarding solution on this error?
asked Nov 25, 2019 alecxe 7.5k points
0 votes
1 answer 5 views
Problem: Hi, I want to take multiple employee ids in one shot from the user and need to assign them to list .in asp.net, pls help me to sort it out. What I have tried. I have created a text box and tried with validator but it didn't worked out.
asked Sep 14 boris elin 620 points
0 votes
1 answer 8 views
I am newbie to C# I am confused by .Net Garbage Collection logic. When does GC free memory?
asked Oct 8 alexh 580 points