此处错误不是因为没有注册NET到IIS 或者是Web.config配置问题,经反复核查后在Global.asax中进行WebApi执行Register()时出现了错误
WebApiConfig.Register(GlobalConfiguration.Configuration);
检查后发现是因为Newtonsoft.Json.dll版本与Web.config内版本描述不一致造成的,曾经绞尽脑汁查过一次忘记了,这次又来了一遍.......................................................[手动滑稽]
Web.config 增加配置
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>