从两个web.config文件访问一个web.config文件 [英] Access one web.config file from two web.config file

查看:68
本文介绍了从两个web.config文件访问一个web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,对于一个文件夹,我想访问子文件夹web.config文件,而对于剩余的应用程序,我想访问根文件夹web.config文件。我在IIS中托管该应用程序,但它仍然给我错误作为一个



使用在应用程序级别之外注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于虚拟目录未配置为IIS中的应用程序引起的。

I am having one application in that for one folder i want to access sub folder web.config file while for remaining application i want to access root folder web.config file.I host that application in IIS but it still give me error as an

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

推荐答案

您好,



你需要提供更多详细信息

- 你想做什么

- 解决方案结构是什么样的

- 哪个Visual Studio

- 无论你是否使用IIS



但是,这些链接可以帮助你,因为他们指出了各种修复方法这个问题。



Link 1 [ ^ ]

Link 2 [ ^ ]

Link 3 [ ^ ]



[请求e接受/投票回答或解决方案,为您鼓励参与]
Hi,

You need to provide more details on
- what you are trying to do
- what the solution structure looks like
- which Visual Studio
- whether or not you are using IIS

However, these links here would help you as they point out various methods of fixing this issue.

Link 1[^]
Link 2[^]
Link 3[^]

[Please accept/up-vote answers or solutions that work for you to encourage participation]


这篇关于从两个web.config文件访问一个web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆