Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net iexplore.exe.config被忽略_.net_Internet Explorer_App Config - Fatal编程技术网

.net iexplore.exe.config被忽略

.net iexplore.exe.config被忽略,.net,internet-explorer,app-config,.net,Internet Explorer,App Config,我需要覆盖Internet Explorer中托管的.NET组件的一些设置。我已经创建了一个iexplore.exe.config文件,并将其放置在c:\program files\internet explorer中 下面是配置文件: <configuration> <system.net> <webRequestModules> <remove prefix="http:"/>

我需要覆盖Internet Explorer中托管的.NET组件的一些设置。我已经创建了一个iexplore.exe.config文件,并将其放置在c:\program files\internet explorer中

下面是配置文件:

<configuration>
    <system.net>
        <webRequestModules>
            <remove prefix="http:"/>
            <remove prefix="https:"/>
            <add prefix="http:" type="MyHttpRequestCreator, MyRequestModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bee8bd1bab54ad99" />
            <add prefix="https:" type="MyHttpRequestCreator, MyRequestModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bee8bd1bab54ad99" />
        </webRequestModules>
    </system.net>   
</configuration> 
我检查了该配置文件,但它没有覆盖system.net部分,因此我仍然可以提供覆盖。我可以尝试修改那个文件,但这个解决方案对我来说不起作用,因为我不想让每个使用这个应用程序的人都受到影响,只想让特定的机器受到影响


想法?

当你在你的hostig网站中考虑以下内容时,也许会有所帮助:

<link rel="Configuration" href="your.config"/>

签出以下链接。你很老了,但也许这一点没有改变:

如果这解决了问题,您可以考虑如何仅在某些机器上包含这一点。

如果Internet Explorer中托管的应用程序具有配置 文件,此文件的位置在带有 以下语法:

在此标记中,位置是配置文件的URL。这套 应用程序库。配置文件必须位于 与应用程序相同的网站


另外,请查看Dan Hickman在中的回复提供了类似的说明(请参阅“如何嵌入控件”一节)。所有这些都是关于提供适当的访问权限。

只是检查一下。。。x86还是x64操作系统?(只是因为如果它是x64,您可能真的希望将其放置在
C:\Program Files(x86)\Internet Explorer
)我的测试已经在x86和x64机器上进行,为了安全起见,我已经将配置放置在x64机器上的两个位置。默认IE是32位的,这就是我要发布的IE,但我在这一点上暴露了真相。有趣的建议,但不幸的是我没有“拥有”目标网站。+1,我不相信IE使用iexplore.exe.config:Sascha似乎是正确的,尽管微软提供了一些误导性的文档。
<link rel="Configuration" href="your.config"/>