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

Build Failure

5 Answers 364 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 10 Mar 2008, 01:52 PM
We are currently running our builds through TFS. On our local machine, everything with the reports runs just fine, but when it runs through TFS, we end up getting some unusual errors and the build fails. I've copied the 4 required DLLs for web forms out to our additional references folder, which is all we've ever had to do in the past. Anyhow, the first time the build ran we got the following error:
C:\BUILD\Build\LearnShare Team Project\FEATURE Build\Sources\LMSOBJECTS\LMSReport.vb(7): warning BC40056: Namespace or type specified in the Imports 'Telerik.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. 
MSBUILD : warning : TF42097: A work item could not be created for build failure. The value for the following required fields is invalid or missing: Assigned To 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(7): error BC31072: Warning treated as error : Namespace or type specified in the Imports 'Telerik.Reporting' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(818): error BC30002: Type 'Telerik.Reporting.Report' is not defined. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(943): error BC30002: Type 'Telerik.Reporting.Report' is not defined. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1327): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1328): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1329): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1330): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1331): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1332): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1337): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1339): error BC30451: Name 'ReportParameterType' is not declared. 
C:\BUILD\Build\XXXX\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1347): error BC30451: Name 'Telerik' is not declared. 

I then decided to remove the "Imports Telerik.Reporting" from the top of my class file and fully qualify all of the references to Telerik.Reporting.Report and Telerik.Reporting.ReportParameterType. I now get the following error.
MSBUILD : warning : TF42097: A work item could not be created for build failure. The value for the following required fields is invalid or missing: Assigned To 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(817): error BC30002: Type 'Telerik.Reporting.Report' is not defined. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(942): error BC30002: Type 'Telerik.Reporting.Report' is not defined. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1326): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1327): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1328): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1329): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1330): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1331): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1336): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1338): error BC30451: Name 'Telerik' is not declared. 
C:\BUILD\Build\XXXX Team Project\FEATURE Build\Sources\xxOBJECTS\xxReport.vb(1346): error BC30451: Name 'Telerik' is not declared. 

5 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 11 Mar 2008, 02:40 PM
Hello Rob Houck,

In order to build the reports on the machine without installed Telerik Reporting you should manually deploy the needed assemblies. Tfs build uses project files to build the projects. Please look at project file and verify which references to the Telerik Reporting assemblies are used.

Sincerely yours,
Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 11 Mar 2008, 03:32 PM
We can copy the assemblies to the web server. However, the build is never completing on the TFS Build Server. Here are the references in the project file:
<Reference Include="Telerik.Reporting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" /> 
<Reference Include="Telerik.Reporting.Processing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" /> 
As part of the TFS Build Project itself, you can specify the location of the additional references:
<ItemGroup> 
        <!--  ADDITIONAL REFERENCE PATH 
     The list of additional reference paths to use while resolving references. 
     For example, 
         <AdditionalReferencePath Include="C:\MyFolder\" /> 
         <AdditionalReferencePath Include="C:\MyFolder2\" /> 
    --> 
        <AdditionalReferencePath Include="C:\BUILD\AdditionalReferences\FEATURE" /> 
    </ItemGroup> 
The location specified in the AdditionalReferencePath contains the Telerik.Reporting.DLL and the Telerik.Reporting.Processing.DLL files. This has worked for other Telerik/3rd party deployments, but for some reason has not worked with the reporting. I'm trying to get away with not installing the reporting on the TFS Build Server just to get the builds to work.
0
Hrisi
Telerik team
answered on 11 Mar 2008, 04:35 PM
Hi Rob Houck,

Your project file contains two references to the Reporting assemblies but Telerik.Reporting.Processing.dll contain reference to Telerik.Reporting.Interfaces.dll. In order to successfully Resolving file references in team build you should deploy these assemblies:
  • Telerik.Reporting.dll
  • Telerik.Reporting.Processing.dll
  • Telerik.Reporting.Interfaces.dll
It is your decision where to place assemblies - in GAC or in AdditionalReferencePath. The second require changes in the build target.

If you use Win/Web report viewer in your project additional assemblies should be deployed:
  • Telerik.ReportViewer.WebForms.dll
  • Telerik.ReportViewer.WinForms.dll
Kind regards,
Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Paul
Top achievements
Rank 1
answered on 11 Mar 2008, 04:46 PM
We actually have the Telerik.Reporting, Telerik.Reporting.Processing, Telerik.Reporting.Interfaces, and the Telerik.ReportViewer.WebForms in the AdditionalReferencesPath location.

You said if we do it this way, it requires a change to the build target? Where exactly would I make that change? Do you mean the targets file provided by MS?

Thanks,

Adam
0
Paul
Top achievements
Rank 1
answered on 11 Mar 2008, 06:21 PM
Problem solved. One of the references was not checked in so the build was not executing through. Sorry for the inconvenience.
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Paul
Top achievements
Rank 1
Share this question
or