• Register
3 votes
181 views

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

Please log in or register to answer this question.

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 146 views
146 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 101 views
101 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 7 views
0 votes
1 answer 12 views
12 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, 2020 boris elin 620 points
0 votes
1 answer 17 views
17 views
Problem I am newbie to C# I am confused by .Net Garbage Collection logic. When does GC free memory?
asked Oct 8, 2020 alexh 2.2k points
1 vote
1 answer 30 views
30 views
What does CultureInfo.InvariantCulture mean? How to Convert String to DateTime?How to 2020-09-22 12:57:52,531Class string converted to DateTime ?
asked Sep 21, 2020 Aliza313 720 points
0 votes
1 answer 11 views
11 views
Problem: Hello. I am using visual studio 2019 and doing a project WPF using Telerik UI. I trying to change the cell color of gridview with conditions. please help me. What I have tried: radGridView1.ItemsSource = getdetails_ds.DefaultView; this.radGridView1.Rows[0].Cells[1].Style.ForeColor = System.Drawing.Color.Red;
asked Sep 14, 2020 boris elin 620 points
0 votes
1 answer 13 views
13 views
Problem: Using Javascript in C# var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + "" ... ("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red");
asked Sep 14, 2020 boris elin 620 points
0 votes
1 answer 6 views
6 views
For what reason i am obtaining "Unable to find the requested .Net Framework Data Provider" at the time attempting to setup a fresh datasource in Visual Studio 2010 Professional?
asked Sep 14, 2020 Daniel Anderson 4k points
0 votes
1 answer 21 views