2011-10-14 33 views
9

ile derleme sunucusunda derleme yapılamıyor. Windows Server 2008 R2'deki en son TeamCity sürümünü kullanıyorum. ASP.NET MVC'yi yapı sunucusuna yüklemek için web platformu yükleyicisini kullandım ancak derlemem hala System.Web.Mvc.dll'u bulamadığı mesajlarla başarısız oluyor.ASP.NET MVC 3 Project, ASP.NET MVC 3 yüklü

(C: \ Program Files Microsoft ASP.NET \ ASP.NET MVC 3 \ Meclisleri \ (x86))

Ben beklenen yerde diskte olduğunu doğruladıktan

Controllers\AccountController.cs(7, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) 
Controllers\AccountController.cs(15, 35): error CS0246: The type or namespace name 'Controller' could not be found (are you missing a using directive or an assembly reference?) 
Controllers\HomeController.cs(5, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) 
Controllers\HomeController.cs(9, 32): error CS0246: The type or namespace name 'Controller' could not be found (are you missing a using directive or an assembly reference?) 
Global.asax.cs(5, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) 
Models\AccountModels.cs(8, 18): error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) 

Yani ne eksik:
İşte mesajların bir seçimdir?

cevap

7

Hatalar, MVC dll dosyasının doğru sürümünü bulamadığına inandığınız gibi görünüyor. MVC3 yerine MVC (orijinal) veya MVC2'yi web platformundan yapı sunucusuna kurmanız mümkün mü?

Düzenleme:

Ayrıca dosya GAC ​​olmalıdır, (değil emin Win Server 2008 ama benzer tahmin konumu Win 7)

C: \ Windows \ Microsoft.NET \ assembly \ GAC_MSIL \ System.Web.Mvc \ (daha sonra .Net sürüm klasörü, benimki v4.0_3.0.0.0)

+0

İyi sorular ve yanıt vermeme neden oldu. MVC 3 kuruldu ve GAC'de. Ancak, MVCContrib NuGet paketini kurduğum için gerekli olduğuna inandığım MVC 2'yi bulmaya çalışıyordum. MVC 2'yi buildserver'a yüklediğimde, her şey iyi çalıştı. –

+0

Ah, mvc 3 dll'i kullanmak için mvc 1 ve 2 için tüm istekleri ayarlaması gereken web.config dosyasında bir bağlama yapılandırması olması gerektiğini hatırlattı. (ama asla kendimi denemedim, bu durumda sizin için yararlı olup olmayacağı konusunda hiçbir fikrim yok) – Skuld