2012-09-21 16 views
12

मैंने किसी साइट पर एक साइट पर तैनात किया और मुझे यह त्रुटि मिल गई। मुझे यह क्यों मिलता है?कॉन्फ़िगरेशन त्रुटि: System.Web.Helpers

Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 

Source Error: 


Line 16:  <assemblies> 
Line 17:   <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 18:   <add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 19:   <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
Line 20:   <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 

Source File: C:\<path>\web.config Line: 18 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded. 


WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 

उत्तर

26

ऐसा लगता है कि जिस सर्वर पर आपने एप्लिकेशन को तैनात किया है, उसके पास एएसपी.नेट एमवीसी 3 स्थापित नहीं है। यदि आप सर्वर पर एएसपी.नेट एमवीसी 3 स्थापित नहीं करना चाहते हैं तो आप अपने आवेदन को bin deploy भी कर सकते हैं।

2

मुझे एक ही समस्या थी और मैंने माइक्रोसॉफ्ट साइट से एएसपी.नेट एमवीसी 3 टूल्स अपडेट स्थापित किया और इसने समस्या का समाधान किया।

यह भी जांचें कि सी: \ प्रोग्राम फ़ाइलें (x86) \ Microsoft ASP.NET स्थापना से पहले मौजूद है या नहीं। मेरे मामले में यह फ़ोल्डर गायब था और स्थापना के बाद मेरे पास यह फ़ोल्डर है और असेंबली पंजीकृत हो गई है।

0

मेरे पास निम्न स्थिति थी। कुछ हद तक पुराने एमवीसी 3 प्रोजेक्ट पर काम कर रहे विजुअल स्टूडियो 2015 के साथ एक नया लैपटॉप। विजुअल स्टूडियो 2015 और बाद में स्पष्ट रूप से एमवीसी 3 स्थापित नहीं करता है। इसलिए AspNetMVC3ToolsUpdateSetup.exe को डाउनलोड करने और इसे इंस्टॉल करने के बाद, सही संदर्भ जहां मिले (जीएसी से)। और बिल्ड को कोई त्रुटि नहीं मिली, इस इंस्टॉल के अलावा कोई अतिरिक्त कदम नहीं उठाया गया।

संबंधित मुद्दे