在远程服务器上打开网页时出错

发布于 2024-10-01 12:57:15 字数 950 浏览 1 评论 0原文

当我尝试在远程服务器上打开 Default.aspx 页面时,出现以下错误,

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 



Parser Error Message: 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.




Line 50:             ASP.NET to identify an incoming user. 
Line 51:         -->
Line 52:        <authentication mode="Windows"/>
Line 53:        <!--
Line 54:             The <customErrors> section enables configuration 


Source File: C:\inetpub\wwwroot\toolbar\web.config    Line: 52

如何解决上述错误。身份验证模式应该是什么。我已将我的网站放在 C:\inetpub\wwwroot\toolbar 中,与我的网站相关的所有文件(包括 web.config)都位于工具栏文件夹中。

When i try to open my Default.aspx page on remote server i get the following error

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 



Parser Error Message: 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.




Line 50:             ASP.NET to identify an incoming user. 
Line 51:         -->
Line 52:        <authentication mode="Windows"/>
Line 53:        <!--
Line 54:             The <customErrors> section enables configuration 


Source File: C:\inetpub\wwwroot\toolbar\web.config    Line: 52

how to resolve the above error.what should be the authentication mode. I have placed my website inside C:\inetpub\wwwroot\toolbar and all the files related to my website including web.config are inside the toolbar folder.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情深已缘浅 2024-10-08 12:57:15

解决方案是这里,通过快速谷歌搜索找到..

我想这将解决您的错误:

要解决此问题,请右键单击
虚拟目录-选择属性
然后点击旁边的“创建”
“应用程序”标签和文本框。
它会自动创建
使用虚拟的“应用程序”
目录的名称。现在申请
可以访问。

The solution is here, found by fast Googling..

I assume this will solve your error:

To resolve it, Right Click on the
virtual directory - select properties
and then click on "Create" next to the
"Application" Label and the textbox.
It will automatically create the
"application" using the virtual
directory's name. Now the application
can be accessed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文