从 web.config 中删除程序集

Remove assembly from web.config

我正在创建 Web 应用程序,其中我有 2 个应用程序作为父项和子项工作,

所以在我的 IIS 中,我为 application1 创建了一个 website 并在 IIS 中的 application1 中添加了 application2 但问题是,我的父项目中有一个 dotnetcharge.dllreference,但是当我从 IIS 的 运行 子项目时,我收到 dotnetcharge.dll

的引用错误

所以我在项目 2 的 bin 文件夹中添加了 dll 引用,但仍然出现相同的错误,

所以我决定从子 web.config

中删除程序集引用
<compilation debug="true" targetFramework="4.6.1">
    <assemblies>
        <remove assembly="dotnetcharge"/>
    </assemblies>
</compilation>

但这里没有任何效果,

如何删除儿童应用程序的引用?

您已正确删除 assemblies

问题可能出在您在 IIS 上上传应用程序时 web.config 的路由可能与您的想法不同,

我认为 web.config 的路径造成了问题,尝试在 web.config

上传时更改路径