vs2013、Windows7 1、select Multi Page Web Application download
2、nuget Microsoft.AspNet.WebApi.HelpPage
3、when view WebApi action Description ,like: <a class="postlink" href="http://localhost:61759/Help/Api/GET-api-MyTestWebApi-GetString">http://localhost:61759/Help/Api/GET-api ... -GetString</a>
4、dubug : at Areas\HelpPage\Views\Help\DisplayTemplatesHelpPageApiModel.cshtml Samples error: D:\ project \MyWeb\MyWeb.Web\Areas\HelpPage\Views\Help\DisplayTemplates\Samples.cshtml (6): error CS0012: Type "System.Collections.Generic.Dictionary'2 <T0,T1>" defined in the Assembly that is not referenced. You must add the assemblies "System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" reference.
but If you set up a separate project, you do not have this error。
Anyone encountered this problem? Can anyone help me find the cause of the problem Thank you ~ ~
5 Answer(s)
-
0
Which version of ABP do you use ? Probably some assemblies depend on different versions of System.Collections. Adding a assembly redirect to web.config might solve your problem.
-
0
Abp.0.12.0.2
I'll try this method Thank you ~ ~
-
0
<cite>ismcagdas: </cite> Which version of ABP do you use ? Probably some assemblies depend on different versions of System.Collections. Adding a assembly redirect to web.config might solve your problem.
Thank you, ~~, have been resolved In my Web.config, node <system.web> <assemblies>, adding <add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
-
0
Or maybe like <system.web>
<globalization culture="auto" uiCulture="auto"/> <compilation debug="true" targetFramework="4.5.2"> <assemblies> <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </assemblies> </compilation> <httpRuntime/> <customErrors mode="Off"/> <pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>
-
0
Thanks for sharing your solution.