2012-05-17 53 views
0
 <?xml version="1.0"?> 
<configuration> 
    <connectionStrings> 
    <add name="rde_410978ConnectionString" connectionString="Data Source=SQL2008.net.dcs.hull.ac.uk;Initial Catalog=rde_410978;Integrated Security=True" 
     providerName="System.Data.SqlClient" /> 
    </connectionStrings> 
    <system.web> 
    <compilation debug="true" targetFramework="4.0"/> 
    </system.web> 
</configuration> 

这是我的配置文件。我通过构建>发布网站将它发布到服务器。上传到Web服务器时,asp网站将无法工作?

没有一个错误是由于服务器,因为大学已经设置了它,并且它正在为其他人正常工作。

错误:

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: 


Line 16: 
Line 17: <system.web> 
Line 18:  <compilation debug="false" strict="false" explicit="true" targetFramework="4.0" /> 
Line 19: 
Line 20:  <authentication mode="Forms"> 


Source File: C:\RDEUsers\NET\410978\web.config Line: 18 
+0

你得到了什么错误? –

回答

1

我认为它的,因为部署环境,我相信的.NET版本不是4.0。

如果他们有相同的目标框架(如4.0),请与他人一起检查。

相关问题