Click here to Skip to main content
16,017,306 members

Comments by AshiqueAhammed (Top 9 by date)

AshiqueAhammed 27-Apr-11 5:41am View    
the class library was using ReportViewer 8.0.0.0, But the aspx page containing ReportViewer is referencing 10.0.0.0
It makes the error when adding the ReportParameter means ReportParameter exist in boath assembly that makes the conflict
AshiqueAhammed 26-Apr-11 6:42am View    
Thank you Mr.Manfred,
I really appreciate your answer because the version of the report viewer is the problem.
I solved it by adding the reference of ReportViewer 10.0.0.0
AshiqueAhammed 21-Apr-11 1:08am View    
Dear,
I tried it like this
DataRow dr = dtCompanyInfo.Rows[0];
string cmpName = dr["CompanyName"].ToString();
paramList.Add(new ReportParameter("Company_Name", cmpName));

But still i am getting the same error.
I just went through the exception details and i saw the error like this

StackTrace: at System.Collections.Generic.List`1.Add(T item)

i also noticed something like this
{mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089}
is this version any problem

Please help me to solve this
AshiqueAhammed 21-Apr-11 1:07am View    
Dear,
I tried it like this
DataRow dr = dtCompanyInfo.Rows[0];
string cmpName = dr["CompanyName"].ToString();
paramList.Add(new ReportParameter("Company_Name", cmpName));

But still i am getting the same error.
I just went through the exception details and i saw the error like this

StackTrace: at System.Collections.Generic.List`1.Add(T item)

i also noticed something like this
{mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089}
is this version any problem

Please help me to solve this
AshiqueAhammed 20-Apr-11 8:10am View    
My Friend,
after the add statement executed the exception is like this
"Attempted to access an element as a type incompatible with the array."
thanks for your reply.