Answered LocBaml Errors

  • Friday, July 07, 2006 11:04 PM
     
     
    I'm getting an error when trying to use LocBaml. I'm running the June CTP, but I could only find the code to compile LocBaml in the Beta 2 examples, which may explain the problem.

    The error is: File 'Puzzle.resources.dll' not found.

    Process:
    1. parse the Puzzle.resources.dll and send output to C:\ [works fine]
    2. move to C:\
    3. Double check-mark up, [its there]
    4. run: LocBaml -g Puzzle.resources.dll /trans:WSLocal.cvs /out:c:\ /cul:en-US
    My error occurs there. My understanding was this file was being generated, so it wouldn't be found... no matter, I copy my old Puzzle.resources.dll into C:\ and give it another go.

    Now it complains that 'Puzzle' assembly cannot be loaded from the current working directory or from the GAC.

    So, quite puzzled now, I move the contents of my Debug directory into C:\ also. Still no change..

    [edit: The assembly is not signed, and the main assembly and the resources.dll are the same file version]

    I'd love a hint - doesn't even have to solve the problem but I'm out of ideas... =)

All Replies

  • Saturday, July 08, 2006 6:16 PM
     
     Answered

    Try placing your main assembly(puzzle.dll/exe) in the locbaml directory.  If you have dependencies, such as custom controls, main assembly is required for generation.

    I hope this helps

    -Alik

  • Monday, July 10, 2006 4:35 PM
     
     
    I moved things around and got things working.  I thought by adding the LocBaml to my execution path and having my CWD with the main assembly that it would be enough.  Guess not.