Sunday 15 July 2012

c# - Server Error Can't Resolve System.Web.Mvc Components -



c# - Server Error Can't Resolve System.Web.Mvc Components -

i have asp.net mvc project on local machine target .net 4.0 , works perfectly. has. i've been deploying app production server no problems long time well. of sudden, despite fact can build on machine, when building in production machine on 100 errors, missing references:

the type or namespace name 'httppost' not found (are missing using directive or assembly reference?)

all of these missing references system.web.mvc dll. can't figure out why of sudden it's not working. i've tried setting dll re-create local no avail. there may missing causing mvc reference not work?

you're referencing system.web.mvc version dll 4.0 instead of 4.5. check reference that, , if it's wrong, remove , re-add right version

go setting of system.web.mvc reference true (copy local = true)

copy local of import deployment scenarios , tools. general rule should utilize copylocal=true if reference not contained within gac.

copy local means must manually deploy dll in order application work. when it's false means "you depend on component must installed separately or chained, dll there already".

to set re-create local property true or false

c# asp.net .net asp.net-mvc asp.net-mvc-4

No comments:

Post a Comment