Raj*_*ani 5 .net asp.net .net-4.0
我是ASP.NET(4.0)中更新的开发人员.我开发了一个网站,它完全在我的本地系统中工作.但现在我上传服务器中的所有文件,当我加载任何页面时,Web.config文件中出现错误.
我的Web.Config代码是......
<?xml version="1.0" ?>
<configuration>
<connectionStrings>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="Off"/>
<authentication mode="None"/>
</system.web>
</configuration>
Run Code Online (Sandbox Code Playgroud)
AND ERROR IS(当我在服务器上运行时)......
'/'应用程序中的服务器错误. *配置错误* 描述:处理为此请求提供服务所需的配置文件时发生错误.请查看下面的具体错误详细信息并相应地修改配置文件.
分析器错误消息:无法识别的属性'targetFramework'.请注意,属性名称区分大小写.
来源错误:
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="Off"/>
<authentication mode="None"/>
Run Code Online (Sandbox Code Playgroud)
版本信息: Microsoft .NET Framework版本:2.0.50727.5456; ASP.NET版本:2.0.50727.5456
在IIS中,尝试将您网站的应用程序池的.NET Framework版本设置为4.0.
如果您的站点在托管服务提供商的服务器上运行,并且您没有远程桌面访问权限,那么他们应该可以在其网站管理工具中的某个位置设置应用程序池的.net框架版本.
| 归档时间: |
|
| 查看次数: |
53781 次 |
| 最近记录: |