Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Tools not visible in Visual Studio

Posted on by 305

Hi, I have a virtual machine with Windows XP, SQL Server 2005, Visual Studio 2005 and Dynamics v.7. Everything works fine, I can design new screens with the VBA Tools, make customizations, etc. But after some period of time (maybe 2 or 3 weeks), Visual Studio doesn't recognize the Dynamics SL SDK objects, like the SAFMaskedText, SAFFloat, etc. If I open a project that contains these objects, it runs fine, I can modify the code and compile it without problems; but I can't add new SDK objects because they are not visible in the Tools box. I have tried reinstalling Visual Studio, Dynamics, changing the .dll references for VBA Tools, etc, but anything works. The solution for me is to have a backup of the virtual machine and update the virtual machine file with the backup; but this takes time to finish and also, I need to backup all the information that changed in the damaged VM. The same problem occurs with some friends that have the installation in other virtual machines and even in main computers with the complete installation. I will be grateful with any help. Thanks.

*This post is locked for comments

  • Raman13 Profile Picture
    Raman13 10 on at
    RE: Tools not visible in Visual Studio

    Hello,

    I am new to MS Dynamics SL.

    Can you please tell me how to add the SL project in Visual studio. I tried to find the steps on internet but no hope. Wait for your response. Thanks in advance.

  • Suggested answer
    ChandraDX Profile Picture
    ChandraDX 55 on at
    RE: Tools not visible in Visual Studio

    I have tested the below on SL2011 FP1.

    Resolution for “it was not possible to import the ActiveX Control, be sure that the control is registered correctly”.

    Solution: Try adding the INTEROP.SAF.DLL from the  .NET Framework components.

    Steps:

    1. Goto Visual studio  Toolbar

    2. Right Click and select "Choose Items"

    3.In .NET Framework Component, if the Controls  are SAFMaskedText, SAFFloat, SAFOption etc., are available in the list - then select the items and the Controls will be available in the Toolbar.

    If the Controls are not available in the .NET Framework Component list,  then click on browse and select the interop.saf.dll and  Microsoft.DynamicsSL.Controls.dll from the folder "C:\Program Files\Common Files\Microsoft Shared\DynamicsSL\" .

    Note: In case of 64 bits windows, the files will be located in "C:\Program Files (x86)\Common Files\Microsoft Shared\DynamicsSL".

    Reason for not working:

    The Interop.saf.dll controls are .NET Framework components.  Hence, when you try adding the Controls from COM Components tab, the error appears.

  • Alberto Viveros Profile Picture
    Alberto Viveros 305 on at
    Re: Tools not visible in Visual Studio

    I have just had the same problem with the virtual computer; I opened a project and the SAF controls are not visible in the ToolBox section. However, they are visible in the COM components; I tried to add them manullay.Apparently the tools are available now in the ToolBox, but if I try to add one of them inside the form, I get the following error: “it was not possible to import the ActiveX Control, be sure that the control is registered correctly”.

    I reinstalled the client, but I am still having missed the SAF tools. The references of these objects are pointed to a folder in c:\windows\assembly . I tried to replace the content of this folder with the files from other machine that has the VBTools, but it doesn't work.

  • Verified answer
    Barry Flynn Profile Picture
    Barry Flynn 3,090 on at
    Re: Tools not visible in Visual Studio

    I may have just had this problem.

    I have used numerous Virtual PC's for development (for 4.5 through to SL2011), and, until today, I had not seen this problem on any of them

    Today I am working with a new VPC that is only a couple of weeks old.

    I can't guarantee that "all was well" prior to today, because in my brief work with this VPC I had been working with existing screens, and had not tried to add any new controls.

    Today I found:-

    - No SAF Controls in the toolbox

    - No Code Inspector.

    - The Tools/AddIn_Manager offered nothing that coudl be added

    - I think there was no MS Dynamics SL new project template (I may have looked in the wrong place, so I'm not sure of this one.)

    A client uninstall/reinstall seems to have fixed these items...

    Barry

  • Verified answer
    Re: Tools not visible in Visual Studio

    Hi Alberto,

    Can you copy in a screenshot of the certificate is not valid error?

  • Alberto Viveros Profile Picture
    Alberto Viveros 305 on at
    Re: Tools not visible in Visual Studio

    Thanks, I remember when I have had this problem, I checked the reference of Interop.SAF trying to reload the objects, but a message appears saying the certificate is not valid. I don't know why, if I can work with the objects for some weeks.

  • Re: Tools not visible in Visual Studio

    Hi Alberto,

    We're not sure why this would be happening.   Maybe some windows update or something is changing visual studio.

    The SL client install is what should be adding them.   If they disappear, can you re-add them by right clicking in the toolbox and selecting “add items”?   You would want to look under the .Net Framework Components tab, they should all start with “SAF”.  If they are not listed, you could try clicking Browse and browse to c:\windows\assembly and looking for Interop.saf.

    Let me know what you find.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans