it works fine on server. i'm deploying on new server. copied package old server server.
when browse application, getting below mentioned error.
could not load file or assembly 'system.web.webpages.razor, version=2.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.
description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.
exception details: system.io.filenotfoundexception: not load file or assembly 'system.web.webpages.razor, version=2.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.
source error:
an unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.
on new server showing .net clr version v4.0.30319, on old server .net version v4.0.30319 application pool.
is framework related issue? or m missing something?
you new server might not have asp.net-mvc installed on. can set reference system.web.webpages.razor
copied local set true.
right click on system.web.webpages.razor
in references , click properties. set copy local
true.
Comments
Post a Comment