• Register
3 votes
269 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 1
5,680 points

Related questions

0 votes
1 answer 14 views
14 views
Problem: exception of type 'system.outofmemoryexception' was thrown
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 11 views
0 votes
2 answers 282 views
282 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 129 views
129 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
0 answers 3 views
3 views
Problem: i need some help about this problem you are not authorized to view this page due to invalid authentication headers.
asked Mar 17 Rohit kr 16.2k points
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 3 views
3 views
Problem: What are my options for dealing with this issue? old format or invalid type library. (exception from hresult: 0x80028018 (type_e_invdataread)
asked Apr 5 tuhin1 48.9k points
0 votes
1 answer 2 views
2 views
Problem: I keep getting this error when I try to have 2 "Get" methods Multiple actions were found that match the request: webapi I been looking around at the other similar questions about this on stack but I don't get it. I have 2 different ... " attribute [HttpGet] public HttpResponseMessage Summary(MyVm vm) { return null; } [HttpGet] public HttpResponseMessage FullDetails() { return null; }
asked 2 days ago Atik03 10.1k points
0 votes
1 answer 2 views
2 views
Problem: I am presently working on an application with 3.5 framework. Would it be better to move the application to 4.0 or 4.5? What are the features/enhancements which are added in .NET 4.5 and not available in 4.0?
asked 4 days ago ummesalma 25.2k points
0 votes
1 answer 2 views
2 views
Problem: Gateway error this transaction cannot be accepted.
asked 4 days ago Dan phillip 4.8k points