freetextbox3.0一个奇怪的问题
在3.0中要求在web.config文件中写入这样一段
<httpHandlers>
<add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>
我的web项目编译,并在本地发布后,测试发现没有问题,但是上穿到服务器后发现不能正确运行,提示freetextbox没有正确安装,FtbWebResource.axd必须写入web.config文件中。
但是我的web.config文件中已经添加了这一段,为什么呢?
希望各位达人帮忙
问题点数:50、回复次数:10Top
1 楼WJY2003(笨笨鸟儿啄NET)回复于 2004-12-03 15:02:02 得分 0
不懂。freetextbox是下载的控件吗??没用过。指教。帮顶Top
2 楼NetFire(Fire.Rolland.Han)回复于 2004-12-03 15:10:51 得分 0
ft,怎么会是下载的?一个html编辑器Top
3 楼goody9807(http://goody9807.cnblogs.com)回复于 2004-12-03 15:11:34 得分 0
Methods in Http Handler
The following are the methods in Http Handlers.
Method Name Description
ProcessRequest Used o call Http Requests.
IsReusable To check the reusability of same instance handler with a new request of same type.
Configuring HTTP Handlers
The <httpHandlers> configuration section handler is responsible for mapping incoming URLs to the IHttpHandler or IHttpHandlerFactory class. It can be declared at the computer, site, or application level. Subdirectories inherit these settings.
Administrators use the <add> tag directive to configure the <httpHandlers> section. <Add> directives are interpreted and processed in a top-down sequential order. Use the following syntax for the <httpHandler> section handler:
<httpHandlers>
<add verb="[verb list]" path="[path/wildcard]" type="[COM+ Class], [Assembly]" validate="[true/false]" />
<remove verb="[verb list]" path="[path/wildcard]" />
<clear />
</httpHandlers>
Creating HTTP Handlers
To create an HTTP handler, you must implement the IHttpHandler interface. The IHttpHandler interface has one method and one property with the following signatures:
void ProcessRequest(HttpContext);
bool IsReusable {get;}
Top
4 楼NetFire(Fire.Rolland.Han)回复于 2004-12-03 15:16:21 得分 0
楼上的,我的这段没有问题,你看看http://wiki.freetextbox.com/default.aspx/FreeTextBoxWiki.Installation
我的web.config里面是这么写的————
<!-- FreeTextBox设置。 -->
<pages pageBaseType="System.Web.UI.Page" />
<httpModules>
<clear />
</httpModules>
<httpHandlers>
<add verb="GET"
path="FtbWebResource.axd"
type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>Top
5 楼WJY2003(笨笨鸟儿啄NET)回复于 2004-12-03 15:19:31 得分 0
纳闷。一个html编辑器。怎么会要安装呢???难道我用Donnet2003写的程序,放到另一台机器上运行。还要提示我安装DOTNET吗????纳闷,嘿嘿。Top
6 楼NetFire(Fire.Rolland.Han)回复于 2004-12-03 15:23:00 得分 0
它所谓的安装也就是往web.config里面写点东西而已Top
7 楼WJY2003(笨笨鸟儿啄NET)回复于 2004-12-03 15:25:14 得分 0
我正在查有关资料。楼主。我虽然不懂。但我帮你顶Top
8 楼ruirui521(枫之舞)回复于 2004-12-03 15:56:14 得分 50
在服务器的IIS里有个默认的映射:就是将*.axd映射到aspnet_isapi.dll上。
webconfig里那么写的原理是,首相iis会把.axd的文件handle,然后就交给FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox这个命名的类来处理而不是让aspnet去处理。
但是你的服务器提供商可能为了安全起见,把.axd到aspnet_isapi.dll的映射去掉了,所以你在服务器运行就错误了。你现在唯一能做的就是联系你的服务器提供商,让他们恢复这个映射。Top
9 楼NetFire(Fire.Rolland.Han)回复于 2004-12-03 16:16:34 得分 0
ruirui521(枫之舞)
明白你的意思。服务器确实没有这个映射。但是现在加上了还是不行Top
10 楼NetFire(Fire.Rolland.Han)回复于 2004-12-03 16:34:56 得分 0
对了,又删除了,重新添加,然后restart,感谢ruirui521(枫之舞)
Top




