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

StackOverflow https://stackoverflow.com/questions/16739332

  •  30-05-2022
  •  | 
  •  

Вопрос

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>
Это было полезно?

Решение 2

There's a number of Sitecore modules available on marketplace, which offer various types of integration with 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.

Другие советы

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.

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top