dotConnect for Dynamics 365 Documentation
On this page
    FAQ
    On this page

    This page contains frequently asked questions about dotConnect for Dynamics 365. When you have a question, check this list first. If this page does not contain the answer, refer to the support page.

     

    Installation and deployment
    1. I installed dotConnect for Dynamics 365 trial, then I have bought and installed the purchased version, but something went wrong.
      Make sure you have uninstalled the trial version correctly. There should be no old (trial) assemblies present in your system. Uninstall dotConnect for Dynamics 365 and check your Global Assembly Cache and local folders for Devart.* assemblies. Remove all Devart.* files and reinstall dotConnect for Dynamics 365.
    2. How do I upgrade to a newer version of dotConnect for Dynamics 365?

      Close all running IDEs and help collections, then run the installation package for the newer version. When prompted to uninstall the previous version, confirm and proceed with the installation.

    3. How do I deploy my application?

      To deploy an application that uses dotConnect for Dynamics 365, you need to:

      • Deploy the Devart runtime assemblies used by your application.
      • Include the technical license resource.
      • If your application uses provider factories, you also need to make dotConnect for Dynamics 365 available to the system.

      For detailed instructions on each of these steps, see Deployment and Licensing.

    4. How do I install dotConnect for Dynamics 365 on a machine without Visual Studio installed?
      Select the "Minimal" type when prompted by the installer.
    5. I have received a message that Devart.Data is incompatible...

      Devart data providers share common assemblies (Devart.Data.dll ), so you must install compatible versions of the providers. We release our ADO.NET data providers in a single package, so releases from the same date should be compatible. Also, Devart data providers should warn you if an incompatible version of Devart.Data.dll is detected before installation.

    6. I have received the following message - "error 0175: The specified store provider cannot be found in the configuration, or is not valid..". What does it mean and what should I do?

      You should put the Devart.Data, Devart.Data.Dynamics, and Devart.Data.Dynamics.Entity.EF4 (for applications using Entity Framework v4 or v5) or Devart.Data.Dynamics.Entity.EF6 (for applications using Entity Framework v6) assemblies in the Bin folder of your application (or place these assemblies in the Global Assembly Cache). Make sure that your application is licensed correctly (take a look at the Licensing article for more information).

      Information about provider registering is available in the Deployment article.

    Subscriptions and upgrades
    1. I have a registered version of dotConnect for Dynamics 365. Will I need to pay to upgrade to future versions?

      All upgrades to future versions are free to users with an active dotConnect for Dynamics 365 subscription.

    2. What are the benefits of the dotConnect for Dynamics 365 Subscription Program?

      The dotConnect for Dynamics 365 Subscription Program is an annual maintenance and support service for dotConnect for Dynamics 365 users.

      Users with a valid dotConnect for Dynamics 365 Subscription receive the following benefits:

      • Access to new versions of dotConnect for Dynamics 365 as they are released.
      • Access to all dotConnect for Dynamics 365 updates and bug fixes.
      • Product support through the dotConnect for Dynamics 365 Priority Support program.
      • Notifications of new product versions.

      Priority Support is an advanced product support program that offers you expedited individual assistance with dotConnect for Dynamics 365-related questions from the dotConnect for Dynamics 365 developers themselves. Priority Support is carried out over email and has a response time of two business days.

    3. Can I continue using my version of dotConnect for Dynamics 365 after my subscription expires?

      Yes, you can. Licenses for dotConnect for Dynamics 365 are perpetual.

    Technical licensing
    1. What is the licensing you use?

      dotConnect for Dynamics 365 uses .NET component licensing. To build an operational application, dotConnect for Dynamics 365 requires a valid license. Without license , dotConnect for Dynamics 365 does not work.

    2. How to embed the license into my application?
      Usually you do not have to care about embedding the license in your application. When you install dotConnect for Dynamics 365, the system is configured so that licensing is done transparently. The license is automatically added to the project when you place a DynamicsConnection component onto a form.
      In some cases, you have to manually add the license. For instructions on how to add the license manually, refer to the Licensing topic in the dotConnect for Dynamics 365 help.
    3. On opening the connection, I get an exception saying "License not found...". What should I do?

      This generally indicates that license information cannot be found, or you try to apply it in some way that does not suit the kind of application. For example:

      • The licenses.licx file, required for dotConnect for Dynamics 365 to function properly, cannot be found.
      • The licenses.licx file is not added as an embedded resource.
      • The App_Licenses.dll file is not found in ASP.NET applications.

      To fix the problem, determine the type of your application and read the corresponding section of the "Licensing" topic.

    4. On opening the connection, I get an exception saying "License not valid...". What should I do?

      This means that license information is found but it is incorrect. It usually happens in the following cases:

      1. The project was earlier compiled with an old or trial version of dotConnect for Dynamics 365.
      2. The licenses.config file used by a class library does not refer to the launched executable.
      3. The App_Licenses.dll file belongs to other application or needs to be recompiled.
      4. Something is wrong with the operating system or installation of dotConnect for Dynamics 365.

      If you encounter one of these problems, do the following (the numbers of actions correspond to the numbers of the problems in the above list):

      1. Delete all files from the bin and obj folders and rebuild the project.
      2. Specify the executable in the licenses.config file.
      3. Rebuild App_Licenses.dll for the current application.
      4. Perform the following steps:
        1. uninstall dotConnect for Dynamics 365;
        2. remove all Devart.* and policy.*.Devart.* files from the GAC;
        3. clear the Program Files\Devart\dotConnect and Program Files\Common Files\Devart\dotConnect folders;
        4. re-install dotConnect for Dynamics 365.
    5. Deployed application worked fine some time, but at some moment it started to say "Sorry, your trial period has expired". But I do not use trial version any more.
      Probably, you compiled the application with the Trial edition of dotConnect for Dynamics 365, and deployed it with assemblies from a non-trial version. In this case, time limit is actual as well. To eliminate the problem, just recompile the project.
    6. How to license ASP.NET applications?

      To support server-side compilation you ought to have the special assembly App_Licenses.dll in the Bin directory of your site. To create this assembly, execute the Build Runtime Licenses command in the licenses.licx file context menu in the Solution Explorer view. The required assembly will be created automatically.

      Note that this is not necessary for precompiled ASP.NET applications (if nothing is compiled on the server by user request). Precompiled applications are licensed as usual applications.

    7. I am having problems with the licensing in my project... What should I do?

      If you encounter licensing problems in your project, you should use the License Information dialog box to resolve them. To open it, on the Tools menu, point to Dynamics 365, then click License Information.

    8. Do end users need a license?

      No, end users of your application don't need a license.

    Connection pooling
    1. I call DynamicsConnection.Open(), then Close(). The physical connection is still visible by the server. Isn't it a bug?
      No, it is not. This is the Connection Pooling feature. The actual connection is not closed in order to be used later by your application. This boosts performance greatly.
    2. I get the following exception: "Timeout expired. The timeout period elapsed..." What should I do?

      The full exception message is "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached." This message indicates that no connections are available in the pool. To solve the problem, increase the Max Pool Size connection string parameter value. The default value is 100. Another way to get extra connections is to clear one or all of the pools. Alternatively, you can turn off connection pooling by setting the Pooling connection string parameter to false.

    3. How can I prevent potential connection pooling problems?

      You can clear the pool explicitly. Generally, the pool is cleared automatically when connections are idle or closed by the server. To force the operation, call the ClearPool or ClearAllPools methods. Alternatively, you can turn off the pool completely by setting Pooling=false in the connection string. If this does not help, the problem is not caused by connection pooling.

    Documentation problems
    1. How do I open documentation on dotConnect for Dynamics 365?

      There are several ways to open dotConnect for Dynamics 365 documentation:

      • Use the appropriate shortcut on the Start menu, for example, Start -> Programs -> Devart dotConnect for Dynamics 365 -> Documentation.
      • Open it from Visual Studio: on the Tools menu, point to Dynamics 365, then click dotConnect for Dynamics 365 Help.
      • Place the cursor on some class from Devart.Data.Dynamics and press F1.
      There is also the same documentation in the chm format. You can download it from our web-site at the following address: www.devart.com/dotconnect/dynamicscrm/dcdynamicscrm.chm. Downloaded CHM files are blocked on Windows operating systems by default. If the downloaded file shows an empty
    2. I can't see the documentation in Visual Studio Help Collection.
      Correctly installed documentation appears as a separate node in the combined collection of Visual Studio. If you can't find the dotConnect for Dynamics 365 node there, it is because topics filtering is enabled. To reveal the node, set the filter to "Devart Documentation", or "(unfiltered)", or "Visual C#", etc.
      Another possible reason is that you installed some IDE after the installation of dotConnect for Dynamics 365. In this case, use aforementioned methods to access documentation.
    3. All topics in the CHM file are blank.

      This can happen due to some patches from Microsoft installed on your system. Please read this page to find possible solutions to the problem. In most cases, it is enough to right-click the CHM file, select Properties, click Unblock, then click Apply to show the contents.

    ORM solutions
    1. Is Entity Framework supported?

      dotConnect for Dynamics 365 supports the latest versions of ADO.NET Entity Framework.

    2. Are there any demo projects to play with?
      dotConnect for Dynamics 365 comes with Demo Center application, which demonstrates main dotConnect for Dynamics 365 features. Among other features, this application demonstrates LINQ to Entities query execution.
    Miscellaneous
    1. Are there any restrictions for Visual Studio Express editions?
      Yes, there are some. First, the provider add-in (and hence menu item) is not available. Second, components are not registered in toolbox automatically (though you can do it manually). Finally, advanced Visual Studio integration (DDEX) is not available, except Microsoft Web Developer Express 2010.
    2. No components appear in the toolbox.

      This can happen if an issue occurred during installation. You can add the components to the toolbox manually. For instructions, see Installation.

    3. dotConnect for Dynamics 365 says it uses a different version of assemblies.
      Delete all policy files used by dotConnect for Dynamics 365 from the GAC.
    4. Can I use dotConnect for Dynamics 365 assemblies in a x64 process?

      dotConnect for Dynamics 365 assemblies are built with the /platform:anycpu option, so you can use them on both x86 or x64 platforms. For more information, refer to http://msdn.microsoft.com/en-us/library/zekwfyz4.aspx