如何解决这个问题? [英] how to fix this...?

查看:83
本文介绍了如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码在本地和服务器上工作得很好但是当我发布网站并上传到服务器上时它显示我这个错误:



描述:在处理为此请求提供服务所需的配置文件期间发生错误。请查看下面的具体错误详细信息,并相应地修改配置文件。



解析器错误消息:使用注册为allowDefinition ='MachineToApplication'的部分是错误的应用水平。此错误可能是由于虚拟目录未在IIS中配置为应用程序造成的。



来源错误:





服务器上发生应用程序错误。此应用程序的当前自定义错误设置可防止远程查看应用程序错误的详细信息(出于安全原因)。但是,可以在本地服务器上运行的浏览器查看它。





源文件:G:\ PleskVhosts \ patientshealthyelves.com \ ... \ ..... org\test\web.config行:50



版本信息:Microsoft .NET Framework版本:2.0.50727.6421; ASP.NET版本:2.0.50727.6427



my code was working nicely on local and server as well but when i published the website and uploaded on server then it is showing me this 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:


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


Source File: G:\PleskVhosts\patientshealthyselves.com\...\.....org\test\web.config Line: 50

Version Information: Microsoft .NET Framework Version:2.0.50727.6421; ASP.NET Version:2.0.50727.6427

<authentication mode="Forms"/>

          <!--The <customErrors> section enables configuration
          of what to do if/when an unhandled error occurs
          during the execution of a request. Specifically,
          it enables developers to configure html error pages
          to be displayed in place of a error stack trace.-->

          <customErrors mode="Off" > </customErrors>





,这是我的代码....为什么会发生这种情况我已经搜索了很多但是仍然用相同的plzzz帮助我指导我...也告诉我如何解决这个



and this is my code ....why this is happening i have searched lot for this but still stuckked with same plzzz help me guide me...also tell me how to resolve this

推荐答案





首先阅读: http://scottonwriting.net/sowblog/archive/2010/02/17/163375.aspx [ ^ ]



现在请按照以下步骤操作: http://stackoverflow.com/ questions / 9300927 / error-to-use-a-section-registered-as-allowdefinition-machinetoapplication-beyo [ ^ ]


这篇关于如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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