Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
why Configuration Error,when i upload MVC2 ASP.NET Site?
Server is using latest Vertion of Framework v 4..I think my server support only mvc3

How i solve the error..



showing this error

XML
Server Error in '/' Application.

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.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:


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

Source File: D:\HostingSpace\hostmeonweb.in\test\web.config    Line: 19

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=2.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].

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Posted

1 solution

Ijust suggest you to add these:
* Microsoft.Web.Infrastructure
* System.Web.Razor
* System.Web.WebPages.Deployment
* System.Web.WebPages.Razor
and follow the steps given here:
http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx[^]

http://www.britishdeveloper.co.uk/2010/05/mvc2-deploy-could-not-load-file-or.html[^]
 
Share this answer
 
v2
Comments
VJ Reddy 28-Apr-12 0:29am    
Good suggestion. 5!
member60 28-Apr-12 0:31am    
thank you
abey e mathews 28-Apr-12 1:40am    
thanku
member60 28-Apr-12 2:33am    
you are wel come !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900