CSLA 3.6.1.0 build fails

CSLA 3.6.1.0 build fails

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


nhwilly posted on Thursday, February 19, 2009

Trying to get back into CSLA and downloaded the latest everything.  .NET Framework 3.5, VS2008Pro, CSLA 3.6.1.0.  Using Vista64.   Bought the Alpha VB Book online and read almost all of that.  I am a VB guy, with no C# experience.

Using the instructions in cslabuild.pdf (which weren't an *exact* match, btw) I tried to build CSLA to get started.  I got the errors below (as well as others).  I am sure this is an installation/cockpit error, but I can't get to the bottom of it. 

I did try to add a reference to the project (on a lark) and selected the System.Data .NET reference.  I noticed the version on that was 2.0 and I assumed it would be 3.5 or something.  Still no go.

I did notice that I have a C:\Users\Bill\Documents\Visual Studio 2008 directory even though the files are to be extracted from cslacs into C:\Visual Studio Projects\CSLA\Source.  I tried both and neither one worked.

Anyone have any ideas?  Thanks in advance...

==================================

Error 16 The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\Visual Studio Projects\CSLA\Source\Csla\Data\ObjectContextManager.cs 6 19 Csla

Error 17 The type or namespace name 'Services' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\Visual Studio Projects\CSLA\Source\Csla\Data\DataServiceContextManager.cs 24 67 Csla

 

JoeFallon1 replied on Thursday, February 19, 2009

Not sure what you are doing wrong.

Here is what I do:

1. Download the latest Csla.zip file and put it in a folder like C:\CSLA Versions\3.6\

2. Unzip the file - but when asked for a folder I always press the . (period) to indicate current folder.

Also be sure to extract and Use Folder Names.

3. Then simply double click the .sln file and hit compile. It should work.

4. I also have my own .snk file so I change that in Proeject Properties Signing and recompile.

5. Once it is done compiling - copy the Csla.dll and .pdb files to your project and reference them from your new project.

Joe

 

nhwilly replied on Thursday, February 19, 2009

Thanks, Joe but that didn't work, either.  Same errors.

Would it be something I didn't install when I installed VS2008?  Do I have to do something special for C#?  Here's the full list of errors:

Warning 1 Could not resolve this reference. Could not locate the assembly "System.Data.Services.Client". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Csla

Warning 2 Could not resolve this reference. Could not locate the assembly "System.Data.Entity". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Csla

Warning 3 #warning: 'Improve if items is a counting bag' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 297 10 Csla

Warning 4 #warning: 'We could send bag events here easily using a CircularQueue of (should?)' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 389 10 Csla

Warning 5 #warning: 'We could easily raise bag events' C:\CSLA Versions\3.6\cslacs\Csla\C5\Hashing\HashBag.cs 585 10 Csla

Warning 6 #warning: 'INEFFICIENT' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\HashedLinkedList.cs 1452 10 Csla

Warning 7 #warning: 'must we check stamps here?' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\HashedLinkedList.cs 1553 10 Csla

Warning 8 #warning: 'INEFFICIENT' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\LinkedList.cs 1452 10 Csla

Warning 9 #warning: 'must we check stamps here?' C:\CSLA Versions\3.6\cslacs\Csla\C5\linkedlists\LinkedList.cs 1553 10 Csla

Warning 10 #warning: 'for bag implementation: count is wrong' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 1541 10 Csla

Warning 11 #warning: 'how does this work together with persistence?' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 2150 10 Csla

Warning 12 #warning: 'improve (mainly for bag) by using a Node iterator instead of ItemMultiplicities()' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeBag.cs 2163 10 Csla

Warning 13 #warning: 'for bag implementation: count is wrong' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 1541 10 Csla

Warning 14 #warning: 'how does this work together with persistence?' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 2150 10 Csla

Warning 15 #warning: 'improve (mainly for bag) by using a Node iterator instead of ItemMultiplicities()' C:\CSLA Versions\3.6\cslacs\Csla\C5\Trees\RedBlackTreeSet.cs 2163 10 Csla

Error 16 The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\ObjectContextManager.cs 6 19 Csla

Error 17 The type or namespace name 'Services' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\DataServiceContextManager.cs 24 67 Csla

Error 18 The type or namespace name 'ObjectContext' could not be found (are you missing a using directive or an assembly reference?) C:\CSLA Versions\3.6\cslacs\Csla\Data\ObjectContextManager.cs 31 64 Csla

Error 19 The tag 'BrokenRuleSeverityConverter' does not exist in XML namespace 'clr-namespace:Csla.Wpf'. Line 9 Position 18. C:\CSLA Versions\3.6\cslacs\Csla\Themes\Generic.xaml 9 18 Csla

Warning 20 The referenced component 'System.Data.Entity' could not be found.  
Warning 21 The referenced component 'System.Data.Services.Client' could not be found.  

 

JoeFallon1 replied on Thursday, February 19, 2009

I think you need SP1 of VS 2008.

Joe

 

nhwilly replied on Thursday, February 19, 2009

It says:

Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM

I'll check it.  Thanks.

rfcdejong replied on Thursday, February 19, 2009

System.Data.Entity assembly is part of SP1 indeed.
System.Data.Services.Client as well.

http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/05/12/new-assemblies-net-framework-3-5-sp1.aspx

So just install SP1 :)

nhwilly replied on Thursday, February 19, 2009

You guys rock.  Thanks for the help. 

The build worked, but I got a ton (55) of "warnings".  Is that normal?

OK, I checked out some  of the "warnings" and it looks like they are documentation in the code.  Just never seen that before.

Onward!  Into the fog...

JoeFallon1 replied on Friday, February 20, 2009

I knew it was SP1 of "something"!

Many of the warnings are related to the C5 library which is a dependency for the LinqBindingList code. It is open source so you could always join their project and resolve the warnings. <g>

Joe

 

nhwilly replied on Friday, February 20, 2009

If I can't get CSLA to build because I to **&@# dumb to load the service packs, I'm not sure how much I have to contribute to open source.

I'd be the guy that all the anti-open source guys would put in their power point presentations.

OTOH, I can buy beers.  Any CLSA users in Indianapolis are more than welcome to take me up on that!

Thanks, Joe.

Frontier_teg replied on Friday, February 27, 2009

I am just getting started with the whole CSLA thing.
The CSLA build worked fine.
But the samples won't build.

C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\AddProjectRequest.cs(8,10): error CS0246: The type or namespace name 'ProjectData' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(10,36): error CS0246: The type or namespace name 'ProjectListRequest' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(10,8): error CS0246: The type or namespace name 'ProjectData' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(12,26): error CS0246: The type or namespace name 'ProjectRequest' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(12,3): error CS0246: The type or namespace name 'ProjectData' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(14,3): error CS0246: The type or namespace name 'ProjectData' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(16,29): error CS0246: The type or namespace name 'UpdateProjectRequest' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(16,3): error CS0246: The type or namespace name 'ProjectData' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(18,27): error CS0246: The type or namespace name 'RoleRequest' could not be found (are you missing a using directive or an assembly reference?)
C:\Visual Studio Projects\csla\Samples\CslaNet\cs\ProjectTrackercs\www\PTWcfService\App_Code\IPTService.cs(18,8): error CS0246: The type or namespace name 'RoleData' could not be found (are you missing a using directive or an assembly reference?)

Any help would be greatly appreciated

nhwilly replied on Friday, February 27, 2009

Got sidetracked and haven't tried yet, sorry.

Frontier_teg replied on Friday, February 27, 2009

Ooops!!!

I forgot to add the virtual directories to IIS to make the PTWeb, PTWebService and PTWcfService work.

Copyright (c) Marimer LLC