虚拟目录未配置为在IIS中的应用 [英] Virtual Directory not being configured as an application in IIS

查看:88
本文介绍了虚拟目录未配置为在IIS中的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从网上下载一个网站测试网站code和我把它转换为Visual Studio 2008中但是,我得到的编译错误如下:

I downloaded a testing website code from a site and I converted it to visual studio 2008. But, I get the compilation error as follows:

这是使用注册为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."

任何人,解决问题PLZ ?? !!

Anyone, solve the problem plz??!!

推荐答案

这要看你是如何运行的应用程序。

It depends how your are running the application.

如果你运行它时,救援人员到场运行在VS2008的任何应用程序,启动临时asp.net web服务器

If your running it thro the temp asp.net webserver which starts when you run any application from the VS2008

在您的系统IIS中配置的Web应用程序。

Configure the web apps in your system IIS.

您可能会遇到这个错误,应用程序需要在本地IIS配置
而非温度。 asp.net web服务器。因此,移动应用程序文件到的Inetpub / wwwroot文件夹。并将其配置为运行前的Web应用程序。

You might be getting this error because, the application need to configure in the local IIS instead of temp. asp.net web server. So move the application files into the Inetpub/wwwroot folder. And configure it as the web application before running.

参考。

http://forums.asp.net/t/1031775.aspx << - 先试试这个

http://forums.asp.net/t/1031775.aspx <<-- try this one first

<一个href=\"http://umbraco.org/documentation/books/install-umbraco-4-on-windows-vista/configure-iis-website\">http://umbraco.org/documentation/books/install-umbraco-4-on-windows-vista/configure-iis-website

<一个href=\"http://www.shabdar.org/virtual-directory-not-being-configured-as-an-application-in-iis.html\">http://www.shabdar.org/virtual-directory-not-being-configured-as-an-application-in-iis.html

这篇关于虚拟目录未配置为在IIS中的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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