在服务器上查看ASP.Net项目 [英] Viewing The ASP.Net project on Server

查看:60
本文介绍了在服务器上查看ASP.Net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在演示服务器上查看我的asp.net项目.我已使用FileZilla软件将所有文件上传到服务器.但是当我输入网址时,出现以下错误


I want to view my asp.net project on a demo server. I''ve uploaded all my files to the server using FileZilla software. But When i enter the url, I''m getting the following error


报价:

"/"应用程序中的服务器错误.

配置错误

说明:在处理服务于此请求所需的配置文件期间发生错误.请查看下面的特定错误详细信息,并适当修改您的配置文件.

解析器错误消息:使用超出应用程序级别注册为allowDefinition =''MachineToApplication''的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的.

源错误:


第47行:用于识别传入用户的ASP.NET.
第48行:->
第49行:
第50行:

Server Error in ''/'' Application.

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.

Source Error:


Line 47: ASP.NET to identify an incoming user.
Line 48: -->
Line 49:
Line 50:

报价:

身份验证模式="None"

authentication mode="None"


第51行:< ;!-< customerrors>部分启用配置


Line 51: <!--The <customerrors> section enables configuration


有人可以帮我这个忙吗?

提前致谢.


Can some one help me out in this.

Thanks In advance.

推荐答案

您是否在项目文件夹中存储了先前版本的备份目录,并且未将其排除在项目之外?在这种情况下可能会发生,请参见 [ ^ ].
参考: http://forums.asp.net/t/1031775.aspx/1 [ ^ ]

请参考:您的应用程序没有虚拟目录 [ ^ ]
Do you have a backup directory of a previous version stored in the project folder and not excluded from project? It might happen in such a case, See this[^].
Ref:http://forums.asp.net/t/1031775.aspx/1[^]

Refer: You do not have a virtual directory for your application[^]


添加另一个链接供您参考.
http://stackoverflow.com/questions/5890207/server-error-in-application- asp-net [^ ]
Adding another link for your reference.
http://stackoverflow.com/questions/5890207/server-error-in-application-asp-net[^]


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

阅读此处解决的类似问题: ASP.NET 2.0& "allowDefinition =" MachineToApplication"错误消息 [ http://forums.asp.net/p/769696/769696.aspx [ ^ ]
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[^]


这篇关于在服务器上查看ASP.Net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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