ASP.NET运行时错误在web.config文件中存在的对的.aspx框架2.0的网站 [英] ASP.NET Runtime Errors Occuring in web.config file for .aspx framework 2.0 website

查看:342
本文介绍了ASP.NET运行时错误在web.config文件中存在的对的.aspx框架2.0的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的FTP我的.aspx页面通过网络解决方案托管在远程服务器我收到此错误。这code是在我的web.config文件,当我删除标记,我得到有关targetFramework = 4.5其他错误属性不被认可。这第一个错误建议,我设置了一个虚拟目录使用IIS,但我不能用我的订阅访问IIS管理器中的远程服务器。有没有解决方法,以解决这一认证方式标记错误,甚至不能识别的targetFramework属性错误,而无需使用IIS或有什么解决办法呢?请帮帮忙,和最后一件事是,网页是针对2.0框架,但整个targetFramework = 4.5的东西仍然存在,即使4.5无关的网站和标签和属性甚至没有在我的网页config文件,我觉得这很奇怪。我应该采取什么措施来解决这个问题。我要再次指出,我没有IIS管理器,因为我的主机订阅的访问。这是所有被Windows服务器2003下使用。


  

在'/'应用程序的服务器错误。配置错误说明:
  配置文件的要求的处理过程中发生的错误
  此请求提供服务。请检查特定错误详细信息
  下面并适当地修改配置文件。


  
  

分析器错误信息:这是使用注册为一节是错误的
  allowDefinition的='MachineToApplication超越应用水平。这个
  误差可以通过不被配置为虚拟目录引起
  应用在IIS。


  
  

源错误:

  ASP.NET识别传入的用户。
      - >
     <身份验证模式=窗口/>
     <! -
         在<&的customErrors GT;节可以配置


  
  

版本信息:Microsoft .NET Framework版本:2.0.50727.3649;
  ASP.NET版本:2.0.50727.3634


第二期,显示了:


  

在'/'应用程序的服务器错误。配置错误说明:
  配置文件的要求的处理过程中发生的错误
  此请求提供服务。请检查特定错误详细信息
  下面并适当地修改配置文件。


  
  

分析器错误信息:无法识别的属性targetFramework。注意
  该属性的名称是区分大小写的。


  
  

源错误:

 <&的System.Web GT;
   <编译调试=假targetFramework =4.5/>
   <的httpRuntime targetFramework =4.5/>
 < /system.web>


  
  

版本信息:Microsoft .NET Framework版本:2.0.50727.3649;
  ASP.NET版本:2.0.50727.3634



解决方案

看起来像你的Web应用程序的应用程序池可与.NET Framework 2.0的,但要使用.NET 4.5。检查应用程序池配置为Web应用程序

I am receiving this error when I ftp my .aspx web page to a remote server hosted by Network Solutions. This code is in my web.config file and when I remove the tag I get another error about the targetFramework = 4.5 attribute not being recognized. This first error recommends that I set up a virtual directory using IIS, but I cannot access IIS Manager with my subscription to the remote server. Is There any workaround to solving this authentication mode tag error and even the unrecognized targetFramework attribute error without using IIS or is there any solution at all? Please help, and one last thing is that the web page is targeting the 2.0 framework, but the whole targetFramework = 4.5 thing is still there even though 4.5 has nothing to do with the web site and that tag and attribute is not even in my web.config file, which I find strange. What steps should I take to fix the issue. I'll once again note that I don't have access to IIS Manager because of my hosting subscription. This is all being used under Windows Servers 2003.

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:

        ASP.NET to identify an incoming user. 
     -->
     <authentication mode="Windows" />
     <!--
         The <customErrors> section enables configuration 

Version Information: Microsoft .NET Framework Version:2.0.50727.3649; ASP.NET Version:2.0.50727.3634

Second issue that shows up:

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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

 <system.web>
   <compilation debug="false" targetFramework="4.5" />
   <httpRuntime targetFramework="4.5" />
 </system.web>

Version Information: Microsoft .NET Framework Version:2.0.50727.3649; ASP.NET Version:2.0.50727.3634

解决方案

Looks like your web app works on App Pool with .NET Framework 2.0, but wants to use .NET 4.5. Check application pool config for your web application

这篇关于ASP.NET运行时错误在web.config文件中存在的对的.aspx框架2.0的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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