Installation

Aug 5, 2011 at 8:04 PM

Would anyone be able to lend me a hand with the install? 

I don't see any DLL files in the download to register with the Plugin Registration Tool. So, I imported the package and now have an entity of type Counter, but have no idea what to do from here. 




Thanks,
Mark 

Aug 8, 2011 at 1:55 AM

hey Mark.

The assembly is a separate download in the downloads. 

http://crm2011autonumber.codeplex.com/releases/view/64224

For details of plugin registration, please see the information in the documentation tab,

http://crm2011autonumber.codeplex.com/documentation

 

Otherwise, you could download the source code and go from there. Details of plugin registration, please have a look at SDK or have a search for CRM 2011.

Hope this helps,

Jaimie

Aug 11, 2011 at 7:50 PM

Hi,

i try to registre the DLL but i have this erreor message below.

thank yoiu for Help.

 

Unhandled Exception: System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'file:///C:\Users\bob.morane\Documents\CRM.Plugin.SequenceGenerator.dll' ou une de ses dépendances. L'opération n'est pas prise en charge. (Exception de HRESULT : 0x80131515)
   à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   à System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   à System.Reflection.Assembly.LoadFrom(String assemblyFile)
   à PluginRegistrationTool.AssemblyReader.LoadAssembly(String path)
   à PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
   à PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
   à PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly)
   à PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e)
Inner Exception: System.NotSupportedException: Tentative de chargement d'un assembly à partir d'un emplacement réseau qui aurait entraîné l'utilisation de l'assembly en mode Bac à sable (sandbox) dans les versions antérieures du .NET Framework. Cette version du .NET Framework n'activant pas la stratégie CAS par défaut, ce chargement peut être dangereux. Si ce chargement n'est pas destiné à utiliser l'assembly en mode Bac à sable (sandbox), activez le commutateur loadFromRemoteSources. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkId=155569.

Aug 23, 2011 at 10:48 PM

Got the same error when trying to register the assembly.

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'file:///D:\MS CRM 2011\Tools\Auto Numbering\CRM.Plugin.SequenceGenerator.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at PluginRegistrationTool.AssemblyReader.LoadAssembly(String path) in D:\MS CRM 2011\Tools\sdk\tools\pluginregistration\AssemblyReader.cs:line 246
   at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path) in D:\MS CRM 2011\Tools\sdk\tools\pluginregistration\AssemblyReader.cs:line 125
   at PluginRegistrationTool.AssemblyReader.RetrievePluginsFromAssembly(String path)
   at PluginRegistrationTool.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly) in D:\MS CRM 2011\Tools\sdk\tools\pluginregistration\RegistrationHelper.cs:line 42
   at PluginRegistrationTool.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e) in D:\MS CRM 2011\Tools\sdk\tools\pluginregistration\PluginRegistrationForm.cs:line 158


Inner Exception: System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

Help please.

J

Aug 24, 2011 at 5:58 PM

I got it working finally.

I downloaded the source code (plugin.sequencegenerator), tried to build it, but was given error on the missing references:

Microsoft.Crm.Sdk.Proxy.dll
Microsoft.Xrm.Sdk.dll
microsoft.xrm.sdk.workflow.dll

after adding them, build the solution, and used my own version, and it works, i.e. I can register the assembly.

hope it helps.

J

 

Aug 24, 2011 at 7:01 PM

Hi Vican,

where did you download the source code ?,

 

Thank you,

 

Aissam.

Aug 24, 2011 at 7:35 PM

this site...

http://crm2011autonumber.codeplex.com/SourceControl/list/changesets

I downloaded the latest one, of course.

 

J

Aug 24, 2011 at 8:49 PM
i have this error message, do you have any idea,

thank you

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: The configuration is invalid. Prefix and Postfix are both provided. Please contact adminsitrator with the issue.
at CRM.Plugin.SequenceGenerator.SequenceGenerator.Execute(IServiceProvider serviceProvider)Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Microsoft.Xrm.Sdk.InvalidPluginExecutionException: The configuration is invalid. Prefix and Postfix are both provided. Please contact adminsitrator with the issue.
at CRM.Plugin.SequenceGenerator.SequenceGenerator.Execute(IServiceProvider serviceProvider)</Message>
<Timestamp>2011-08-24T19:47:23.9537616Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[CRM.Plugin.SequenceGenerator: CRM.Plugin.SequenceGenerator.SequenceGenerator]
[ec56e9b9-89ce-e011-896a-1cc1dee8daa5: CRM.Plugin.SequenceGenerator.SequenceGenerato: Create of opportunity]

</TraceText>
</OrganizationServiceFault>


From: [email removed]
To: [email removed]
Date: Wed, 24 Aug 2011 11:35:24 -0700
Subject: Re: Installation [crm2011autonumber:267959]

From: vican
this site...
http://crm2011autonumber.codeplex.com/SourceControl/list/changesets
I downloaded the latest one, of course.

J
Read the full discussion online.
To add a post to this discussion, reply to this email (crm2011autonumber@discussions.codeplex.com)
To start a new discussion for this project, email crm2011autonumber@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com
Aug 24, 2011 at 8:59 PM

If you are looking for a quick, robust, turn-key, and cheap solution then try this,

http://www.gapconsulting.co.uk/addons/microsoftdynamicscrm2011autonumber.asp

Aug 24, 2011 at 9:01 PM

it's commercial solution, i'm looking for free.

 

Aug 24, 2011 at 9:29 PM

I am not sure if I could help with that specific error message, but I can share the story on my side.

I believed we encountered the very same error which was the assembly couldn't be registered.   Once I had it figured out, I pretty much followed the instructions in the documentation section (i.e. register steps, configure entity), and it worked out.

Anyhow, I took it you got assembly registered. All I can suggest is make sure not to miss steps  in the documentation section.

J

Nov 28, 2011 at 5:50 AM
aissam_k2000 wrote:

Hi,

i try to registre the DLL but i have this erreor message below.

thank yoiu for Help.

 

Unhandled Exception: System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'file:///C:\Users\bob.morane\Documents\CRM.Plugin.SequenceGenerator.dll' ou une de ses dépendances. L'opération n'est pas prise en charge. (Exception de HRESULT : 0x80131515)

About this error.

Is there an easier way to solve than the rebuild project.

You can just unlock the dll downloaded from the Internet.
Apparently this is a standard mechanism for protecting windows from performing malicious code.

More details on this page http://blog.rthand.com/post/2010/05/30/Getting-HRESULT-0x80131515-when-running-Righthand-DataSet-Visualizer.aspx


Apr 24, 2012 at 8:35 AM

Just go through this, If any body needs to install this and work with the AutoNumbering Solution.

http://indikatech.wordpress.com/2012/04/24/crm-2011-autonumbering-solution/

It shows how to install both the CRM solution and the register Plugin assembly and test the solution.

 

May 2, 2012 at 11:41 AM

Great Work, indikasn.

Thanks a lot!