मुझे अपने बिल्ड सर्वर पर एक अजीब समस्या है। मैं विंडोज सर्वर 2008 आर 2 पर टीमसिटी के नवीनतम संस्करण का उपयोग कर रहा हूं। मैंने बिल्ड सर्वर पर एएसपी.नेट एमवीसी स्थापित करने के लिए वेब प्लेटफार्म इंस्टॉलर का उपयोग किया, लेकिन मेरा संकलन अभी भी संदेशों के साथ विफल रहा है कि इसे System.Web.Mvc.dll
नहीं मिल रहा है। मैं प्रमाणित कर चुके हैं कि यह उम्मीद स्थान पर डिस्क पर है:एएसपी.नेट एमवीसी 3 प्रोजेक्ट एएसपी.नेट एमवीसी 3 के साथ बिल्ड सर्वर पर संकलित नहीं होगा
(C: \ Program Files (x86) \ Microsoft ASP.NET \ ASP.NET MVC 3 \ विधानसभाओं)
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?)
तो क्या मुझे याद आ रही:
यहां संदेशों की एक चयन है?
अच्छे प्रश्न और मुझे उत्तर के लिए नेतृत्व किया। एमवीसी 3 स्थापित किया गया था और जीएसी में। हालांकि, यह वास्तव में एमवीसी 2 खोजने की कोशिश कर रहा था, जो मुझे विश्वास है कि इसकी आवश्यकता है क्योंकि मैंने MVCContrib NuGet पैकेज स्थापित किया है। जब मैंने बिल्डर्स पर एमवीसी 2 स्थापित किया, तो सब ठीक काम किया। –
आह खुशी से यह मदद मिली, स्मृति से web.config में एक बाध्यकारी विन्यास होना चाहिए जो एमवीसी 3 डीएल का उपयोग करने के लिए एमवीसी 1 और 2 के सभी अनुरोधों को सेट करना चाहिए। (लेकिन मैंने इसे कभी भी कोशिश नहीं की है इसलिए कोई विचार नहीं कि यह आपके लिए उपयोगी होगा) – Skuld