Unable to compile CSLALight 3.7.1

Unable to compile CSLALight 3.7.1

Old forum URL: forums.lhotka.net/forums/t/7788.aspx


GregDobbs posted on Wednesday, October 14, 2009

Attempting to compile CSLALight results in six errors similar to the following two:

Error 1 The type or namespace name 'WcfErrorInfo' does not exist in the namespace 'Csla.WcfPortal' (are you missing an assembly reference?) P:\Projects\dobbs\clientNet\CslaLight\cslalightcs\Csla\DataPortalException.cs 19 22 CslaLight


Error 3 The type or namespace name 'CriteriaRequest' does not exist in the namespace 'Csla.WcfPortal' (are you missing an assembly reference?) P:\Projects\dobbs\clientNet\CslaLight\cslalightcs\Csla\DataPortalClient\WcfProxy.cs 148 23 CslaLight


And another error as follows:

Error 7 The type or namespace name 'CookieContainer' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) P:\Projects\dobbs\clientNet\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.cs 751 27 CslaLight



I have researched the forum extensively - followed some threads that said to remove and re-add System.Services.Data.Client ... nothing works.

Has anyone else been completely unable to compile CSLALight for these same reasons?


Jav replied on Thursday, October 15, 2009

Are you making sure that the references to Csla in each of your projects are all valid?

GregDobbs replied on Thursday, October 15, 2009

Hi, Jav.

Yes - all the proper refernces to CSLA are valid.

Even if they were not - that wouldn't prevent CSLALight from compiling - which is my problem. The only references CSLALight requires are the various system DLLs.

I wonder if it may be a problem with the WcfPortal service reference - although that looks fine too.

GregDobbs replied on Thursday, October 15, 2009

Making progress - it was indeed the service reference - mistakenly set to WcfPortal.svc, not WcfSLPortal.svc. Important safety note!

Still getting one error:

Error 7 The type or namespace name 'CookieContainer' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) P:\Projects\dobbs\clientNet\CslaLight\cslalightcs\Csla\Service References\WcfPortal\Reference.cs 751 27 CslaLight

Setting the proper service reference didn't resolve this one. Any thoughts?

-- Greg

GregDobbs replied on Thursday, October 15, 2009

Two things were required:

1) Set the service reference to the Silverlight (WcfSLPortal.svc). In some demos and samples this is named WcfPortal and in others it is named WcfSLPortal - make sure to use the settings for SL in CSLALight!

2) Needed to add a reference to System.Net.dll - Silverlight version (found in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0).

Cleaned that up and all is well!

Copyright (c) Marimer LLC