0

I upgraded my DNN site from v.8.3 to 9.6 the latest version. My site is loading fine but the portal/stylesheets are not loading. Technically the cases are as below:

  1. When the app pool is set as 'Classic', the stylesheet portal/default.css loads fine in the browser. However the site does not load anad times out without any clear error message

  2. When the app pool is set as 'Integrated', the stlesheet throws server 500 error. but the website loads without the stylesheets.

I tried the below fixes:

  1. Checked for enabling static content

  2. In my web.config the static content looks as below:

      <staticContent>
    <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
     <remove fileExtension=".svg" />
     <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
     <remove fileExtension=".woff" />
     <mimeMap fileExtension=".woff" mimeType="application/x-woff" />
     <remove fileExtension=".woff2" />
     <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
    

Error log in portal/_default/logs folder:

[Thread:24][ERROR] DotNetNuke.Framework.Reflection - MAI.Components.FeatureController
System.Web.HttpException (0x80004005): Could not load type 'MAI.Components.FeatureController'.
   at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at DotNetNuke.Framework.Reflection.CreateType(String TypeName, String CacheKey, Boolean UseCache, Boolean IgnoreErrors)

So the basic issue is with 'Integrated' app pool the portal/stylesheets does not load and produce server 500 error. Any clue on how this can be fixed?

4

1 回答 1

0

您的应用程序池应该是集成类型。不再支持经典。

您似乎正在使用带有 MAI 作为名称一部分的自定义模块。

您应该知道,从 DNN 8.x 升级到 9.6(最新版本是 9.6.2,但这不是问题)跨越了从 DNN 中删除了数百个不推荐使用的方法的神奇线,因此许多模块需要调整和重新编译去工作。

您还应该检查并确认您使用的是正确版本的 ASP.NET 框架。我认为你至少需要 4.7.2。

总而言之,我认为问题出在您的模块或 ASP.NET 的版本上,前提是您的应用程序池处于集成托管管道模式。

于 2020-08-04T23:01:56.050 回答