当错误建立网站 [英] Error when building the website

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

问题描述

我收到的时候我想建立自己的网站下面的错误,

I am getting the following error when I am trying to build my website,

有使用注册为一个部分的错误
  allowDefinition的='MachineToApplication超越应用水平。这个
  误差可以通过不被配置为虚拟目录引起
  在IIS应用程序

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

我使用IIS前preSS为我的网站,并创建一个虚拟目录,并在一个目录映射。刚刚发现,因为我还没有映射虚拟目录到它给这个错误信息的应用程序。当我尝试从我的网站项目中移除它,我不能删除该虚拟目录。

I am using IIS express for my website and created a virtual directory and mapped in to a directory. Just found out since I have not mapped the virtual directory to an application it gives this error message. I cannot remove the virtual directory When I try to remove it from my website project.

我的问题是我必须做别的事,从我的网站项目中删除虚拟目录。

My question is do I have to do anything else to remove the virtual directory from my web site project.

推荐答案

我碰到这个错误就在不久前..

I came across this error a while ago..

请确保你的web.config被放置在项目文件夹的顶层。也尽力确保你没有他们的多个版本。

Make sure your web.config is placed at the top level of the project folders. Also its best to make sure you don't have multiple versions of them

希望这有助于

PhilNerd

这篇关于当错误建立网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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