" .. allowDefinition的='MachineToApplication“超越应用水平"错误在虚拟主机上部署的网站 [英] "..allowDefinition='MachineToApplication' beyond application level" error on deploying the website on web host

查看:85
本文介绍了" .. allowDefinition的='MachineToApplication“超越应用水平"错误在虚拟主机上部署的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的所有在互联网和#2这种遗传问题的解决方案,但没有人谈论同样的后/在部署即可。我也看了这个著名文章。所以,我的网站通过运行VS 2010精绝不过,我得到这个问题的时刻,我部署我的网站 2010年使用VS的拷贝工具

I came across the solution of this genetic problem all across the internet and Stackoverflow, but none of them talk about the same after/on deployment. I also read this famous article . So, my website runs absolutely fine via VS 2010. However, I get this problem the moment I deploy my website using the copy tool of VS 2010.

有在 1根,2 - 用户文件夹,3账户文件夹的三项的web.config 文件。标签存在于根目录下的web.config文件。其中的层次结构如下: domain.com / httpdocs资料/ websitefolder / web.config中。在 websitefolder 帐户用户文件夹,其中还包含web.configs,但其中非有标签。

There are three web.config files in. 1- root, 2- Users folder, 3- accounts folder. The tag exists in the web.config file in the root. The hierarchy of which looks like: domain.com / httpdocs / websitefolder / web.config. In the websitefolder there are Accounts and Users folders which further contain web.configs, but non of them have the tag.

什么可能出问题从开发机部署?我得到的错误是在行:

What could possibly go wrong from the development machine to deployment? The error I am getting is on line:

Line 16:  <authentication mode="Forms">

在httpdocs资料,有其他与web.configs项目,可以在有问题?在这种情况下,我也删除了他们的内容,但并没有帮助(但可能是我应该做一个更好的工作吗?我不知道这是什么要求呢?)。

In the httpdocs, there are other projects with web.configs, can that be a problem? In that case, I also deleted their contents, but didn't help (but may be I should have done a better job? I don't know if this is what was required at all?).

此外,这是一个网站,所以有创建无垃圾桶或OBJ文件夹,没有那种问题的。请建议,我无法弄清楚这个问题。非常感谢。

Also, this is a website, so there's no bin or obj folder being created, none of that kind of issue. Please suggest, I am not able to figure out the problem. Thanks a lot.

推荐答案

通常,当你在一个网站子目录多个站点,inspite你删除一个web.config,问题将持续存在。在这种情况下,即使子文件夹应该被标记为应用程序。

Usually when you have multiple sites in sub directories of one site, inspite you delete a web.config, the problem will persist. In that case even the sub folders should be marked as an application.

是你这个网站部署在IIS中应用程序的文件夹?这就是为什么会发生这个错误的重要原因之一。

Is the folder in which you have this website deployed an application in IIS? It is one main reason why this error could occur.

如果它不是,使其作为一个应用程序,问题应该解决。

If its not, make it as an application and the problem should resolve.

更新:好像你已经使用的文件系统,同时开发自己的网站。

Update: Seems you have used File System while developing your website.

首先安装如<一个IIS服务器href=\"http://www.howtogeek.com/howto/windows-vista/how-to-install-iis-on-windows-vista/\">this\".

接下来,您应该在IIS中创建一个虚拟目录。请参阅这个。 (在物理路径,选择高达部署文件夹的路径)

Next you should create a virtual directory in IIS. See "this" . (in physical path, select the path upto your deployment folder)

现在运行网站。如果你的问题就解决了​​就意味着问题是在你的远程服务器虚拟目录。因此,报告他们。

Now run the website. If your problem is solved it means the issue is with the virtual directory in your remote server. So report them.

这篇关于&QUOT; .. allowDefinition的='MachineToApplication“超越应用水平&QUOT;错误在虚拟主机上部署的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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