Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.85 KB

README.md

File metadata and controls

23 lines (13 loc) · 1.85 KB

How to run Microsoft Dataverse samples?

  1. Download or clone the repo so that you have a local copy.
  2. (Optional) Edit the cds/App.config file to define a connection string specifying the Dataverse instance you want to connect to.
  3. Open the sample solution in Visual Studio and press F5 to run the sample.
    • If you have specified a connection string in cds/App.config, any sample you run will use that connection information.
    • If you haven't specified a connection string in cds/App.config file, a dialog (XRM tooling common login control) will open each time you run the sample and you will need to enter information about which Dataverse instance you want to connect to and which credentials you want to use. This dialog will cache previous connections so that you can choose a previously used connection. See the Known issue and its workaround later for this scenario.

The samples in this repo that require a connection to a Dataverse instance to run will include a linked reference to the cds/App.config file.

Known issue

With the recent changes to .NET Framework, an exception is thrown when a sample tries to open the XRM tooling common login control dialog. As a workaround for the time being, do one of the following:

  • Specify a connection string in cds/App.config to run the samples.

  • Enable HTTP Activation on your computer where you are running the samples, and then run the sample without specifying a connection string in cds/App.config.

This issue will be resolved in a future update when we distribute the updated assemblies through our NuGet package.