Asked by:
Using TFS integration and some DLLs are not available: CS0246: The type or namespace name 'xxx' could not be found
Question
-
I've integrated Azure Websites with TFS and am getting a "yellow screen of death" at http://bitcointest.azurewebsites.net/
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'Kendo' could not be found (are you missing a using directive or an assembly reference?)Monday, December 24, 2012 6:41 AM
All replies
-
This is due to Kendo is not available. You need to copy the Kendo assemblies to the bin folder.
To simplify, you need to add the refernce of Kendo in your project, and set the "copy local" property to true. Then, when you deploy, these files will be copied to the bin folder automatically.
Monday, December 24, 2012 8:55 AM -
The Kendo DLLs are marked as "copy local", and the file is in the bin folder of my project...but as I said I'm using the TFS continuous integration feature at tfs.visualstudio.com
How do I configure tfs.visualstudio.com so that I deploy correctly?
Monday, December 24, 2012 1:16 PM -
Did you reference the assembly in your project? Here is the command line for compile, I didn't see any Kendo assembly was referenced.
D:\Windows\system32> "D:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\5f3bce3f\00a69171_a0e1cd01\DotNetOpenAuth.OpenId.RelyingParty.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\14172c76\00a69171_a0e1cd01\DotNetOpenAuth.OpenId.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\4c11501b\00a69171_a0e1cd01\DotNetOpenAuth.Core.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\38dcbc0a\0000f473_a0e1cd01\WebGrease.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\1429ec5c\00d3c272_a0e1cd01\Newtonsoft.Json.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\4653d839\00d3c272_a0e1cd01\WebMatrix.Data.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\c1976ff5\00d3c272_a0e1cd01\System.Web.WebPages.Deployment.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\867e77e8\00a69171_a0e1cd01\DotNetOpenAuth.OAuth.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\586e0856\00d3c272_a0e1cd01\System.Web.WebPages.Razor.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\a5cc823f\00d3c272_a0e1cd01\System.Web.Mvc.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"D:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\2a24586c\00a69171_a0e1cd01\DotNetOpenAuth.OAuth.Consumer.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\938ddda1\001c4282_a0e1cd01\BitcoinTest.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\16bb6cee\00d3c272_a0e1cd01\Antlr3.Runtime.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\EnvSettings\v4.0_1.0.0.0__31bf3856ad364e35\EnvSettings.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\0c2dce1f\00a69171_a0e1cd01\DotNetOpenAuth.AspNet.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\ab7b5580\00d3c272_a0e1cd01\System.Web.WebPages.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\67212582\00d3c272_a0e1cd01\System.Web.Helpers.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\47688d65\00a69171_a0e1cd01\EntityFramework.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\a3b6968f\00d3c272_a0e1cd01\System.Net.Http.Formatting.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\239dffa2\00d3c272_a0e1cd01\System.Web.Razor.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\1b3ac7b9\00d3c272_a0e1cd01\System.Web.Http.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\a5b55318\00d3c272_a0e1cd01\WebMatrix.WebData.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\de62242d\00d3c272_a0e1cd01\System.Web.Optimization.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\5dfd13a3\00d3c272_a0e1cd01\Microsoft.Web.WebPages.OAuth.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"D:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\assembly\dl3\d20ed13a\00d3c272_a0e1cd01\System.Web.Http.WebHost.dll" /out:"C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\App_global.asax.zanuvrkd.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\App_global.asax.zanuvrkd.0.cs" "C:\DWASFiles\Sites\bitcointest\Temporary ASP.NET Files\root\27debc40\7172adcc\App_global.asax.zanuvrkd.1.cs"
Microsoft (R) Visual C# Compiler version 4.0.30319.17929for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.c:\DWASFiles\sites\bitcointest\VirtualDirectory0\site\wwwroot\Web.config(37,11): error CS0246: The type or namespace name 'Kendo' could not be found (are you missing a using directive or an assembly reference?)
- Proposed as answer by Jim CheshireMicrosoft employee Wednesday, December 26, 2012 6:37 PM
- Unproposed as answer by ChrisLaMont Saturday, December 29, 2012 12:52 AM
Tuesday, December 25, 2012 9:08 AM -
I assume that command line for compiling is from the TFS server.
I see the DLL "Kendo.MVC" in my references section and browsed to it to make sure it had the UI namespace.
For good humor I removed, re-added, the DLL and then re deployed. This test project was created by a VS2010 template and is just a "Hello world" sample. Perhaps there is something wrong with the template?
What additional information would you need?
Saturday, December 29, 2012 12:55 AM -
Just to clarify, the app runs fine locally. I know how to add external references... however I don't think external references are being propagated to the TFS server hosted by Microsoft, specifically TFS.visualstudio.comSaturday, December 29, 2012 8:05 PM