Server Error in '/admin' Application.
Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[MissingMethodException: Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseConsistentNullReferenceBehavior(Boolean)'.] System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +0 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26 System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +71 System.Data.Entity.Internal.Linq.InternalSet`1.GetEnumerator() +21 System.Linq.WhereEnumerableIterator`1.MoveNext() +107 System.Linq.Buffer`1..ctor(IEnumerable`1 source) +488 System.Linq.<GetEnumerator>d__0.MoveNext() +146 System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +148 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +472 System.Linq.Enumerable.ToList(IEnumerable`1 source) +80 DAL.SQLServerDAL`1.GetList(Func`2 where, Func`2 orderBy, Func`2 selector, Boolean isAesc) +997 BLL.BaseBLL`1.GetModal(Func`2 where, Func`2 orderBy, Func`2 select) +348 BLL.T_UsersBLL.GetSalt(String userName) +494 BLL.T_UsersBLL.GetModal(String userName, String pwd) +159 BLL.T_UsersBLL.CheckLogin(String userName, String pwd) +84 WebVedio.Login.Page_Load(Object sender, EventArgs e) in d:\快盘\svn\WebVedio\Login.aspx.cs:59 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064 |
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
版本不匹配。检查下你本地的版本是多少,给服务器升级下。
升级成.net FX45就好了。