Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : add a reference to assembly 'System.ServiceModel, Version=3.0.0.0'

I can able to build my silverlight 4.0 application in Win xp(IIS 5.1). But when i try to build the same app in Win Server 2008 R2(IIS 7), i am getting the error,

"error CS0012: The type 'System.ServiceModel.ClientBase`1' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'".

The path actually it is refereing the dll on both the machines is, "C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.ServiceModel.dll".

What may be the issue?

Thanx in advance

like image 207
Mohan Avatar asked Nov 01 '11 09:11

Mohan


1 Answers

Make sure that under the Reference Folder of your project you see System.ServiceModel.

like image 121
haremofhoth Avatar answered Oct 08 '22 01:10

haremofhoth