If seems I have duplicate dll, but I have tried to elimate or then the other… they both are required

泄露秘密 提交于 2019-12-11 21:04:56

问题


Hi I am trying to load/install a software product called "YAF" YetAnotherForum"... it runs great as a standalone, but now I am trying to integrate it in my Sitecore CMS system so that I may utilize the single sign-on features and create an IFrame. in any case, I am making some progress but this is my current error that I cannot seem to get past, any help will be appreciated.

Compiler Error Message: CS0433: The type 'YAF.Forum' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6b359048\ea17b5f1\App_Code.70udshq8.dll' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\6b359048\ea17b5f1\assembly\dl3\698b7e4b\be26b750_b845ce01\YAF.DLL'

Line 18:     <img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
Line 19:     <form id="form1" runat="server" enctype="multipart/form-data">
Line 20:         <YAF:Forum runat="server" ID="forum"></YAF:Forum>   
Line 21:     </form>
Line 22: </body>

回答1:


There's a number of Sitecore modules available on marketplace, which offer various types of integration with YAF:

  • YAF Integration
  • YAF Single sign-on
  • Sitecore YAF

I would recommend you review these options, choose the one which fits your requirements, and follow the guideline to set it up and configure.




回答2:


I believe YAF uses the "Web Site Project" project type which uses dynamic compilation rather than the "Web Application" project type, which you would generally use with Sitecore and which are pre-compiled. See MSDN definition

The dynamic compilation folder is the path mentioned in the error. See this other answer about how it's used.

The GAC is something else, and isn't being cited in the error. I would expect that clearing the temporary ASP.net files folder and restarting the application should fix it. Here's a related answer about clearing this folder.




回答3:


Clear the global assembly cache, that might help.

Run the Gacuitl tool with the command gacutil /u YAF.Forum.dll

Also remove all files from the folder c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\. Stop your IIS before clearing so there won't be any locked files.

Then restart IIS and see if the issue is resolved.



来源:https://stackoverflow.com/questions/16739332/if-seems-i-have-duplicate-dll-but-i-have-tried-to-elimate-or-then-the-other

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