Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Customizations fail on 64-bit client

Posted on by 525

This weekend I upgraded our environment from SL 6.0 to SL 7.0 (SP3).

Overall the upgrade smooth with one big exception.

On our client computer we are running Windows 7 64 bit (which is supported in FP1 and above, according to the documentation). There were several issues in getting the client up and running (we had to mannually register capicom.dll located in the SysWOW64 folder).

Now the client appears to be up an running OK execpt for any screen that we hve VBA customizations on. The first time the user launches the screen everything works fine. The customizations are in place and work as expected.

When the user closes the screen, then later opens the same screen errors begin to occur: http://img535.imageshack.us/img535/5625/error1c.png

When this screen is closed the "normal", non-customized version of the screen is loaded.

When the users closes Dynamics SL completely, then reopens SL, a different error is dispalyed when they try to open the same screen as before:  http://img90.imageshack.us/img90/8682/error2d.png

The screen will never load at this point and the only solution is to reimport the customizations. At this point everything repeats: First load is good, second load has compiler error, and third time error loading VBA project is displayed.

Has anyone seen this type of behaviour before? This has caused us to roll back our upgrade from version 6 to 7 that occured over the weekend and right now we are at a standstill trying to figure this out.

This problem does not occur on a client that is running Windows 7 32-bit. It only appears to occur on the 64-bit platform.

Obviously it is not my first choise, nor recomendation, that we downgrade to Win 7 32-bit, so I am hoping for a different solution.

Thanks,

Richard 

 

 

 

*This post is locked for comments

  • Rodney Hansen Profile Picture
    Rodney Hansen 26 on at
    Re: Customizations fail on 64-bit client

    Try using Process Monitor to look for errors.  technet.microsoft.com/.../bb896645

  • M.manico Profile Picture
    M.manico 5 on at
    Re: Customizations fail on 64-bit client--FOUND IT!!!!

    Thank you everyone, this really saved our Bacon.  I know this is an old thread, but wanted to support anyone who provide a solution.  Again, thank you.

  • Toni Savage Profile Picture
    Toni Savage 260 on at
    Re: Customizations fail on 64-bit client--FOUND IT!!!!

    We just went through H*** with the same problem, and fixed it at the last minute!  MS Said they are "perparing a KB article".... But here is what fixed it:

     

    Thanks for all the details!  I have seen this before and am actually in the process of getting a KB article out about this.  What we have seen is that for a SDK app to work on a 64bit machine, the target platform in visual studio needs to be set to "x86".  To do this:

     

    1 - In Visual Studio, before you click debug, select Build -> Configuration Manager.

    2 - Under "Active Solution Platform" select "<New...>"

    3 - Under "Type of Select the new platform" select "x86"

    4 - Click OK. The active solution platform field and the Platform column in the grid should be set to "x86"

    5 - Recompile your code and try again.

     

  • Richard West Profile Picture
    Richard West 525 on at
    Re: Re: Re: Re: Re: Customizations fail on 64-bit client

    pbrattin,

    This appears to do the trick!

    I edited the SOLOMON.INI file located on the server, in the C:\Program Files\Microsoft Dynamics\SL\Applications folder.

    There was not a [Customization] section in my solomon.ini file, so I added the following to the file:

    [Customization]

    VBASourceCompile=Yes

    After this change was made I restarted Dynamics SL on my 64-bit client system and all customizations appear to be working normally.

    Thanks to everyone for their help. Hopefully this solution can be added to the KB on CustomerSource so that others may find this solution quickly.

  • Richard West Profile Picture
    Richard West 525 on at
    Re: Re: Re: Re: Re: Customizations fail on 64-bit client

    pbrattin,

    Can you confirm which solomon.ini file you edited?

    If this is .ini file located on the client system, in "C:\Users\<profile name>\AppData\Roaming\Microsoft Dynamics SL\solomon.ini".

    Or is this the solomon.ini file located on the server, in the "C:\Program Files\Microsoft Dynamics\SL\Applications\Microsoft Dynamics SL\solomon.ini"

    Or is this the solomon.ini file location on the server, in the "C:\Program Files\Microsoft Dynamics\SL\Applications\solomon.ini"

    Since I have found 3 .ini files I thought I would seek a little clairification.

    Also, I am not seeing a "Customization" section within any of these files. Should I just add that section?

    Below is a copy from the .ini file location on the client system, which is the same as the file located within the .\Applications\Microsoft Dynamics SL\ folder on the server:

    [System32 Database]
    DatabaseType=MS
    Database=mycompanySYS
    Server=SQL-01
    [Company]
    CompanyID=mycompany
    UserID=

     

     

  • pbrattin Profile Picture
    pbrattin 1,850 on at
    Re: Re: Re: Re: Customizations fail on 64-bit client

    I fixed the problem by performing the following procedure:

    1. Log off from Microsoft Dynamics SL.
    2. Browse to the Microsoft Dynamics SL program files directory.
    3. Locate the Solomon.ini file, and then open the file by using Notepad.
    4. In the Customization section of the Solomon.ini file, make the following change:
    VBASourceCompile = Yes
    5. Click Save, and then close Notepad.

    If that does not work, maybe I can poll my buddies on how to reregister the proper dll's.

  • Richard West Profile Picture
    Richard West 525 on at
    Re: Re: Re: Customizations fail on 64-bit client

    Ohhh, that sounds like my exact problem -- even down to the TRIM function.

    I have tried deleting the swimapi.k* files from the "C:\Users\<profile name>\AppData\Roaming\Microsoft Dynamics SL\APC" folder.

    Can you advise on how I can reregister/install the VBA components?

  • pbrattin Profile Picture
    pbrattin 1,850 on at
    Re: Re: Customizations fail on 64-bit client

    From the Solomon partner newsgroup: 

    Subject: Re: Can't find Project or Library (Trim function)   4/21/2010 11:35 AM PST
    By:   Jeff Williams  In:   microsoft.private.mbspartner.solomon
     
    I have ran across a few things that can cause that
    
    1) reregister/install the vba components.
    2) delete the temp kernel files (the swimapi.k* files)
    3) some other 'reference' in the vba project is missing or invalid.
    
    On 4/21/2010 12:23 PM, tom malia wrote:
    > I know I’ve seen this somewhere before that this is a know problem.
    >
    > Client has a customization that uses the TRIM function in some VBA code…
    > all was working fine until “Update Tuesday” yesterday.
    >
    > Now they get an error message “Can’t find Project or Library” and the
    > Debugger stops on the “Trim” function.
    >
    > What causes this and what was the resolutions again?
    >
    > Tom Malia
    >
    > T&T Data Solutions L.L.C. <http://www.ttdsinc.com>
    >
    .
    

     

  • pbrattin Profile Picture
    pbrattin 1,850 on at
    Re: Customizations fail on 64-bit client

    I have 95% confidence that the problem has nothing to do with 64Bit. Rather it is a VBA problem that existed in 6.5 and 7.0 and occurred on Vista and Win7 32 bit and 64 bit. It and caused me some headaches until I figured out how to fix it. The fix is easy. See Article ID: 971965.

    We run Win7 and Vista 64 bit with no problems. 

     

  • hassanvoyeau Profile Picture
    hassanvoyeau 580 on at
    Re: Customizations fail on 64-bit client
    This would be my last suggestion. You might want to check the installation/related folders and make sure that the permissions are in line with what exists on the other clients.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans