Could not load file or assembly Telerik.Windows.RadUploadHandler

5 posts, 0 answers
  1. tomcrusader
    tomcrusader avatar
    14 posts
    Member since:
    Jul 2009

    Posted 01 Apr 2013 Link to this post

    Hi guys

    As always - thanks for doing such a great job with your comprehensive suites.
    And thank you, Nikoleta, for the extended trial. This really gives me a chance to get further with the project before emptying my wallet ;)

    Here's my problem and environment:

    When deploying a Silverlight 5 solution using a RadUpload with a FileHandler.ashx on the server side I'm unable to run it, getting an "Could not load file or assembly Telerik.Windows.RadUploadHandler" error.

    Further see Assembly Load Trace below and attached complete exception.

    The DLL is there, in the Web Project's BIN, and I've made sure the server IIS matches my dev comp IIS. 
    Couldn't find any answer to this online, which makes me suspect it's my new Windows Server 2012 environment that's spooky.

    Project
    ----------------------------
    • Silverlight 5 app hosted in 
    • ASP.NET 4.5 MVC 3 site with 
    • WCF RIA services

    Dev Environment
    ----------------------------
    • Intel i5 3.60 GHz, 8 GB RAM
    • Windows 7 Pro x64
    • IIS 7.5.7600.16385
    • Visual Studio 2010 Pro
    • .Net Framework 4.5 SP1
    • Silverlight 5
    • WCF RIA

    Server Environment
    ----------------------------
    AMD Athlon 2.61 GHz, 6 GB RAM
    Windows Server 2012 Standard x64
    • IIS 8.0.9200.16384
    • IIS Recommended Configuration
    • IIS ASP.NET 4.5
    .NET 4.5 Extended with ASP.NET for Windows 8
    .Net Framework 4.5 SP1
    SQL Server 2012

    Error details
    Assembly Load Trace
    === Pre-bind state information ===
    LOG: User = THENEWHOST\iisphys
    LOG: DisplayName = Telerik.Windows.RadUploadHandler
     (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: Telerik.Windows.RadUploadHandler | Domain ID: 2
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///D:/IntraNodesApp/
    LOG: Initial PrivatePath = D:\IntraNodesApp\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: D:\IntraNodesApp\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/11a0c66e/a659133f/Telerik.Windows.RadUploadHandler.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/11a0c66e/a659133f/Telerik.Windows.RadUploadHandler/Telerik.Windows.RadUploadHandler.DLL.
    LOG: Attempting download of new URL file:///D:/IntraNodesApp/bin/Telerik.Windows.RadUploadHandler.DLL.
    LOG: Using application configuration file: D:\IntraNodesApp\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Telerik.Windows.RadUploadHandler, Version=2013.1.220.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7
    ERR: Failed to complete setup of assembly (hr = 0x80070057). Probing terminated.
    
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 02 Apr 2013 Link to this post

    Hi Thomas,

    Can you confirm whether your solution works in the VisualStudio Development environment - if you can host your Web project in the VS Development server and you don't experience any issues with the RadUpload, then the issue is really related to the Windows Server 2012 IIS settings.

    If this is the case, I'd advice you to check if the Telerik.Windows.RadUploadHandler.dll is registered in the GAC of the Windows Server 2012 machine. If it isn't please register it and then remove the Web project reference to the assembly and try to add it again and rebuild the Web solution.

    Let us know if that helps.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. tomcrusader
    tomcrusader avatar
    14 posts
    Member since:
    Jul 2009

    Posted 02 Apr 2013 Link to this post

    That's great - got it working by registering your DLL and half of the .Net framework manually (RIA dll's mostly) in the GAC by hand. Win Server 2012 obviously needs a Service Pack or two, since this problem didn't occur in my older server installation.

    Great tip. I suggest making the answer public since Win Server 2012 is freely available for MSDN Website Spark users.

    My app is up and running. Have a nice day.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 02 Apr 2013 Link to this post

    Hi Thomas,

    I'm glad you got it working and thank you for your suggestion - I transferred this thread to the forums and the community will be able to find these posts. Hopefully this can save time for others that encounter the same issue.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. tomcrusader
    tomcrusader avatar
    14 posts
    Member since:
    Jul 2009

    Posted 06 Apr 2013 Link to this post

    For deploying a Silverlight WCF RIA app on Windows Server 2012, read my complete solution here:

    http://social.msdn.microsoft.com/Forums/en-US/silverlightwcf/thread/6539af8b-96f1-4c4b-b03e-3973f3a5744f/
Back to Top
DevCraft banner