This is a migrated thread and some comments may be shown as answers.

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 Answers 1402 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Onkar
Top achievements
Rank 1
Onkar asked on 30 Jul 2012, 08:17 PM
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>

7 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 01 Aug 2012, 01:33 PM
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.
0
Brian Norris
Top achievements
Rank 1
Iron
answered on 10 May 2013, 06:38 PM
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?
0
Hristo Valyavicharski
Telerik team
answered on 15 May 2013, 02:41 PM
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.
0
John
Top achievements
Rank 1
answered on 20 Aug 2013, 09:08 PM
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.)
0
Hristo Valyavicharski
Telerik team
answered on 26 Aug 2013, 06:57 AM
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.
0
william
Top achievements
Rank 1
answered on 28 Oct 2015, 02:42 PM
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 .
0
KidSysco
Top achievements
Rank 1
answered on 14 Dec 2017, 03:55 PM

I get this problem pretty regularly. I have found it to happen when I leave Visual Studio open all night long, then IT decides to patch Windows over night. Silly Windows has to shutdown all of the apps to install patches and reboot, most of the time Windows will struggle to shutdown Visual Studio correctly in this case.

Then the next morning, I fire up my project in Visual Studio, blam, this error shows and I cannot run my project.

Simply deleting the .suo file is what fixes it for me every time.

Like this...

Close Visual Studio

Navigate to the project folder in Windows Explorer.

Configure the Windows Explorer settings to show hidden files and folders.

Look for a hidden folder .vs/CompanyName/v14/.suo

Delete the .suo file and then restart visual studio.

Problem solved.

Tags
General Discussions
Asked by
Onkar
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Brian Norris
Top achievements
Rank 1
Iron
Hristo Valyavicharski
Telerik team
John
Top achievements
Rank 1
william
Top achievements
Rank 1
KidSysco
Top achievements
Rank 1
Share this question
or