我需要在我的网络中重新创建一个提供者。配置文件看起来像这样:
<membership defaultProvider="AspNetSqlMemProvider">
<providers>
<clear/>
<add connectionStringName="TRAQDBConnectionString" applicationName="TRAQ" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0"
name="AspNetSqlMemProvider"
type="System.Web.Security.SqlMembershipProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
</providers>
</membership>
然而,我得到一个运行时错误,说这个程序集无法加载,我认为这是因为我有错误的PublicKeyToken。如何为程序集查找PublicKeyToken ?
或者,我是否完全走错了方向?
把dll-assemblyinfo文件放入$PATH:
#!/bin/sh
f=$(readlink -f "$1")
{
echo "using System.Reflection;"
echo "Assembly.LoadFile(\"$f\");"
} | csharp
那么Chmod +x
$ dll-assemblyinfo packages/System.Buffers.4.5.1/lib/netstandard2.0/System.Buffers.dll
System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
把dll-assemblyinfo文件放入$PATH:
#!/bin/sh
f=$(readlink -f "$1")
{
echo "using System.Reflection;"
echo "Assembly.LoadFile(\"$f\");"
} | csharp
那么Chmod +x
$ dll-assemblyinfo packages/System.Buffers.4.5.1/lib/netstandard2.0/System.Buffers.dll
System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51