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

The type or namespace name 'Telerik' could not be found

1 Answer 1387 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 24 Aug 2011, 03:29 PM
Hi,

I am attempting to create a Console Application to schedule the creation of reports programmatically.  I found your example for creating PDF-files that seems easy enough.

I added a reference to Telerik.Reporting.  I also added "using Telerik.Reporting.Processing;".  Visual Studio 2010 intellisense seemed to accept the syntax and I was presented with intellisense "period-alternatives" (and no squiggly red underlines).

However, when I then attempted to build the project, I received the following error-message:
"The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)"

Versions:
Telerik Reporting Q2 2011
Visual Studio 2010 (SP1)
.Net 4.0

Questions:
1. Are there known "issues" using Telerik Reporting with Console Applications?
2. Where else could I possibly reference the Telerik dll?
3.  Since this is a very common need, could you provide sample code for a Console Application?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Roman
Top achievements
Rank 1
answered on 25 Aug 2011, 01:39 PM
I found the solution in a different post. 

In the project properties (for Console Applications), the default Target framework is .NET  Framework 4 Client Profile

This should be changed to simply .NET Framework 4.

Tags
General Discussions
Asked by
Roman
Top achievements
Rank 1
Answers by
Roman
Top achievements
Rank 1
Share this question
or