救命啊。第二发帖,freetextbox在本地iis测试没有问题,一传到服务器就出错。
我的程序中有用到freetextbox版本3.1.6,
我找了好多资料,说3.1.6使用是非常简单, 只是拷贝freetextbox.dll到bin下,引用,添加控件,拖过去用就可以了,没有设置其他东西。发布网站后,在本地iis测试没有问题。但是一传到服务器就老说freetextbox没有正确安装g。我快崩溃了啊。。。搞了整整两天。。。改来改去都不行啊。。
FreeTextBox has not been correctly installed. To install FreeTextBox either:
(1) add a reference to FtbWebResource.axd in web.config:
<system.web>
<httpHandlers>
<add verb= "GET "
path= "FtbWebResource.axd "
type= "FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox " />
</httpHandlers>
</system.web>
(2) Save the FreeTextBox image and javascript files to a location on your website and set up FreeTextBox as follows
<FTB:FreeTextBox id= "FreeTextBox1 " SupportFolder= "ftbfileslocation " JavaScriptLocation= "ExternalFile " ButtonImagesLocation= "ExternalFile " ToolbarImagesLocation= "ExternalFile " ButtonImagesLocation= "ExternalFile " runat= "server " />
------解决方案--------------------晕,前两天遇到同样的问题,以下是我的网上参考和自己的总结结合,关键在于服务器上的考虑安全问题web.config被锁定了,许多dll文件不能引用,后来我换了js编辑器才解决
在 asp.net 2.0中应用 FreeTextBox就报错
Invalid ToolbarLayout -> System.Security.VerificationException: 操作可能会破坏运行时稳定性。
在 FreeTextBoxControls.ToolbarGenerator.ToolbarItemFromString(String StringName)
在 FreeTextBoxControls.ToolbarGenerator.ToolbarsFromString(String toolbarLayout)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息:
System.Exception: Invalid ToolbarLayout -> System.Security.VerificationException: 操作可能会破坏运行时稳定性。
在 FreeTextBoxControls.ToolbarGenerator.ToolbarItemFromString(String StringName)
在 FreeTextBoxControls.ToolbarGenerator.ToolbarsFromString(String toolbarLayout)
刚开始以为加个
加个 <trust level= "Medium "/> 信任级别就能解决
<location allowOverride= "false ">
<system.web>
<!-- level= "[Full|High|Medium|Low|Minimal] " -->
<trust level= "Medium " originUrl= " "/>
</system.web>
</location>
后来出现
Server Error in '/ ' Application.
--------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride= "false "> from an inherited configuration file.
Source Error:
Line 10: <location allowOverride= "false ">
Line 11: <system.web>
Line 12: <securityPolicy>
Line 13: <trustLevel name= "Full " policyFile= "internal "/>
Line 14: <trustLevel name= "High " policyFile= "web_hightrust.config "/>
错误
<location allowOverride= "false ">
<syst