SL 4 and CSLA 3.8.x

SL 4 and CSLA 3.8.x

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


Jack posted on Monday, April 19, 2010

Is/has anybody upgraded their Silveright application to SL4 with the existing 3.8.x framework?   I would like to upgrade my UI controls but don't need the headache of CSLA issues.

Thanks

jack

sergeyb replied on Monday, April 19, 2010

I was able to do it.  No issues with CSLA, although I did not recompile the CSLA as 4.0, I left them on .NET 3.5 SP1/ SL 3 versions.

skagen00 replied on Monday, April 19, 2010

Same as Sergey - pointed all references for the Web app and class libraries for server and Silverlight side to 4 and all is well.

Using CSLA 3.8.3 still too.

Jack replied on Tuesday, May 11, 2010

1) I can compile with no errors.  I didn't touch the 3.8.2 dll builds I had referenced.

2) When I start to run I get the following error: 

'WebDev.WebServer40.EXE': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.JScript\657c944537a05caa1b1f55cffb8aabb9\Microsoft.JScript.ni.dll', Cannot find or open the PDB file

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'

First-chance exception at 0x7599b727 in WebDev.WebServer40.EXE: Microsoft C++ exception: EEFileLoadException at memory location 0x0516a528..

I can continue past and ignore this error.  Then I get the following:

3) - Could not load file or assembly 'System.ServiceModel.NetTcp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

This is happening in reference.cs (cslalightcs) at the 

public WcfPortalClient()
        {
        }

4) I can continue past this and then I get this:

Could not load file or assembly 'System.ServiceModel.PollingDuplex, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

At the same point.

5) Again I can continue debugging past that and I get:

Could not load file or assembly 'System.ServiceModel.Extensions, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

 private class WcfPortalClientChannel : ChannelBase<Csla.WcfPortal.IWcfPortal>, Csla.WcfPortal.IWcfPortal {
           
            public WcfPortalClientChannel(System.ServiceModel.ClientBase<Csla.WcfPortal.IWcfPortal> client) :
                    base(client) {
            }

6) And then my application is loaded and seems to work okay... I have a few SL4 issues with XAML parse errors I hadn't had in SL3 but I'm assuming those are just convention changes or badly formed XAML that used to work okay.

Anyhow I'm a bit worried about trying to deploy without rectifiying some of these issues.

I can't build/deploy 3.8.3 (not that I think that would make a difference) .

Any ideas or suggestions?

Thanks

jack

Jack replied on Tuesday, May 11, 2010

Just as an update I did a deploy and everything runs okay.  For anyone else updating everything to SL4 / .NET4 don't forget to install the .NET 4 client on your webserver and to update the application pool to version 4.x.

As for the debugging errors I just set the debugger to ignore c++ exceptions and to ignore IO.FileNotFound and it isn't beeping at me anymore.

It would be nice not have any exceptions but this should do until I can upgrade to CSLA 4.x

jack

Copyright (c) Marimer LLC