runing on localhost but on web server shows error
Hi,
In my project it runs ok on my local pc but when uploading on my web server it displayes this error
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
I have tried this on two hosting servers, but does not solved any boady can help? [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> its urgent I have attached screenshot[/img]
In my project it runs ok on my local pc but when uploading on my web server it displayes this error
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
I have tried this on two hosting servers, but does not solved any boady can help? [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> its urgent I have attached screenshot[/img]
This discussion has been closed.
Comments
Hello!
To immediately see the exact cause and the name of the missing assembly, temporarily wrap the problematic section (or handle the error in Application_Error / try-catch) and log the contents of LoaderExceptions:
try { // your report initialization / loading code } catch (System.Reflection.ReflectionTypeLoadException ex) { var details = string.Join(Environment.NewLine, ex.LoaderExceptions.Select(e => e?.ToString())); // Write the details to a log or display them on a test page throw new Exception(“LoaderExceptions:\n” + details, ex); }