Change Assembly name cause error in reflection RRS feed

  • Question

  • I change my assembly name from
    a.exe to b.exe.

    My application is running ok but when I try to load assemblies in reflection I get

    {System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types....


    Any idea ?

    Wednesday, August 2, 2006 10:21 AM


  • What i did was change the assembly name at post-build event

    Ugly hack but works....

    copy $(TargetPath) "$(TargetDir)\MyApp.exe"
    copy /Y "$(ProjectDir)App.config" "$(TargetDir)MyApp.exe.config"

    Wednesday, August 2, 2006 12:01 PM