YAFLogo

Posted by: lemonde - Saturday, 28 May 2022 12:05:13
Hello, I have a 2012 R2 IIS 7.5 system which has run the 2.2.4 version for years without issue. Trying to upgrade to 3.14 using: [url]https://github.com/YAFNET/YAFNET/wiki/Upgrade-(from-Version-1.9.1.8-or-earlier)[/url] I get: [h]Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The base class includes the field 'btnTestPermissions', but its type (YAF.Web.Controls.ThemeButton) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl). Source Error: Line 62: Line 63: Line 64:

Posted by: lemonde - Saturday, 28 May 2022 12:39:17
As far as I can see, nothing that references YAF: is working. Is this a dll that isnt't loading?  

Posted by: tha_watcha - Saturday, 28 May 2022 13:23:12
You did use the wrong upgrade guide. [url]https://github.com/YAFNET/YAFNET/wiki/Upgrade-an-Existing-YAF.NET-Installation[/url] As described try use the migrate tool for the web.config migration. And let me know if it works or not.

Posted by: lemonde - Saturday, 28 May 2022 14:29:26
THanks, But I have tried both of the upgrade pages and the YAF: is still not recognised. I actually cannopt get it to run on a new server 2022 install either even without the old files. The error is on the default.aspx page at line 64 : [quote]Line 62: Line 63: Line 64:

Posted by: lemonde - Saturday, 28 May 2022 14:58:41
OK so I have copied the whole site to another folder and started the migration again hoping that I had made a mistake twice running :) Now, however, I am seeing this error from browsing with IE on the web server: [quote]Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'Utils' does not exist in the namespace 'YAF' (are you missing an assembly reference?) Source Error: Line 109: Line 110: Line 111: Line 112: Line 113: Source File: c:\Websites\www\forum-v3\web.config    Line: 111 Show Detailed Compiler Output:[/quote] [code]c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\b66d131a\2942f574_8f72d801\YAF.Lucene.Net.Highlighter.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\b57eed0d\3ce2b474_8f72d801\System.Diagnostics.DiagnosticSource.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\ac0e209d\b40b7e74_8f72d801\FarsiLibrary.Localization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\66b92111\ec7fb274_8f72d801\System.Buffers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\2cd6edf1\5f69fc74_8f72d801\YAF.Types.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\fa22dd60\9e0a9d74_8f72d801\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\44e3f1ee\70e39574_8f72d801\Microsoft.Owin.Security.Facebook.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\9bc95178\efa6b974_8f72d801\System.Numerics.Vectors.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\6fd4cb60\6fd08274_8f72d801\J2N.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\ca3c3e40\3b958774_8f72d801\Microsoft.AspNet.Identity.Owin.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\b5eb1d9b\a91e9174_8f72d801\Microsoft.Owin.Security.Cookies.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\ee382ffa\cd328574_8f72d801\Microsoft.AspNet.Identity.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\6522427d\5909bc74_8f72d801\System.Threading.Tasks.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\332c5080\13819374_8f72d801\Microsoft.Owin.Security.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\4daae41d\ea6c9f74_8f72d801\Prism.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\43e2d9f3\d6459874_8f72d801\Microsoft.Owin.Security.Twitter.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\65372d96\052e0175_8f72d801\YAF.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\ec0f49f1\d0dff274_8f72d801\YAF.Lucene.Net.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\f20f06b1\20bbad74_8f72d801\ServiceStack.OrmLite.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\f27cd1f7\8ba4f774_8f72d801\YAF.Lucene.Net.Queries.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\015a2c86\a3cbfe74_8f72d801\YAF.UrlRewriter.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ValueTuple\v4.0_4.0.0.0__cc7b13ffcd2ddd51\System.ValueTuple.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\dd725044\d6459874_8f72d801\Microsoft.Owin.Security.Google.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\7b1180b9\dc92c574_8f72d801\YAF.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\9639b4f5\a27ed174_8f72d801\YAF.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\39c14389\47bc8e74_8f72d801\Microsoft.Owin.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\0815d4db\6930c374_8f72d801\System.Web.Http.WebHost.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\d5f51763\741db074_8f72d801\ServiceStack.OrmLite.SqlServer.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\55712ce4\58f6a874_8f72d801\ServiceStack.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\c7e0115f\fd06fa74_8f72d801\YAF.Lucene.Net.QueryParser.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\114de794\5909bc74_8f72d801\System.Runtime.CompilerServices.Unsafe.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\1cd575c6\3b958774_8f72d801\Microsoft.Bcl.AsyncInterfaces.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\4db9e483\ea6c9f74_8f72d801\Owin.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\af369d72\3ce2b474_8f72d801\System.Memory.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\7c2fcc4b\47bc8e74_8f72d801\Microsoft.Owin.Host.SystemWeb.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\227eb9d2\18cec074_8f72d801\System.Web.Http.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\05843490\00e1d374_8f72d801\YAF.Data.SqlServer.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\aba372a3\b40b7e74_8f72d801\Autofac.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\a3224481\5e56e974_8f72d801\YAF.Lucene.Net.Analysis.Common.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\88dcbc4d\b344b774_8f72d801\System.Net.Http.Formatting.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\0ceb8092\8cf78974_8f72d801\Microsoft.Extensions.Configuration.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\6df39f06\d8a5d874_8f72d801\YAF.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\195926fa\e9598c74_8f72d801\Microsoft.Extensions.Primitives.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\assembly\dl3\6b83c697\126e8074_8f72d801\FarsiLibrary.Utils.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\App_Code.9fg5-8x0.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\App_Code.9fg5-8x0.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fd491863\633ff2b1\App_Code.9fg5-8x0.1.cs" Microsoft (R) Visual C# Compiler version 4.8.3761.0 for C# 5 Copyright (C) Microsoft Corporation. All rights reserved. This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240[/code] c:\Websites\www\forum-v3\web.config(111,34): error CS0234: The type or namespace name 'Utils' does not exist in the namespace 'YAF' (are you missing an assembly reference?)

Posted by: tha_watcha - Saturday, 28 May 2022 15:17:13
Can you post your web.config? Did you use the [url]https://yetanotherforum.net/migrationTool[/url] tool?

Posted by: lemonde - Saturday, 28 May 2022 16:23:38
OK so after retrying this a few times I finally just copied some entries from the recommendedweb.config file so that I had:            [code=markup] <controls>                 <add tagPrefix="asp" namespace="System.Web.UI.HtmlControls" assembly="System.Web"/>                 <!-- Default: use non-dynamic (compiled classes) in YAF -->                 <add tagPrefix="YAF" namespace="YAF" />                 <add tagPrefix="YAF" namespace="YAF.Configuration" />                 <add tagPrefix="YAF" namespace="YAF.Web.Controls" assembly="YAF.Web" />             </controls>             <namespaces>                 <add namespace="YAF.Core" />                 <add namespace="YAF.Web.Controls" />                 <add namespace="YAF.Types.Interfaces" />                 <add namespace="YAF.Types" />             </namespaces>[/code] Presumably there was something in my web.config that was not working in the migration tool somehow or something..? [url]https://forum.sircles.net[/url] now appears to be working once more. Thanks for your suggestions