Solved

Indicium not starting to latest 2021.1.14 on Premise machine

  • 8 February 2021
  • 4 replies
  • 80 views

Userlevel 3
Badge +12

Indicium not starting to latest 2021.1.14 due to below error:

2021-02-08T10:30:01.5357295+02:00  [err] Process action 'http_connector' was not provided a (valid) value for its 'URL' parameter. (0680995c)
2021-02-08T10:33:56.5062574+02:00  [ftl] Application startup exception (6c57a5ba)
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.
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.RelatedAssemblyAttribute.GetRelatedAssemblies(Assembly assembly, Boolean throwOnError, Func`2 fileExists, Func`2 loadFile)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationAssembliesProvider.GetAssemblyItem(Assembly assembly)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationAssembliesProvider.ResolveFromDependencyContext(DependencyContext dependencyContext)
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationAssembliesProvider.<ResolveAssemblies>d__3.MoveNext()
   at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateDefaultParts(String entryAssemblyName)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.GetApplicationPartManager(IServiceCollection services)
   at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection services)
   at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services)
   at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddRelatedParts(IdentityBuilder builder, UIFramework framework)
   at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddDefaultUI(IdentityBuilder builder, UIFramework framework)
   at Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionUIExtensions.AddDefaultIdentity[TUser](IServiceCollection services, Action`1 configureOptions)
   at Indicium.Startup.configureIdentity(IServiceCollection services) in C:\azp\agent\_work\1\s\src\Indicium\Startup.cs:line 575
   at Indicium.Startup.ConfigureServices(IServiceCollection services) in C:\azp\agent\_work\1\s\src\Indicium\Startup.cs:line 400
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

 

Resolution for On-Premise machine after debugging it:

Place the below in the machine.config 

<configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>

You can find machine.config under

32-bit

%windir%\Microsoft.NET\Framework\[version]\config\machine.config

64-bit

%windir%\Microsoft.NET\Framework64\[version]\config\machine.config
icon

Best answer by René W 8 February 2021, 10:36

View original

4 replies

Userlevel 3
Badge +12

Please mark it as conversation, I have placed it as a Question by mistake.

Userlevel 5
Badge +15

I think this could be a similar problem as in this topic:

 

What you have to do is probably mark the zip file you’ve downloaded as safe (see instructions other topic).

Userlevel 3
Badge +12

I think this could be a similar problem as in this topic:

 

What you have to do is probably mark the zip file you’ve downloaded as safe (see instructions other topic).

Thank you Rene, will keep it in mind.

Userlevel 6
Badge +4

Hello mperrot,

René is right, that is the issue you are facing and the correct solution for it. I would like to add that I recommend to change your machine.config back to the way it was. Blocking files from remote sources is a Windows security feature and your changes to the machine.config turn this security feature off.

Reply