This is a migrated thread and some comments may be shown as answers.

Reports Upgrade Failure - Help :-(

4 Answers 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 15 Jul 2011, 09:46 AM
HI there folks

i've just tried to upgrade my solution 

which had been using Telerik Reports Q1 2011

and i've tried upgrading it to Telerik Reports Q2 2011

the upgrade goes through successfully 

but when I try to build I recieve the following error message on all of my Report Designer.cs files


'Telerik.Reporting.ReportParameter' does not contain a definition for 'UI' and no extension method 'UI' accepting a first argument of type 'Telerik.Reporting.ReportParameter' could be found (are you missing a using directive or an assembly reference?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Jul 2011, 10:58 AM
Hi Brian,

You must be upgrading from a pretty old version as Telerik.Reporting.ReportParameter.UI property is obsolete since Q1 2010 (see release notes: Q1 2010). It was obsolete for 2 Qs and we showed warning messages about it and how to update it to stay current. Now that it has been removed from the code, it is natural that you receive an error that it does not exist.
You should scour the designer file of your reports and namely the InitializeComponent() method for code containing UI and delete it by hand.

Best wishes,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
IT
Top achievements
Rank 1
answered on 15 Jul 2011, 11:05 AM
Thanks for getting back to me so quickly

I upgraded to 2011 from 2010

a few months ago without any issue.

But of course this is now the problem I have

Just so i'm sure could you please explain the steps required in order for me to fix this?

what do I need to delete and do I need to replace it with anything else?


Thanks again 

0
Steve
Telerik team
answered on 15 Jul 2011, 11:26 AM
Hi Brian,

The answer how to proceed is contained within my previous post:

You should scour the designer file of your reports and namely the InitializeComponent() method for code containing UI and delete it by hand.

The change we did, was to remove the UI section from the report parameters i.e. all properties that have been under the UI section are now accessible directly from the report parameter. Open the designer file, Visual Studio would point you to the incorrect code and delete the UI part.

Greetings,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
IT
Top achievements
Rank 1
answered on 15 Jul 2011, 11:28 AM
Hi there,


Yes I've since looked through the code and found the elements which require modifying

Thanks again

Tags
General Discussions
Asked by
IT
Top achievements
Rank 1
Answers by
Steve
Telerik team
IT
Top achievements
Rank 1
Share this question
or