![]() PlanChanged Event System.EventHandler`1 PlanChanged(Sy. I know the classes are there: $asm = ::LoadFrom($dllpath) Each time I try, I get errors that describe that Powershell is unable to find any of the public types. ![]() However, I still seem to be unable to create instances or use objects. I eventually find that I am seemingly able to load the assembly using reflection: ::LoadFrom($dllpath)Īlthough I don’t understand the difference between the methods Load, LoadFrom, or LoadFile that last method seems to work. NET assembly, DotNetZip, which has examples of using the same functionality on the site also does not work for me. Retrieve the LoaderExceptions property for more information. NdAdd-Type : Unable to load one or more of the requested types. CategoryInfo : NotSpecified: (:), ReflectionTypeLoadException LoaderExceptions property for more information. ![]() I get the error below: Add-Type : Unable to load one or more of the requested types. In Powershell I use: $dllpath = "C:\rnd\" However, I am running into a lot of issues with first loading the assembly, then using any of the types once the assembly is loaded. It contains some properties and methods I would like to take advantage of in my Powershell script(s). NET assembly (a dll) which is an API to backup software we use here.
0 Comments
Leave a Reply. |