Recently I had to develop an FetchXML SSRS report and found that I was not able to connect to D365 CRM V9 from Visual studio. I have faced a similar issue with Plugin registration tool and the same was sorted with latest version of Visual Studio. But I couldn't find any latest version of Report authoring extensions. Planned to write a quick blog to help fellow developers
What is the issue?
When we try to connect to D365 V9 from visual studio using report authoring extensions, the connection fails without any proper error and loops back to organization selection screen or login screen.
What is the root cause? TLS1.2 is used in D365 V9 and older versions are not supported!
Well document root cause available here
Some more info around TLS1.2
Available Fixes:
There can be multiple fixes to this issue, simplest one is install the latest version if available but that not an option right now.
The fixes will also work with Plugin registration tool/Console/XRMtoolbox
Fix 1: This works only when fiddler is running
Note: Need Telerik Fiddler to be installed in the machine
Fix 2: Copied from Microsoft Article(Suggested fix)
What is the issue?
When we try to connect to D365 V9 from visual studio using report authoring extensions, the connection fails without any proper error and loops back to organization selection screen or login screen.
What is the root cause? TLS1.2 is used in D365 V9 and older versions are not supported!
Well document root cause available here
Some more info around TLS1.2
Available Fixes:
There can be multiple fixes to this issue, simplest one is install the latest version if available but that not an option right now.
The fixes will also work with Plugin registration tool/Console/XRMtoolbox
Fix 1: This works only when fiddler is running
Note: Need Telerik Fiddler to be installed in the machine
- Open Fiddler
- Go to Tools in menubar => then select Options or Telerik Fiddler options
- Open HTTPS Tab and look for the highlighted region in below image
- If it is missing TLS1.2, add the same by clicking it and save
Fix 2: Copied from Microsoft Article(Suggested fix)
- Manually disable RC4 in TLS on systems running .NET Framework 3.5The following steps are primarily for customers running .NET Framework 3.5 on Windows 10 (or on Windows Server Technical Preview 3), for which an update is not available. However, for customer running .NET Framework 3.5 on all earlier affected operating systems, the manual steps serve as an optional alternative to installing the available update.Note These steps require the use of Registry Editor. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or view the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe.
- Create a text file named strongcrypto35-enable.reg that contains the following text:For 32-bit applications on 32-bit systems and 64-bit applications on x64-based systems:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727] "SchUseStrongCrypto"=dword:00000001
For 32-bit applications on x64-based systems:[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727] "SchUseStrongCrypto"=dword:00000001
- Run regedit.exe.
- In Registry Editor, click the File menu and then click Import.
- Navigate to and select the strongcrypto35-enable.reg file that you created in the first step. (Note If your file is not listed where you expect it to be, ensure that it has not been automatically given a .txt file extension, or change the dialog’s file extension parameters to All Files).
- Click Open and then click OK
- Exit Registry Editor and restart the system.
- Manually disable RC4 in TLS on systems running .NET Framework 4.5/4.5.1/4.5.2Despite the fact that an update is available for systems running .NET Framework 4.5/4.5.1/4.5.2, the following steps are primarily for customers with .NET Framework 4.5/4.5.1/4.5.2 applications running on systems with .NET Framework 4.6 present. For customers running only .NET Framework 4.5, 4.5.1, or 4.5.2, the manual steps serve as an optional alternative to installing the available update.Note These steps require the use of Registry Editor. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or view the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe.
- Create a text file named strongcrypto4-enable.reg that contains the following text:For 32-bit applications on 32-bit systems and 64-bit applications on x64-based systems:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 "SchUseStrongCrypto"=dword:00000001
For 32-bit applications on x64-based systems:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319 "SchUseStrongCrypto"=dword:00000001
- Run regedit.exe.
- In Registry Editor, click the File menu and then click Import.
- Navigate to and select the strongcrypto4-enable.reg file that you created in the first step. (Note If your file is not listed where you expect it to be, ensure that it has not been automatically given a .txt file extension, or change the dialog’s file extension parameters to All Files).
- Click Open and then click OK
- Exit Registry Editor and restart the system.
Great! nicely written blog, I hope you will share more blogs on SSRS report developer in future. Thank you for sharing this unique content with us.
ReplyDelete