C# CslaLight samples

C# CslaLight samples

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


tiago posted on Thursday, January 21, 2010

Hi Sergey,

I tried to build some samples under svn://svn.lhotka.net/csla/core/trunk/Samples/CslaLight/cs (actually ADONetDataServicesSample) under Silverlight 3 but it was a no can do. Are they supposed to build only under Silverlight 2?

sergeyb replied on Thursday, January 21, 2010

They should, although they probably have not been touched in a while.  You may just have to manually fix compile errors.  What errors are you getting, BTW?

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: tiago [mailto:cslanet@lhotka.net]
Sent: Thursday, January 21, 2010 5:59 PM
To: Sergey Barskiy
Subject: [CSLA .NET] C# CslaLight samples

 

Hi Sergey,

I tried to build some samples under svn://svn.lhotka.net/csla/core/trunk/Samples/CslaLight/cs (actually ADONetDataServicesSample) under Silverlight 3 but it was a no can do. Are they supposed to build only under Silverlight 2?



RockfordLhotka replied on Thursday, January 21, 2010

The 3.8.1 (or 3.8.2?) samples should all work on SL3. I went through (I think) all the samples and updated them for 3.8 and SL3.

tiago replied on Friday, January 22, 2010

Hi again Sergey,

The error is

The type or namespace name 'SilverlightControls' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)D:\CSLA\Sources\TestSamples\CslaLight\cs\ADONetDataServicesSample\Web\Default.aspx.designer.cs

As far as I understood, the referred namespace moved from the SDK to the toolkit. But I have no clue concerning the specific assembly.

The Web.csproj file refers to <Reference Include="System.Web.Silverlight, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />

 

Hi Rocky,

Although this isn't very important, the project files of ADONetDataServicesSample refer

<Reference Include="Csla, Version=3.6.0.0, Culture=neutral, PublicKeyToken=93be5fdc093e4c30, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>

 

sergeyb replied on Friday, January 22, 2010

You are probably missing web forms Silverlight control.  Really, Microsoft does not distribute it any longer as they prefer that everyone would use OBJECT tag instead.  I think if you search the forum you will find a resolution to this issue.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: tiago [mailto:cslanet@lhotka.net]
Sent: Friday, January 22, 2010 2:22 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: C# CslaLight samples

 

Error 1 The type or namespace name 'SilverlightControls' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) D:\CSLA\Sources\TestSamples\CslaLight\cs\ADONetDataServicesSample\Web\Default.aspx.designer.cs 41 41 Web

As far as I understood, the referred namespace moved from the SDK to the toolkit. But I have no clue concerning the specific assembly.



tiago replied on Saturday, January 23, 2010

sergeyb:
You are probably missing web forms Silverlight control.  Really, Microsoft does not distribute it any longer as they prefer that everyone would use OBJECT tag instead.  I think if you search the forum you will find a resolution to this issue.

Been there, done that. That's how I learned they moved it to the toolkit. I'm in the posting phase ;)

Thanks anyway Sergey.

Copyright (c) Marimer LLC