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
|
Hi, I tried the model generator for lightspeed. But i still had a beta installed. uninstalled it downloaded the new version. installed the release version. When I went into visual studio I still had 2 LightSpeedModel templates in my new items. So i uninstalled the lot. Searched all the VS2k8 folders for mindscape and lightspeed. Deleted all those files and folder. Reinstalled lightspeed and tried to generate models. but i can design them alright. I just cant run the generator. When I save the file nothing happens. When I right click the lsmodel file and choose run custom tool I get an error message. When I go to the command line and run lsgen I get the same error message. Unhandled Exception: System.TypeLoadException: Could not load type 'Mindscape.LightSpeed.Generator.Model.IGenerationLog'
Thanks |
|
|
This sounds like you may have some old versions of the DLLs lurking around, probably in the custom tool directory but possibly in the GAC. Rather than try to identify the DLLs one by one, I suggest you: * Uninstall LightSpeed 2. * Check the Program Files/Mindscape directory and delete any LightSpeed 2 Beta N directories. * Ideally, delete the LightSpeed 2 directory itself, unless you have any custom batch files or templates in there that you want to keep. If you can't delete the entire directory, go into the Program Files/Mindscape/LightSpeed 2/Tools/Designer
directory and delete any EXEs or DLLs. * Go into the GAC and uninstall any Mindscape.LightSpeed.* DLLs. * [Probably unnecessary, but if you want to be really thorough... I would omit this stage unless you get "custom tool not found / not present" errors in Visual Studio.] If you want to check that the custom tool is fully uninstalled, check the registry under HKLM / Software / Microsoft / VisualStudio / 9.0 / Generators. The GUID beginning "164B" is for Visual Basic generators, "FAE0" for C# generators. If there are .lsmodel or LightSpeedModelGenerator entries under these GUIDs, note the CLSIDs. Delete the generator entries then chase the CLSIDs and delete those registrations. Now reinstall the LightSpeed 2 release version and hopefully all will be well. If you still get the problem, can you get us the Fusion logs? Also may be worth running filemon to see where it is picking up the Mindscape.LightSpeed.Generator.Model.dll file. Finally, can you let us know the error message you get from the custom tool (and the stack trace if one is displayed in the Output window). Thanks! |
|
|
Hi Ivan, It seems that the problem was mostly that it couldn't remove the registered assemblies from the gac because they were required by the installer. That is a rare but known condition by MS. I had to hunt through the registry and remove all references of Mindscape stuff from any keys ending in Installer\assemblies\global that would then let me use gacutil /uf to remove the assemblies Thanks
|
|
|
Ouch, nasty. Thanks for letting us know the resolution! |
|
|
It turns out I was again being overly optimistic because it did in fact generate a file now but I couldn't open the designer in visual studio. No useful error message but just operation could not be completed. Did the whole dance again. Uninstalled lightspeed, looked for files on the filesystem that might have remained there somehow. Went into regedit and hit search for mindscape but that still doesn't fix the error. I don't know where I have to get the information you need to help me get out of this mess |
|
|
Okay, so you have created a .lsmodel file using lsgen, right? But this won't load into Visual Studio. Can you create a .lsmodel file via the Add New Item dialog, or does that give you the same error? Can you check for the presence of the Mindscape.LightSpeed.Generator.* files in the GAC? I am thinking that with the cleansing of the installer database, the installer may have got confused and perhaps isn't installing them because it thinks they are already there. Have you had any "package load failure" errors? Run devenv /resetskippkgs in case a previous package load failure has disabled the LightSpeed designer package. Try running Visual Studio with the /log switch. This generates a load log at {USERPROFILE}\{AppData}\Microsoft\VisualStudio\{Hive}\ActivityLog.xml which might give us some clues. |
|