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