编译时出错 [英] Error while compiling

查看:86
本文介绍了编译时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在安装VS2008之后安装了IIS(5.1).之后,我用
进行配置 asp_regiis -i实用程序.但是当我构建应用程序时,出现以下显示的错误.



Hi,
i had installed IIS(5.1) after installing VS2008. after that i configure with
asp_regiis -i utility. but when i build my application i am getting the below shown error.



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.

推荐答案

如错误所示,请检查虚拟目录,需要将其配置为应用程序.

http://support.microsoft.com/kb/172138 [
As the error says, check the virtual directory, it needs to be configured as an application.

http://support.microsoft.com/kb/172138[^]


我认为您的webconfig文件未放在根目录中,在项目中的目录中,将其放置在根文件夹中,然后再次编译.

问候
Rakesh R B
I think Your webconfig file is not placed in root,it is placed in a directory within the project place it in root folder then compile again.

Regards
Rakesh R B


我认为您正在使用两个web.config文件..对吗?
在根文件夹和子文件夹之一(如果是)中
然后检查您在两个web.config文件中使用的身份验证模式

回复我,我会给你解决方案
i think you are using two web.config files ..right?
in root folder and one of the subfolder if yes
then check the authentication mode you have used in both the web.config files

reply me i will give you the solution


这篇关于编译时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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