Posts

Showing posts with the label .net-assembly

DLLX file missing in bin folder

Image
Clash Royale CLAN TAG #URR8PPP DLLX file missing in bin folder I am setting up a sitecore website. It is working fine at out UAT server and I have copied the whole website project and trying to setup on a different server. I am getting this error Could not load file or assembly 'custom.dllx' or one of its dependencies. The system cannot find the file specified. I have a custom developed custom.dll file in my bin folder but I don't know what is dllx file, I never developed a dllx file. Can anybody help how can I get rid of this error? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Method Not Found from Loaded Assembly

Image
Clash Royale CLAN TAG #URR8PPP Method Not Found from Loaded Assembly I have an application that loads the assembly of another application and invokes methods from that assembly for test purposes. Below is a generic example of this code. testAssembly = Assembly.LoadFrom( path ); var classes = testAssembly.GetTypes(); Type mainForm = classes.Where( c => c.Name == "MainForm" ).SingleOrDefault(); var form = Activator.CreateInstance( mainForm, null ); Type secondForm = classes.Where( c => c.Name == "SecondForm " ).SingleOrDefault(); var sf = Activator.CreateInstance( secondForm , new object { form } ); MethodInfo secondFormMethod = eventList.GetMethod( "SecondFormMethod " ); secondFormMethod.Invoke( sf, new object { } ); This works to a point. The issue is that when the method is fired it eventually leads to a library referenced from the secondFormMethod and comes back with a "Method not found" error. None of my ref...