Project Tracker Sample Problems

Project Tracker Sample Problems

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


jfierstein posted on Thursday, July 12, 2012

Hi,

I'm trying to mess around with the ProjectTracker sample project to follow along with some of the walkthrough videos. I am using Visual Studio 2010 and I'm trying to run the sample from CSLA 3.8. I'm getting an error in the Web.config file after I've seemingly rectified all the broken references upon importing the project solution into VS.

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

 

If I comment that particular line out, it compiles and runs fine, except I get a FileNotFoundException when I click cancel on the Login screen and attempt to navigate to View Project.

Could not load file or assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

 

I converted the project from VS2008 to VS2010, could this have caused problems? I was asked by Visual Studio to upgrade parts of the project but I still get the error regardless of whether or not I upgrade. The output also shows the following right after I click View Projects:

A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll

A first chance exception of type 'Csla.Reflection.CallMethodException' occurred in Csla.DLL

A first chance exception of type 'Csla.Server.DataPortalException' occurred in Csla.DLL

A first chance exception of type 'Csla.Server.DataPortalException' occurred in Csla.DLL

A first chance exception of type 'Csla.Server.DataPortalException' occurred in Csla.DLL

A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

'PTWin.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_64\System.Transactions\2.0.0.0__b77a5c561934e089\System.Transactions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

A first chance exception of type 'System.IO.FileNotFoundException' occurred in Csla.dll

A first chance exception of type 'System.IO.FileNotFoundException' occurred in Csla.dll

Thanks for any help that could be provided!

richardb replied on Friday, July 13, 2012

Sounds like it's a mix of .Net 3.5 and 4.0 here.  I'd suggest try downloading verion 4.3.x of the framework and its samples, which has a later ProjectTracker sample.  That all works in VS 2010 and .Net 4.

jfierstein replied on Friday, July 13, 2012

Well I've got the ProjectTracker for 4.3.13 up and running, but could someone explain what is going on here? I set the solution to open the WpfUI version as the startup project. I don't click login, but instead click on Resources tab on the left hand side of the window. It starts loading, and then throws a bunch of exceptions...but the exceptions seem to "fix themselves"...after about 5 seconds.

 

Screenshots:

http://imgur.com/a/3vvUg#2

 

I  had to disable "Just My Code" in the Visual Studio Debugger settings in order to get the application to keep running after the exception was thrown. See above screenshots of what's happening. Could someone explain why the exception is being thrown and why it "goes away" after a several seconds?

 

 

 

Copyright (c) Marimer LLC