- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个引用这样的主题的 WebForm:
<%@ Page Title="Test" Language="C#" MasterPageFile="~/Test.master" AutoEventWireup="true"
CodeFile="Test.aspx.cs" Inherits="Test" Theme="TestTheme"%>
并且TestTheme仅包含一个Test.skin文件,其内容如下:
<asp:Button runat="server" CssClass="button" />
如果我执行该页面,我总是会收到如下编译错误消息:
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: The compiler failed with error code -1073741701.
仔细查看生成的 html 后,我发现了这个隐藏消息:
<!--
[HttpCompileException]: External component has thrown an exception.
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(String themeName)
at System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(HttpContext context, String themeName)
at System.Web.UI.Page.InitializeThemes()
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)...... and many more
但是,如果我删除主题引用,一切都会正常。
我猜编译App_Theme文件可能有问题,但不知道如何解决。
有什么想法吗?
最佳答案
我也遇到了同样的问题。看起来它发生在 Win 8.1 或 Win Server 2012 R2 上。这就是我所做的:
之后,我按此顺序再次安装了更新(KB3097992、KB3097997)并且它起作用了。
关于ASP.NET WebForm App_Theme 导致编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32514606/
我有一个在元素中使用 App_Themes 的 ASP 网站。 在这个网站里面,我合并了另一位一直在/colleague_work/的同事的工作。新作有独立于App_Themes的新样式,即/coll
我希望能够将版本号附加到位于我的 asp.net 网站的 app_themes 文件夹中的 css 文件中,以便对文件的修改将强制浏览器从服务器获取文件,而不是使用缓存。 css 输出路径看起来像 ~
我有一个引用这样的主题的 WebForm: 并且TestTheme仅包含一个Test.skin文件,其内容如下: 如果我执行该页面,我总是会收到如下编译错误消息: Compilation Erro
我在通过 App_Themes 文件夹 加载 CSS 文件时遇到问题,我正在使用 OnPreInit 隐藏的代码动态设置页面的主题> 事件和一切都很好,即皮肤完美加载,但该特定主题的相应 CSS 未加
如何从 App_Themes 文件夹中的选定主题获取 Css 类列表并将它们显示在 DropDownList 控件中? 如有任何建议,我们将不胜感激。谢谢。 最佳答案 您也许可以使用以下命令从主题文件
有谁知道在将 ASP.NET App_Themes 文件夹中的 CSS 文件包含在页面中之前缩小和合并它们的好方法? 最佳答案 我总是使用 StyleManager合并和缩小我的 CSS。它在引擎盖下
App_Theme 文件夹中的样式表缓存在浏览器中。应该采取什么方法?因此,无论何时有新的部署,浏览器都应该采用最新的样式表,而不是浏览器中缓存的样式表。 其他 css(不在主题文件夹中)也发生了这种
我最近开始从事一个大型 ASP.NET WebForms 项目。 该项目正在使用 App_Themes包含大量杂乱无章的 CSS 和图像资源的目录。 我发现无论我是否需要,主题目录中的每个 CSS 文
我有一个 ASP.NET Web 窗体项目,该项目在 App_Themes 文件夹中包含 css、图像和外观。我们希望将 Boostrap 集成到项目中而不会丢失 App_Themes 定义的外观。有
如何根据在 RadSkinManager 中选择的皮肤更改 ASP.NET App_Themes? 我的母版页中有一个 RadSkinManager 下拉列表,允许用户选择由 Telerik Rad
我正在寻找 javascript 中的解决方案,我可以在其中获取 App_themes\Theme 文件夹的位置,其中包含 asp.net 中的主题文件。例如,为什么这并不那么容易是因为当虚拟目录直接
我想即时将 app_themes css 文件合并为一个文件。我这样做是使用 Mads Cristensen技术。但是现在所有具有通过 css 定义的背景图像的元素(参见图片)都不会显示图像。 .我相
有谁知道是否可以使用 Microsoft.Web.Optimization 捆绑和缩小 WebForms App_Themes? 最佳答案 这可能是一个可能的解决方案,我是这样做的: So how d
有什么帮助吗?我似乎无法弄清楚。 最佳答案 我不确定我是否正确理解了你的问题(如果问题的标题比正文长...)。但是,如果您尝试将皮肤应用于自定义控件,则以下链接可能会有所帮助。 Themes for
到目前为止,我一直在为我的应用程序使用 MVC3,但随着 Visual Studio 2012 的新更新,我得到了 MVC4。我迁移了一些应用程序,现在它们坏了。 我注意到 Internet 应用程序
我是一名优秀的程序员,十分优秀!