无需重新编译即可在dasBlog上升级FreeTextBox

Some folks have had trouble with FreeTextBox under dasBlog not working. The symptom is that the FreeTextBox won't render at all. There's no error and no idea why. It's very frustrating. While we're working on the "no error" issue, the underlying problem isn't dasBlog.

有些人在dasBlog下无法使用FreeTextBox遇到麻烦。 症状是FreeTextBox根本不会渲染。 没有错误,也不知道为什么。 非常令人沮丧。 在解决“无错误”问题时,根本的问题不是dasBlog。

DasBlog builds with a reference to the strongly-typed FreeTextBox 3.0.5000.1. However, you may have 3.0.5000.3. Or, like me, downloaded and installed the latest 3.0.5000.5.

DasBlog的构建参考了强类型的FreeTextBox 3.0.5000.1。 但是,您可能有3.0.5000.3。 或者像我一样,下载并安装了最新的3.0.5000.5。

You need to tell .NET that you know what you're doing and say "when you ask for this version, please bind to that version." 

您需要告诉.NET您知道自己在做什么,然后说“当您要求该版本时,请绑定到该版本。”

So, added to the web.config of my dasBlog:

因此,添加到我的dasBlog的web.config中:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>  
            <assemblyIdentity name="FreeTextBox" publicKeyToken="5962a4e684a48b87" culture="neutral"/> 
                <bindingRedirect oldVersion="3.0.0.0-3.0.5000.4" newVersion="3.0.5000.5" /> 
        </dependentAssembly>
    </assemblyBinding>
</runtime>

<运行时> <assemblyBinding xmlns =“ urn:schemas-microsoft-com:asm.v1”> <dependentAssembly> <assemblyIdentity name =“ FreeTextBox” publicKeyToken =“ 5962a4e684a48b87” culture =“ neutral” /> <bindingRedirect oldVersion =“ 3.0.0.0-3.0.5000.4” newVersion =“ 3.0.5000.5” /> </ dependentAssembly> </ assemblyBinding> </运行时>

And everything works great. I suggest you do this if you've updated FreeTextBox. Note also that this is needed regardless of whether FreeTextBox is in the GAC or not.

一切都很好。 如果您更新了FreeTextBox,建议您这样做。 还请注意,无论FreeTextBox是否在GAC中,都需要这样做。

翻译自: https://www.hanselman.com/blog/upgrading-freetextbox-on-dasblog-without-recompiling

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值