This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I installed 3.1 Express and created a new .lsmodel in a new VS2010 winforms project. When I build the project, I get 4 errors as per the subject in the .cs file of the .lsmodel (for the 4 lines which refer to Mindscape). This happens even with an empty .lsmodel (like the one below). Mindscape.Lightspeed and Mindscape.Lightspeed.Linq are referenced and appear to be the correct version. (3.1.1540.13882). I've tried removing and re-adding the .lsmodel, rebooting, trying with a new project, etc. Nothing seems to make any difference. Any ideas gratefully recieved! Cheers, Ben
using System; using Mindscape.LightSpeed; namespace Prototypes /// <summary> [System.CodeDom.Compiler.GeneratedCode("LightSpeedModelGenerator", "1.0.0.0")] }
|
|
|
Hi Ben, I suspect you are targetting the 4.0 Framework Client Profile (which is the default in VS2010 for that project template) rather than the 4.0 Framework (or 3.5/2.0) when building. This will cause the error you are seeing because the LightSpeed assemblies wont be able to be resolved as they reference some assemblies which are not part of the client profile (you can see the details of this if you drill into the MSBuild output). If you go to the properties for your project and on the "Application" tab set the "Target Framework" selection to ".NET Framework 4" this should resolve things.
Jeremy |
|
|
Visual Studio 2010 defaults to the .NET Client Profile. LightSpeed has dependencies on System.Web and System.Data.OracleClient, which are not part of the Client Profile. Unfortunately, rather than issuing a warning or error about possible dependencies, Visual Studio simply pretends that the reference to the LightSpeed DLL doesn't exist, and emits these totally misleading error messages. The resolution is to go into Project > Properties > Application, and change the target framework to be the full framework rather than the Client Profile. (Note that these dependencies are not actually invoked unless you actually access the Oracle provider or Web cache; so LightSpeed does work on the Client Profile. It's just Visual Studio that goes berserk.) |
|
|
Awesome, that's fixed it. Thanks for the uber swift response! Cheers, B |
|
|
Thanks, I have the same problem and this fixed it. Regards Mark
|
|