Assembly has a higher version than referenced. EPI5 to EPI6

和自甴很熟 提交于 2019-12-11 23:41:45

问题


After a succesfull uppgrade from EPi5 to EPi6 i get this error

    Error   101 Assembly 'EPiServer.Web.WebControls, Version=6.0.530.0, Culture=neutral,
 PublicKeyToken=8fe83dea738b45b7' uses 'EPiServer, Version=6.0.530.0, Culture=neutral, 
PublicKeyToken=8fe83dea738b45b7' which has a higher version than referenced assembly 'EPiServer, 
Version=5.2.375.236, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'  
c:\EPiServer\Sites\UppgraderaSiteName\SiteName.Web\bin\EPiServer.Web.WebControls.dll    
SiteName.Web

The DLL is configured in web.config as 6.0.530.0 In the reference it says 6.0.530.0 The DLL file also says 6.0.530.0

There is something im not getting.


回答1:


Try deleting the references of "EPiServer.Web.WebControls.dll" from the Solution Explorer & then add references of correct version.

Also, you can open the Project Files (".csproj" or ".vbproj") in notepad & check the <Reference/> Elements, to verify that correct version is being used:

<Project>
  <ItemGroup>
    <Reference/>
    ...
    <Reference/>
  </ItemGroup>
</Project>


来源:https://stackoverflow.com/questions/13581799/assembly-has-a-higher-version-than-referenced-epi5-to-epi6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!