I am trying to use Assembly.LoadFrom to load an assembly from a remote machine using a URL. I pass the appropriate evidence and the assembly is loaded fine. I am able to create objects and call methods at runtime....if the methods take no parameters or the parameters are .NET data types.
What do I do if the method takes a type I have defined myself, like an enumeration? I keep getting an error that says 'Object cannot be converted to target type'. I have the remote assembly referenced locally, but do I really have two types in this situation. I thought Assembly.LoadFrom would load the type into the executing assembly. What am I missing? Any help would be greatly appeciated. JP You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.