allowdefinition ="MachineToApplication". [英] allowdefinition="MachineToApplication"

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

问题描述

你好,

我已经通过右键单击->属性->虚拟目录选项卡->应用程序名称->创建在iis中配置了我的项目.

但是,当我将其上传到实际站点(在Internet上)时,仍然出现错误,表明您的网站未配置为在IIS上作为应用程序运行.

请提供帮助.

Hello,

I have configured my project in iis by right clicking->properties->virtual directory tab->application name->create.

But still when I upload it to the actual site(on internet) it gives an error that your website was not configured to run as an application on IIS.

Please help.

推荐答案

通常,在应用程序根文件夹中有多个Web.Config文件时,会发生这种情况.
只需检查您是否有多个.如果是这样,请删除重复的副本.

阅读此处解决的类似问题: ASP.NET 2.0& "allowDefinition =" MachineToApplication"错误消息 [
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition=''MachineToApplication''" error message[^]

Other useful link that has similar issue discussed: http://forums.asp.net/p/769696/769696.aspx


请按照以下步骤操作:

1 .按 Window + R 并编写 inetmgr

2 .右键单击默认网站

3 .选择新建>> 虚拟目录.

4 .点击下一步

5 .输入别名(Alias Name)

6 . Brose您的 Project 文件夹路径

7 . 全部选中(如果需要)

8 .完成



如有任何疑问,请让我知道.

请提供"投票":thumbsup:如果有帮助,请提供"接受答案",如果这是正确的答案.:rose:

谢谢,
Imdadhusen
Please follow steps:

1. Press Window + R and Write inetmgr

2. Right click on Default Web Site

3. Select New >> Virtual Directory..

4. Click Next

5. Enter Alias Name

6. Brose your Project folder path

7. Checked All (if you want)

8. Finish



Please do let me know, if you have any doubt.

Please provide "Vote":thumbsup: if this would be helpful, and make "Accept Answer" if this would be correct answer.:rose:

Thanks,
Imdadhusen


这篇关于allowdefinition ="MachineToApplication".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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