简体   繁体   中英

How to add assembly to web.config using C# asp.net?

I want to click a button in a webform page to add an assembly to the web.config file.

How can I do that?

<assemblies>

<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

</assemblies>

我相信您可以通过AssemblyCollection操作web.config的该部分。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM