测试,分别用URLRewriter.dll实现URL重写,与FCKEditor在线编辑器成功.当使用URLRewriter.dll实现URL重写时应用FCKEditor就出现如下提示:
没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性。
源错误:
行 69: // if we reached this point, we didn't find a rewrite match
行 70: context.Trace.Write("RewriterFactoryHandler", "Exiting RewriterFactoryHandler"); // log info to the Trace object...
行 71: return PageParser.GetCompiledPageInstance(url, filePath, context);
行 72: }
行 73:
在web.config文件中更改设置: <compilation defaultLanguage="c#" debug="true">
<buildProviders>
<add extension=".*" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>问题仍旧存在.在网上搜出一些解决办法,说是将FCKEditor中的所有.HTML文件及内容更改为.HTM,这就必须添加.HTML映射.请教各位高手,这种问题有什么好的解决方法么?附:
在IIS中可以正常运行;ASP.NET引擎运行时出现上述问题;当在网页中添加img,IIS与ASP.NET中运行,图片都显示为XX...
没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Web.HttpException: 没有为扩展名“.html”注册的生成提供程序。可以在 machine.config 或 web.config 中的 <compilation><buildProviders> 节注册一个。请确保所注册的提供程序具有包含值“Web”或“All”的 BuildProviderAppliesToAttribute 属性。
源错误:
行 69: // if we reached this point, we didn't find a rewrite match
行 70: context.Trace.Write("RewriterFactoryHandler", "Exiting RewriterFactoryHandler"); // log info to the Trace object...
行 71: return PageParser.GetCompiledPageInstance(url, filePath, context);
行 72: }
行 73:
在web.config文件中更改设置: <compilation defaultLanguage="c#" debug="true">
<buildProviders>
<add extension=".*" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>问题仍旧存在.在网上搜出一些解决办法,说是将FCKEditor中的所有.HTML文件及内容更改为.HTM,这就必须添加.HTML映射.请教各位高手,这种问题有什么好的解决方法么?附:
在IIS中可以正常运行;ASP.NET引擎运行时出现上述问题;当在网页中添加img,IIS与ASP.NET中运行,图片都显示为XX...
<add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
</buildProviders>
http://topic.csdn.net/u/20090818/22/10bd0036-b323-46c7-982c-34f265c09bae.html
用JS代码先是URLRewrite.dll找不到fckeditor.js路径,更改后路径正确,又提示fckeditor.js中67行代码的document是未声明变量...
似乎就是重写时绕过fckeditor
你上网搜 url重写 html fckeditor 会找得到