Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
未能加载文件或程序集“System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) – 扎老铁
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
class="post-51718 post type-post status-publish format-standard hentry">

未能加载文件或程序集“System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

发生类型为 ‘System.IO.FileLoadException’ 的异常.


未能加载文件或程序集System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

警告: 程序集绑定日志记录被关闭。 要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。 注意: 会有一些与程序集绑定失败日志记录关联的性能损失。 要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。


System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35

堆栈跟踪:
FileLoadException : 未能加载文件或程序集“System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
  • System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
  • System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9711525
  • System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
  • System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
  • System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  • System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
  • System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
  • System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
  • Castle.Proxies.MembershipControllerProxy.EndExecute(IAsyncResult asyncResult) +139
  • Castle.DynamicProxy.AbstractInvocation.Proceed() +108
  • Rhythm.Hook.Interceptor.Intercept(IInvocation invocation) +166
  • Rhythm.Hook.Interceptor.Proceed(IInvocation invocation) +2747
  • Rhythm.ErrorHandling.ExceptionHandlerManager.Invoke(IInvocation invocation) +384
  • Castle.DynamicProxy.AbstractInvocation.Proceed() +80
  • Castle.Proxies.Invocations.Controller_EndExecute_2.InvokeMethodOnTarget() +55
  • Castle.Proxies.MembershipControllerProxy.EndExecute_callback(IAsyncResult asyncResult) +26
  • System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  • System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
  • System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
  • Castle.Proxies.MembershipControllerProxy.EndExecuteCore(IAsyncResult asyncResult) +139
  • Castle.DynamicProxy.AbstractInvocation.Proceed() +108
  • Rhythm.Hook.Interceptor.Intercept(IInvocation invocation) +166
  • Rhythm.Hook.Interceptor.Proceed(IInvocation invocation) +2747
  • Rhythm.ErrorHandling.ExceptionHandlerManager.Invoke(IInvocation invocation) +384
  • Castle.DynamicProxy.AbstractInvocation.Proceed() +80
  • Castle.Proxies.Invocations.Controller_EndExecuteCore_2.InvokeMethodOnTarget() +55
  • Castle.Proxies.MembershipControllerProxy.EndExecuteCore_callback(IAsyncResult asyncResult) +4
  • System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
  • System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  • System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
  • System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
  • System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
  • System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  • System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
  • System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
  • System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +52
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56
  • System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
  • System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +116
  • System.Web.Mvc.ViewResult.FindView(ControllerContext context) +84
  • System.Web.Mvc.ViewEngineCollection.FindView(ControllerContext controllerContext, String viewName, String masterName) +164
  • System.Web.Mvc.ViewEngineCollection.Find(Func`2 lookup, Boolean trackSearchedPaths) +85
  • System.Web.Mvc.<>c__DisplayClass6.<FindView>b__4(IViewEngine e) +24
  • Rhythm.Web.ModuleViewEngine.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) +101
  • Rhythm.Web.ModuleViewEngine.FindView(IViewEngine viewEngine, IViewPageActivator viewPageActivator, DisplayModeProvider displayModeProvider, ControllerContext controllerContext, String viewName, String masterName, Boolean runViewStartPages) +947
  • Rhythm.Web.ModuleViewEngine.FindView(ViewFinder viewFinder, FindViewPathDef viewPathDef) +184
  • Rhythm.Web.ViewFinder.FindView(VirtualPath viewVirtualPath, Boolean throwIfNotFound) +102
  • Rhythm.Web.ViewFinder.FindView(String viewVirtualPath, ControllerContext controllerContext, DisplayModeProvider displayModeProvider, Boolean throwIfNotFound) +737
  • Rhythm.Web.ViewFinder.Exists(String viewVirtualPath, Boolean throwIfNotFound, Boolean isMono) +75
  • System.Web.Compilation.BuildManager.GetObjectFactory(String virtualPath, Boolean throwIfNotFound) +34
  • System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +165
  • System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +103
  • System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +294
  • System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +10059165
  • System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +29
  • System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +212
  • System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) +59
  • System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType() +32
  • System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode() +60
  • System.Web.WebPages.Razor.RazorBuildProvider.CreateHost() +17
  • System.Web.WebPages.Razor.RazorBuildProvider.GetHostFromConfig() +20
  • System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfig(String virtualPath, String physicalPath) +55
  • System.Web.WebPages.Razor.WebRazorHostFactory.CreateHostFromConfigCore(RazorWebSectionGroup config, String virtualPath, String physicalPath) +235
  • System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +72
  • System.Web.WebPages.Razor.WebRazorHostFactory.CreateFactory(String typeName) +25
  • System.Web.WebPages.Razor.WebRazorHostFactory.DefaultTypeFactory(String typeName) +8
  • System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
  • System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +37
  • System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40
  • System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
  • System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
请求信息:
General
Name Value
URL http://tfs.bitshine.com.cn:20000/Management/Membership/SignIn?UnauthorizedMessage=您需要登录后才能执行此操作&returnUrl=/Management
Http Method GET
Headers
Name Value
Connection keep-alive
Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.8,fr;q=0.6,ja;q=0.4,zh-CN;q=0.2,zh-TW;q=0.2
Host tfs.bitshine.com.cn:20000
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Upgrade-Insecure-Requests 1
DNT 1
QueryString
Name Value
UnauthorizedMessage 您需要登录后才能执行此操作
returnUrl /Management
Server Variables
Name Value
ALL_HTTP HTTP_CONNECTION:keep-alive HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.8,fr;q=0.6,ja;q=0.4,zh-CN;q=0.2,zh-TW;q=0.2 HTTP_HOST:tfs.bitshine.com.cn:20000 HTTP_USER_AGENT:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 HTTP_UPGRADE_INSECURE_REQUESTS:1 HTTP_DNT:1
ALL_RAW Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8,fr;q=0.6,ja;q=0.4,zh-CN;q=0.2,zh-TW;q=0.2 Host: tfs.bitshine.com.cn:20000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Upgrade-Insecure-Requests: 1 DNT: 1
APPL_MD_PATH /LM/W3SVC/2/ROOT
APPL_PHYSICAL_PATH D:\工作\code\Git\Bitshine\bit\NewProject\src\Bitshine.App.Web.Portal\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 2
INSTANCE_META_PATH /LM/W3SVC/2
LOCAL_ADDR 192.168.1.203
PATH_INFO /Management/Membership/SignIn
PATH_TRANSLATED D:\工作\code\Git\Bitshine\bit\NewProject\src\Bitshine.App.Web.Portal\Management\Membership\SignIn
QUERY_STRING UnauthorizedMessage=%e6%82%a8%e9%9c%80%e8%a6%81%e7%99%bb%e5%bd%95%e5%90%8e%e6%89%8d%e8%83%bd%e6%89%a7%e8%a1%8c%e6%ad%a4%e6%93%8d%e4%bd%9c&returnUrl=/Management
REMOTE_ADDR 61.165.134.63
REMOTE_HOST 61.165.134.63
REMOTE_PORT 39746
REQUEST_METHOD GET
SCRIPT_NAME /Management/Membership/SignIn
SERVER_NAME tfs.bitshine.com.cn
SERVER_PORT 20000
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/7.5
URL /Management/Membership/SignIn
HTTP_CONNECTION keep-alive
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8,fr;q=0.6,ja;q=0.4,zh-CN;q=0.2,zh-TW;q=0.2
HTTP_HOST tfs.bitshine.com.cn:20000
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_DNT 1

 

问题分析:

dll 版本不匹配(找到的程序集清单定义与程序集引用不匹配),或者 dll 文件不存在。

可以 web.config 里面,配置 assemblyBinding

 

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="App_Data/Dependencies;" />
      <dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
<!-- oldVersion 和 newVersion 要找到你的 bin 目录下最新的版本。 -->
      </dependentAssembly>
    </assemblyBinding>
</runtime>

 

发表评论

电子邮件地址不会被公开。