首页 新闻 会员 周边 捐助

本地能用,部署到服务器后出现错误

0
[已解决问题] 解决于 2014-02-26 20:15

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

G1mist的主页 G1mist | 初学一级 | 园豆:16
提问于:2014-02-26 17:29
< >
分享
最佳答案
0

版本不匹配。检查下你本地的版本是多少,给服务器升级下。

奖励园豆:5
Launcher | 高人七级 |园豆:45050 | 2014-02-26 17:32

升级成.net FX45就好了。

G1mist | 园豆:16 (初学一级) | 2014-02-26 20:15
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册