Speerio Skinergy 'Image' is ambiguous 错误

简介: 使用BeyondCSS皮肤时报错: Could Not Load Skin: /Portals/0/Skins/beyondcss/1column_speerio.ascx Error: E:"Development"DotNetNuke"InstallArea"DotNetNuke_04.
使用BeyondCSS皮肤时报错:
Could Not Load Skin: /Portals/0/Skins/beyondcss/1column_speerio.ascx Error: E:"Development"DotNetNuke"InstallArea"DotNetNuke_04.08.03_Source"Website"controls"Speerio"Skinergy"skinprefs.ascx(35): error BC30561: 'Image' is ambiguous, imported from the namespaces or types 'System.Web.UI.WebControls, System.Drawing'.

解决办法如下:

在DNN网站的根目录/controls/Speerio/Skinergy

找到skinprefs.ascx的36行,用如下代码替换:

Sub InjectStyleSheet(ByVal cookieId As String, ByVal suffix As String, small As System.Web.UI.WebControls.Image, medium As System.Web.UI.WebControls.Image, large As System.Web.UI.WebControls.Image)

把 adminpanel.ascx 的第一行用如下代码替换:

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.ControlPanels.IconBar" CodeFile="~/admin/ControlPanel/iconbar.ascx.vb" %>

之后 Speerio Skinergy Accessibility皮肤对象就可以正常工作了。





这是使用Speerio Skinergy实现的效果。

提供修正后的 Speerio Skinergy下载,已改正这个Bug: http://files.cnblogs.com/m2land/Speerio_Skinergy.zip
相关文章
|
6月前
|
计算机视觉 Python
AttributeError: module ‘cv2‘ has no attribute ‘face‘
AttributeError: module ‘cv2‘ has no attribute ‘face‘
139 0
|
8月前
|
前端开发
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
87 0
|
8月前
|
计算机视觉 Python
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
196 0
|
JavaScript
image-conversion
image-conversion
233 0
|
计算机视觉
cv2.error: OpenCV(4.5.2) : -1 : error: (-5:Bad argument) in function ‘rectangle‘
cv2.error: OpenCV(4.5.2) : -1 : error: (-5:Bad argument) in function ‘rectangle‘
477 0
|
计算机视觉
【在虚拟环境下完美解决】1698: error: (-215:Assertion failed) empty() in function cv::CascadeClassifier
首先我们要找到那个分类器所在的路径,我们可以在Cmd中直接输入【若是虚拟环境的话,则需要切换到对于虚拟环境中,再去查找对应的opencv版本与位置信息】
490 0
|
Python
AttributeError: type object ‘Image‘ has no attribute ‘open‘
原因分析:Image调用顺序出错,因为第一行的from PIL import Image与第二行tkinter import *冲突,tkinter中也含有Image类,所以你使用的是tkinter.Image
268 0
|
计算机视觉
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
855 0
【opencv】cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function ‘imshow‘
|
Python
完美解决 TypeError: Invalid shape (3, 224, 224) for image data
完美解决 TypeError: Invalid shape (3, 224, 224) for image data
949 0
|
编译器
error: pasting “(“ and “1“ does not give a valid preprocessing token
error: pasting “(“ and “1“ does not give a valid preprocessing token
266 0