Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.2015.3.2 - error launching Metadata Document Generator #49

Closed
mcross9095 opened this issue Mar 3, 2015 · 8 comments
Closed

Comments

@mcross9095
Copy link

UPDATE: Actually, this issue occurs with all plugins. See below for details.

Version 1.2015.3.2. I opened a connection to a CRM 2015 on-premise IFD instance. When launching the Metadata Document Generator, the following error resulted:

An error occured when trying to display this plugin: Value cannot be null.
Parameter name: s

I was able to open the Metadata Document Generator before connecting, but then once I connected from within the Metadata Document Generator the following error occurred.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Exception: Unable to find method MetadataDocumentGenerator.LoadEntitiesAndLanguages
at XrmToolBox.PluginBase.UpdateConnection(IOrganizationService newService, ConnectionDetail detail, String actionName, Object parameter)
at XrmToolBox.MainForm.b__5(Object sender, ConnectionSucceedEventArgs e)

@shytikov
Copy link
Contributor

shytikov commented Mar 3, 2015

Unfortunately, I can confirm this. Sorry for sloppy stack trace, this is best what I can get now (steps to reproduce follows bellow):

McTools.Xrm.Connection.dll!McTools.Xrm.Connection.CryptoManager.Decrypt(string cipherText, string passPhrase, string saltValue, string hashAlgorithm, int passwordIterations, string initVector, int keySize) Line 180 + 0xc bytes C#
McTools.Xrm.Connection.dll!McTools.Xrm.Connection.ConnectionDetail.GetOrganizationCrmConnectionString() Line 245 + 0x59 bytes C#
McTools.Xrm.Connection.dll!McTools.Xrm.Connection.ConnectionDetail.GetOrganizationService() Line 307 + 0x9 bytes C#
McTools.Xrm.Connection.dll!McTools.Xrm.Connection.ConnectionManager.Connect(System.Collections.Generic.List parameters) Line 238 + 0x1f bytes C#
McTools.Xrm.Connection.dll!McTools.Xrm.Connection.ConnectionManager.WorkerDoWork(object sender, System.ComponentModel.DoWorkEventArgs e) Line 196 + 0x41 bytes C#

Found by the chance. I was in hurry, so I haven't set "Save password in configuration file" option.

Strangely, it is possible to reproduce this only once during the session.

@shytikov
Copy link
Contributor

shytikov commented Mar 3, 2015

@mcross9095 can you confirm, that if "Save password in configuration file" actually avoids this exception?

@mcross9095
Copy link
Author

Yes, saving the password in the configuration file avoids the exception. I usually do not save the file per my company's policies.

@shytikov
Copy link
Contributor

shytikov commented Mar 3, 2015

I think with this information @MscrmTools could come up with solution quickly, so we will close this issue soon.

@MscrmTools
Copy link
Owner

I'm sorry but I cannot reproduce the error...

I tried the following scenario:
From Connect button : Create an IFD connection without saving password and connect => OK
From connection status bar : Create an IFD connection without saving password and connect => OK
From a tool opened without connection, do an action that requires a connection : Create an IFD connection without saving password and connect => OK
Create an IFD connection without password, close XrmToolBox, open XrmToolBox, use newly created connection => I'm asked for the password => OK

@shytikov
Copy link
Contributor

shytikov commented Mar 4, 2015

  • Open fresh XTB (delete all configuration files if exist);
  • Press on any plugin, you will be prompted to connect;
  • Create new connection that requires password;
  • Do not check "Save password";
  • Save connection;
  • Use it for opening plugin.

Should work, I mean, should fail.

@MscrmTools
Copy link
Owner

Ok, got it

It's because I remove the password as you didn't want to see it when going back to a connection that is not supposed to save it :)

So I have to remove the erase of the password

@shytikov
Copy link
Contributor

shytikov commented Mar 4, 2015

Yes, I missed this scenario... Will need to sit and think a bit more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants