+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

50 posts, 0 answered
  1. Roberto Modica
    Roberto Modica avatar
    146 posts
    Registered:
    08 Feb 2008
    19 Apr 2011
    Link to this post
    Hi all,

    I anyone else getting this error. 

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.


    i have overitten the dlls in the bin directory and also in my custom module, and this gets rid of it for a little while and then bang it comes back if i update my module (sometimes) and if i change the code behind of a user control in my project and bang it goes again.

    Rob
  2. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    19 Apr 2011
    Link to this post
    Roberto,

    I ran into that as well in my upgrade.  I had to delete my VirtualPathSettingsConfig.config file in App_Code, which I came to after reading some posts about custom module problems in 4.1.  Deleting that file made the error vanish.

    Do I need that file?  I have no idea :)  I suppose I'll see what happens when I can make my custom modules compile and test them in 4.1 as well.

    - William
  3. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    20 Apr 2011
    Link to this post
    Sorry, spoke too soon.  This now happens to me randomly, hosing the entire site and requiring an IIS restart to fix.

    Adding that to my long 4.1 upgrade problems list.

    - William
  4. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    20 Apr 2011
    Link to this post
    Roberto,

    Upon completely deleting the custom module I'd created from my project, this error went away.  Haven't seen it in hours.

    I'm hoping that when I get a 4.1 custom module working, that error won't return.  But wanted to share with you how I fixed it in case that helps point you in a direction.

    - William
  5. Roberto Modica
    Roberto Modica avatar
    146 posts
    Registered:
    08 Feb 2008
    20 Apr 2011
    Link to this post
    Hi William,

    Thanks for the response.  This is a strange one as it is not consisten, even without my custom module if i change code in a user control that resides in my website project i get this error aswell, it is becoming very annoying, along with the other issues i am facing, dont know what i have done but no one at telerik seems to want to answer any of my questions.

    Rob
  6. Brandon
    Brandon avatar
    50 posts
    Registered:
    30 Jul 2009
    20 Apr 2011
    Link to this post
    it's because the product is broken and there are no answers yet. until they can actually release something usable we are all just wasting time playing with broken parts.

    we fixed this problem by draggin in the dll from the new emptyfolder bin to our custom widget solution. then rebuilt it with the new references to the latest build dlls. then copied that in the bin folder for the sitefinitywebapp. problem wasnt resolved until we then rebuilt sitefinitywebapp - then went to emptyproject folder bin and copied all dlls from there in the bin folder in sitefinitywebapp. rebuilt once more and i havent seen this error since.

    we built a custom slider/rotator widget with ability to select category names for filtering news items into the various sliders/rotators. i have 3 of them on our home page and they all work again just as before. seems a bit random that you've seemingly already done what i've described and your problem comes back each time. just make sure you really are using the references to the latest build they provided in the emptyproject/bin folder and good luck!
  7. HRC
    HRC avatar
    44 posts
    Registered:
    16 Mar 2009
    21 Apr 2011
    Link to this post
    I just got this error after a *brand new install* from 4.1.

    "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."

    <shakes head>

  8. Roberto Modica
    Roberto Modica avatar
    146 posts
    Registered:
    08 Feb 2008
    21 Apr 2011
    Link to this post
    I am still getting this, everytime i make a change to a widget in my project, even if i am just changing some HTML, as soon as refresh,bang so have just accepted at the moment to get my project done i have to do a lot of copying of DLLs :)
  9. Julien
    Julien avatar
    5 posts
    Registered:
    08 Dec 2010
    21 Apr 2011
    Link to this post
    Hello,

    I also have this error even by changing all the dlls.

    This issue is blocking us in the upgrade process.

    Regards,
    Julien
  10. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    21 Apr 2011
    Link to this post
    Update,

    This issue for me is reoccurring as well, but randomly and oddly.

    For instance, if I rebuild my entire application in VS2010 and hit refresh, SOMETIMES I'll get this error.  However, if I then simply rebuild the application again (without copying any DLLs or updating references, just a rebuild) and then hit refresh, all is well.

    Luckily in my case, I can just kick off a rebuild and I'm fine until the next rebuild (maybe)

    Does Telerik have any response to this thread?  Is this a known issue?

    - William
  11. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    21 Apr 2011
    Link to this post
    Even more of an update.

    I can easily reproduce this:

    1.  Rebuild the project
    2.  Refresh Dashboard Page (or any page)
    - Result : Error above
    3.  Rebuild the project again
    4.  Refresh Dashboard Page
    - Result: Fine

    Rinse and repeat.  So it does it every other time like clockwork.

    Does not happen if I just build my main project, only happens when my rebuild includes my custom controls project, which it sounds like is the case with you as well.  The odd thing is that a second rebuild of all fixes it.

    Anyway, just wanted to share more info.

    - William
  12. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    22 Apr 2011
    Link to this post
    One last update.

    The oddness continues.  Based on my last update, I tried a test where I rebuilt twice.  In other words, I did a solution rebuild and then immediately afterwards, without refreshing, I did a second one.  Upon refresh, I did not run into the problem.

    So:
    Case 1:
    - Rebuild Solution
    - Refresh
    = Error

    Case 2:
    - Rebuild Solution
    - Rebuild Solution Again
    - Refresh
    = No Error

    What's even stranger.  If I rebuilt THREE Times, I get the error.  Four?  No error.

    - William
  13. Aaron
    Aaron avatar
    24 posts
    Registered:
    15 Feb 2008
    22 Apr 2011
    Link to this post
    We are having same issue as everyone else.
  14. Greg Figueroa
    Greg Figueroa avatar
    23 posts
    Registered:
    24 Apr 2005
    24 Apr 2011
    Link to this post
    @All in this thread

    This hasn't worked for everyone, but it seems that copying the contentes from your installations _EmptyProject folder.  Note, that if you have newer versions of the Telerik Controls or OpenAccess ORM in the BIN, you need to refresh those to the version you are using.

    I was having this issue randomly, annoyingly, unreasonably, often, but doing this seemed to rectify it.  Unfortunately, it's not the only issue with 4.1

    Thanks, Greg
  15. Darrin Robertson
    Darrin Robertson avatar
    105 posts
    Registered:
    18 Jul 2004
    25 Apr 2011
    Link to this post
    I also started having this issue.
    Opened my project this morning, modified a custom control\widget and then the error.
    After reading these posts I checked my bin directory and found that several dll were missing and most of the xml files.
    (facebook.dll and newtonsoft.json.dll to be exact)

    From a new project I copied all the dll and xml files over from the bin and my project started working again.

    I have no idea how the files could have gone missing. Hopefully this info will help others out.
  16. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    25 Apr 2011
    Link to this post
    Hello guys,

    I am wondering if this has something to do with a Source control or upgrade issue, in case your project was running during the upgrade, and some of the assemblies are not copied?

    Regards,
    Georgi
    the Telerik team

  17. Aaron
    Aaron avatar
    24 posts
    Registered:
    15 Feb 2008
    25 Apr 2011
    Link to this post
    In our case it was a fresh 4.1 setup, there was no upgrade involved.
  18. Larry
    Larry avatar
    39 posts
    Registered:
    30 Dec 2010
    25 Apr 2011
    Link to this post
    Georgi,

    My project was not running at the time of upgrade... I took a backup of the project from the production box and execute the upgrade against the backup...

    When I tried to run the project after upgrade, I got bunch of errors relating to the New Letter Module... Ivan gave me a script to delete all news letters from the database. After I did that, when I run my project again, I get this error..

    Screenshot attached.... If you'd like, I can send you my Zip file. Maybe you can take a look at it...
  19. Greg Figueroa
    Greg Figueroa avatar
    23 posts
    Registered:
    24 Apr 2005
    25 Apr 2011
    Link to this post
    Georgi,

    I do run under Source Control (TFS), however the BIN folder is not included (and would like to keep it that way!).  This problem does, however, continue to occur even with all files checked out.

    I've had to keep a copy of the bin folder for copying because of this issue.  It seems to occur most if I do a REBUILD.  If I only do a build the issue tends to not occur.  I haven't had a chance yet to see if there is anything hinky in the project file itself that could be contributing to the problem.

    Thanks, Greg
  20. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Apr 2011
    Link to this post
    Hello ,

    Could you check the log folder - App_Data/Sitefinity/Logs and see if there is a record generated at the time when this error occurs. There must be some more details about the error in the log file. Can you check that the dlls are not removed from your bin folder. If you make application restart does the problem persist?

    Greetings,
    Ivan Dimitrov
    the Telerik team

  21. Rein
    Rein avatar
    22 posts
    Registered:
    07 Oct 2008
  22. Samir Vaidya
    Samir Vaidya avatar
    261 posts
    Registered:
    05 Feb 2005
    31 Jul 2011
    Link to this post
    I just upgraded to Sitefinity v. 4.1 SP3 and am still encountering this error message.

    You can view it for yourself here:

    http://troytennis.troytennisacademy.com/

    I have tried everything in this post that I can think of to try and resolve this issue.  It works just fine when I deploy it to my local machine.  I even had a friend deploy it to another hosting provider and the same deployment files seems to work there as well.

    It is only when I deploy it to my Hosting Provider (WinHost), that I encounter this error.  I was able to deploy Sitefinity v. 3.7 SP4 without any issues whatsoever.

    Please advise.
  23. Cii
    Cii avatar
    10 posts
    Registered:
    13 Jan 2011
    01 Aug 2011
    Link to this post
    Hi,

    I encountered this problem a few times; they were all caused by a presence of a module in the solution. Currently, below strategy works for me.

    1- repeat below sub-steps for each module project in your solution
       step 1-a: delete all references in the project
       step 1-b: clear the project
       step 1-c: add below references to the project
               (they are all under c:\users\{your username}\appData\local\telerik.sitefinity.sdk\dependencies\ )
               Telerik.OpenAccess.dll
               Telerik.OpenAccess.35.extensions.dll
               Telerik.Sitefinity.dll
               Telerik.Sitefinity.Model.dll
               Telerik.Sitefinity.Resources.dll
               Telerik.Sitefinity.Utilities.dll
               Telerik.Web.UI.dll
    2- clean all
    3- rebuild all
    4- run the web site --> success

    I hope this helps,
    Cihan
  24. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Aug 2011
    Link to this post
    Hello,

    "3- rebuild all" will clean the bin folder, so make sure that you have all dlls back in it after you perform the steps above.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  25. Samir Vaidya
    Samir Vaidya avatar
    261 posts
    Registered:
    05 Feb 2005
    01 Aug 2011
    Link to this post
    I took a complete copy of the solution and deployed them to 2 different hosting providers:

    I deployed one to WinHost
    I deployed one to Arvixe

    The one on WinHost is displaying the error described above.
    The one I deployed on Arvixe only started working after I renamed the entire dbo schema to my SQL Server user schema.

    If it is not loading/rendering on one hosting provider, but working on another, is it possibly some IIS configuration or database configuration that could be causing this error message?  I am getting absolutely nothing rendered in the logs under the App_Data directory, so that is the best error information I have at this moment.

    Please advise.

  26. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Aug 2011
    Link to this post
    Hello Samir,

    The issue looks like related to the infrastructure, since the same website works on two servers, but fails on the third. The host should have IIS log and database log that would have more information.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  27. Samir Vaidya
    Samir Vaidya avatar
    261 posts
    Registered:
    05 Feb 2005
    02 Aug 2011
    Link to this post
    I had to set the <trust level="Full"> in my Web.config to get the error message to go away on my hosting provider.
  28. Rakesh
    Rakesh avatar
    72 posts
    Registered:
    11 Jan 2011
    09 Aug 2011
    Link to this post
    @Rein,

    Thanks Rein that solved my problem.Thanks a lot.
    (I got this isue while installing custom module "Testimonials").
    Once again Thanks
  29. Neil
    Neil avatar
    5 posts
    Registered:
    26 Mar 2009
    24 Aug 2011
    Link to this post
    @Rein - You are the man! 
  30. CRanaboldo
    CRanaboldo avatar
    18 posts
    Registered:
    09 Jul 2007
    27 Aug 2011
    Link to this post
    Hi
    For what it is worth this has driven me scatty for weeks
    Eventually have found that after attaching a module project to a new 4.1 site and compiling dll in sites bin go missing.
    Replacing and recompiling worked for me, setting config not to rebuild site seemed to stop it.

    Ivan what is this about?  

    Best wishes

    Charles
50 posts, 0 answered
1 2