I'm trying to install a windows service thro "InstalUtil" and it's refusing to register it with the ReflectionTypeLoadException Error (.Net Framework v4.5.50709).
Same service is getting registered fine when I install System.Web.Http in GAC using gacutil.exe but one of my other application is getting registered successfully without installing in GAC.
Here's the full quote:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
What I have tried:
I have inserted my .dll in the same folder as my .exe (the debug). Copy Local is set to "True"
I rebuilt the project
I have tried copying/running the InstallUtil.exe into the same folder from the .Net Framework, no luck.
What steps am I missing here? Is there any way I can dig into the project and find out what is causing this?
None
0 Points
2 Posts
ReflectionTypeLoadException Error (System.Web.Http) on InstallUtil
Jun 17, 2016 04:37 AM|Sreeram R|LINK
I'm trying to install a windows service thro "InstalUtil" and it's refusing to register it with the ReflectionTypeLoadException Error (.Net Framework v4.5.50709).
Same service is getting registered fine when I install System.Web.Http in GAC using gacutil.exe but one of my other application is getting registered successfully without installing in GAC.
Here's the full quote:
What I have tried:
What steps am I missing here? Is there any way I can dig into the project and find out what is causing this?