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

Ambiguous namespace issue - version conflict

3 Answers 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Geoff Suddard
Top achievements
Rank 1
Geoff Suddard asked on 07 Sep 2011, 02:43 PM
Hi there

An old version of Telerik Reports (2.0.1.0) I have on a large web site will not compile (publish) when I have the latest version of your reports installed (5_1_11_713). It keeps adding a reference to the new version of the reports in my config file, even though the old version is all that is referenced.

It adds reference to the new version , and then errors out on a section of code that tries to create PDF files:

 buffer = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", rpt, Nothing, mimType, extension, encoding)
 fs = New FileStream(lblPDF.Text & lstSelected.Items(intYCount).Text & ".pdf", FileMode.Create)
fs.Write(buffer, 0, buffer.Length)
  fs.Flush()
 fs.Close()


: The line " Telerik.Reporting.Processing.ReportProcessor.Render" comes back with an 'ambiguous namespace' issue. This code works fine when I uninstall the newer version of the Reports (5_1_11_713).

Thanks - David

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Sep 2011, 09:18 AM
Hi Geoff,

Do you have the 2.0.1.0 version (or at least the reporting assemblies) installed/available on your developer machine?
If you have only the latest version 5.1.11.713 installed and you make modifications to the project utilizing the reports, then that is why a reference to the new version is added, as the project needs to be upgraded to the new version in order to utilize the Report Designer.

If you do not want to upgrade to the latest version, then you would have to install the older version on the dev machine as well, so that you can use the designer and modify the reports.

We highly recommend reviewing the following help section for more information on deployment: Deploying Applications using Telerik Reporting.

Regards,
Steve
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Geoff Suddard
Top achievements
Rank 1
answered on 08 Sep 2011, 04:17 PM
Hi Steve

Thanks, I will be sure to have a look at the help section link you sent.

I do have the older version (2.0.1.0) installed as well. One thing I did not mention is that the older web site is in 2005, and when I installed the newer version I did uncheck the 2005 portion (only installed 5_1_11_713 for 2008). That is why I was confused it keeps adding a reference to the config file in 2005?

Thanks 
0
Steve
Telerik team
answered on 08 Sep 2011, 04:40 PM
Hi Geoff Suddard,

If you have unchecked the support for Visual Studio 2005 from the installation wizard, then it should not be available at all in this VS version and we do not see how it could get added to the config file. As we have not been able to reproduce this on our end and you are the first person to report it, we would appreciate if you identify/isolate steps to replicate this.
If this happens every time you work with this project, you can replace the references prior deployment everytime, which of course is not an actual solution, but at least it would get you running.

Kind regards,
Steve
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

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