Trying to upgrade YAF.
I have made a new folder
Copied in old website
Removed old bin etc.
Copied in new
Upgarded Web.config and app.comfig
Trying to run install, I get:
[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 'Classes' does not exist in the namespace 'YAF' (are you missing an assembly reference?)
Source Error:
Line 62:
Line 63:
Line 64:
Posted by: drdread - 28 May 2022 12:53:04
Even if I try this on Server 2022 brand new IIS with supplied web.config (recommendedweb.config) I still see the following:
[quote]Server Error in '/' Application.
Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
[FileLoadException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
YAF.Core.Context.YafHttpApplication.Session_Start(Object sender, EventArgs e) +0
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +375
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1257
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +703
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4380.0[/quote]
What is the matter here - are my DLLs wrong or something?
Posted by: drdread - 28 May 2022 13:59:52
OK so after copying the whole app to another folder and site on the ISS server (and checking that it is working OK first) I have retried all of the steps of the migration and now I am seeing:
[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: e:\Websites\www\sircles-forum-v3\web.config Line: 111
Show Detailed Compiler Output:
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
e:\Websites\www\sircles-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?)[/quote]
Posted by: Lemonde - 28 May 2022 16:00:38
You need to adjust your web.config file.
Find these sections and replace it with these instead:
[code=cpp]<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]
Posted by: drdread - 29 May 2022 13:21:35
Chrome file upload is broken and it is possibly because of thisĀ class issue...?