Silverlight Web配置错误

时间:2011-05-18 19:52:15

标签: asp.net silverlight-4.0

我尝试制作一个Silverlight项目,它在我的本地电脑上工作但是当我将项目发布到我的ftp并且在转到地址之后它会出现错误,如

分析程序错误消息:无法识别的属性“targetFramework”。请注意,属性名称区分大小写。

来源错误:

Line 16:             <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Line 17:         </httpModules>
Line 18:         <compilation debug="true" targetFramework="4.0"><assemblies><add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /></assemblies></compilation>
Line 19:     </system.web>
Line 20: 

2 个答案:

答案 0 :(得分:1)

请点击此处查看解决方案:http://www.roelvanlisdonk.nl/?p=1772

在IIS中选择了错误的.net框架。

答案 1 :(得分:0)

然后,您需要确保在您将项目FTP到的服务器上安装了4.0 Framework。

相关问题