【问题标题】:ASP.NET DLL folder changeASP.NET DLL 文件夹更改
【发布时间】:2016-08-03 08:24:43
【问题描述】:

我正在使用这种方法来更改 DLL 文件夹。但是,此方法不允许访问父目录。

如果你能帮忙,我会很高兴。谢谢。

Web.config 文件:

</configuration>
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="bin;C:\Windows\SysWOW64" />
    </assemblyBinding>
  </runtime>
</configuration>

【问题讨论】:

    标签: c# asp.net dll


    【解决方案1】:

    我通过单独添加文件解决了我的问题。谢谢。

    解决方案:

    Web.config

    <configuration>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Mvc"  culture="neutral" publicKeyToken="31bf3856ad364e35"/>
            <codeBase version="5.2.3.0" href="FILE://C:/bin2/subbin/System.Web.Mvc.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Http"  culture="neutral" publicKeyToken="31bf3856ad364e35"/>
            <codeBase version="5.0.0.0" href="FILE://C:/bin2/subbin/System.Web.Http.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Http.WebHost"  culture="neutral" publicKeyToken="31bf3856ad364e35"/>
            <codeBase version="5.0.0.0" href="FILE://C:/bin2/subbin/System.Web.Http.WebHost.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Net.Http.Formatting"  culture="neutral" publicKeyToken="31bf3856ad364e35"/>
            <codeBase version="5.2.3.0" href="FILE://C:/bin2/subbin/System.Net.Http.Formatting.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json"  culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>
            <codeBase version="4.5.0.0" href="FILE://C:/bin2/subbin/Newtonsoft.Json.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Design"  culture="neutral" publicKeyToken="B03F5F7F11D50A3A"/>
            <codeBase version="4.0.0.0" href="FILE://C:/bin2/subbin/System.Design.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Windows.Forms"  culture="neutral" publicKeyToken="B77A5C561934E089"/>
            <codeBase version="4.0.0.0" href="FILE://C:/bin2/subbin/System.Windows.Forms.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Entity"  culture="neutral" publicKeyToken="B77A5C561934E089"/>
            <codeBase version="4.0.0.0" href="FILE://C:/bin2/subbin/System.Web.Entity.dll"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Data.Linq"  culture="neutral" publicKeyToken="B77A5C561934E089"/>
            <codeBase version="4.0.0.0" href="FILE://C:/bin2/subbin/System.Data.Linq.dll"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    
    </configuration>
    

    【讨论】:

      猜你喜欢
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-18
      • 2011-02-03
      • 2017-12-04
      • 2018-04-20
      • 2023-03-28
      相关资源
      最近更新 更多