Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not full

7 posts, 0 answers
  1. Onkar
    Onkar avatar
    3 posts
    Member since:
    Jul 2012

    Posted 30 Jul 2012 Link to this post

    The web application I have developed works fine on my local machine but when I try to run it from the server it gives me the following error. I have Telerik.Web.UI.dll andTelerik.Web.Design.dll in my Bin folder.

    Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

    Stack Trace:


    [FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]

    [FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
       System.Reflection.Assembly.Load(String assemblyString) +35
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +123

    [ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11565312
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +485
       System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +79
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
       System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1167

    [HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11697760
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4866485

     

    Few parts of my web.config are as follows:
    <compilation debug="true">
         <assemblies>
             <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
             <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
             <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
             <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
             <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
             <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
             <add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         </assemblies>
       </compilation>
     
     
    <httpHandlers>
         <remove verb="*" path="*.asmx" />
         <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
         <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false" />
       </httpHandlers>
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 01 Aug 2012 Link to this post

    Hello Onkar,

    Please make sure that there is no Telerik.Web.UI assembly in the GAC folder on the server. It seems that the application is trying to load the assemblies with a strong name whereas it shouldn't, since Telerik.Web.UI is placed in the BIN folder.

    Regards,
    Genady Sergeev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Brian Norris
    Brian Norris avatar
    3 posts
    Member since:
    Dec 2005

    Posted 10 May 2013 Link to this post

    I have run into the same error. However, I can't make sure there is no assembly in the GAC because I am deploying to a shared, hosted server. So I tried to change the "Strong Name" property of the assembly, but it is grayed out. What do I need to do to deploy this to a shared, hosted server properly?
  4. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 15 May 2013 Link to this post

    Hi Brian,

    Are you using a shared hosting? If so, you shouldn't worry. Most of them doesn't allow their customers to deploy assemblies into the GAC.

    For additional information please read Deploying RadControls on Shared Hosting article.

    Regards,
    Hristo Valyavicharski
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. John
    John avatar
    1 posts
    Member since:
    May 2012

    Posted 20 Aug 2013 Link to this post

    My web application was working just fine, but now is throwing this error. What would cause it to suddenly appear? Can you give me a step-by-step process to resolve it? Having a devil of a time figuring this out. (This is on a dedicated server, not shared hosting.)
  6. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 26 Aug 2013 Link to this post

    Hi John,

    Make sure that you are using the correct assemblies for the Target Framework of your application. Remove and add all Telerik references. If you are using web application remove all dll files that were generated during the compiling process from the Bin and Debug folders. Clean and rebuild the project.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. william
    william avatar
    3 posts
    Member since:
    Oct 2015

    Posted 28 Oct 2015 Link to this post

    was a resolution EVER found for this? I have this same issue. really delete all references? there are 1000's of references to telerik ui in this project .
Back to Top