Hi,
I am new to developing in CRM 2011. I have a managed solution that I am trying to import into my organization. When I import it I get an error which indicates the following "Action failed for assembly 'CreateProductLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=7578d2fdaf882729': Assembly must be registered in isolation."
Thus I try to register the .ddl file that I have in the Solution package and I am faced with the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Users\cmackay\Documents\04 - Proposal\2013\CFIA\Build\CreateProductLineWF\PluginAssemblies\CreateProductLine-72E1EF9A-FA8D-42E5-BDAE-CEFE885473B7\CreateProductLine.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 Microsoft.Crm.Tools.PluginRegistration.AssemblyReader.LoadAssembly(String path)
at Microsoft.Crm.Tools.PluginRegistration.AssemblyReader.RetrievePluginsFromAssembly(String path)
at Microsoft.Crm.Tools.PluginRegistration.AssemblyReader.RetrievePluginsFromAssembly(String path)
at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.RetrievePluginsFromAssembly(String pathToAssembly)
at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnLoadAssembly_Click(Object sender, EventArgs e)
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.
I have seen some blogs which said to "unblock" the plugin registration tool by right clicking on the plugin registration tool and adjusting the settings so that it is no longer blocked. I don't seem to have this issue as there is nothing there to indicate that the tool is blocked.
I should also mention this is in an online instance of MS CRM 2011, using Office 365.
Any help is appreciated.