Advertisements

Archive

Posts Tagged ‘ADX’

ADX Web Site Compilation Error – The type ‘System.Object’ is defined in an assembly that is not referenced.

Recently while compiling my ADX web site, I was getting below compilation exception from all my .ascx (Views) files.

Compiler Error Message: CS0012: The type ‘System.Object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

Issue was bit strange as I already had “System.Runtime’ dll referred in the website

Fix:

  • Open the Web.config file and add below tag inside the <compilation> tag

<assemblies>

<add assembly=”System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />

</assemblies>

  • Your <compilation> tag should look as below

<compilation debug=”true” targetFramework=”4.5″>

<assemblies>

<add assembly=”System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />

</assemblies>

</compilation>

Note:

  • If your <compilation> tag already had <add assembly=”…”> tags, add only <add assembly=”System.Runtime…> tag to the existing tags.

🙂

Advertisements
Categories: ADX, CRM, Uncategorized Tags: ,

Could not load file or assembly ‘Microsoft.Cloud.InstrumentationFramework.Events’

October 23, 2016 Leave a comment

I got the below assembly load error, while I was running my ADX Portal web site from Visual Studio.

Could not load file or assembly ‘Microsoft.Cloud.InstrumentationFramework.Events’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

could-not-load-assembly

could-not-load-assembly

Issue was not with missing .dll reference, as I already had the “Microsoft.Cloud.InstrumentationFramework.Events.dll” added to my project.

Fix:

  • Enabling an option in my Visual Studio Project fixed the issue.
  • Navigate Tools -> Options -> Project and Solutions
  • Enable “Use the 64 bit version of …” option.
Use 64 bit version

Use 64 bit version

  • Build and run the Project.

🙂

Cryptographic operation error while opening ADX portal from IIS

September 27, 2016 Leave a comment

I was getting below ‘Cryptographic operation’ error while opening ADX portal from IIS.

Cryptographic-error-adx-portal

Cryptographic-error-adx-portal

From the error, it’s clear that ADX portal encountered issue while decryption of Password.

Points to ponder:

  • When you run ADX portal for the first time, it opens Configuration screen to capture CRM organization credentials.
  • Credentials provided in Configuration screen will get saved under “../App_Data/settings.xml” file.
Configuration-screen-adx

Configuration-screen-adx

  • Password will be encrypted in Base64 string.
Settings-file-adx

Settings-file-adx

Reason:

  • In my case, “../App_Data/settings.xml” file got corrupted.

Fix:

  • Delete the ‘settings.xml’ file from your visual studio solution’s “../App_Data” folder.
settings-adx

settings-adx

  • Browse the portal
  • This time Portal, opens Configuration screen and creates a new “../App_Data/settings.xml”

🙂