Skip to content

Commit 0c525a6

Browse files
github-actions[bot]KB Bot
andauthored
Added new kb article common-aspnet-ajax-method-not-found (#648)
Co-authored-by: KB Bot <[email protected]>
1 parent 3c31f52 commit 0c525a6

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Resolving System.MissingMethodException in Telerik UI for ASP.NET AJAX
3+
description: Steps to fix the "Method not found" exception for Telerik UI for ASP.NET AJAX when updating the web application.
4+
type: troubleshooting
5+
page_title: Fix Missing Method Exception for RadComboBox in ASP.NET AJAX Applications
6+
slug: common-aspnet-ajax-method-not-found
7+
tags: asp.net ajax, system.missingmethodexception, assembly version mismatch, .net framework compatibility
8+
res_type: kb
9+
ticketid: 1677276
10+
---
11+
12+
## Environment
13+
14+
<table>
15+
<tbody>
16+
<tr>
17+
<td>Product</td>
18+
<td>Telerik UI for ASP.NET AJAX</td>
19+
</tr>
20+
<tr>
21+
<td>Version</td>
22+
<td>all</td>
23+
</tr>
24+
</tbody>
25+
</table>
26+
27+
## Description
28+
29+
An unhandled exception occurs during the execution of the current web request with the following details: System.MissingMethodException: Method not found: System.String System.String.Format(System.IFormatProvider, System.String, System.Object). This error appears after publishing an update on the website but does not occur in the Visual Studio environment. All configurations in the web.config and DLLs in the bin folder are verified to be correct.
30+
31+
## Cause
32+
33+
The error typically indicates a mismatch in assembly versions or .NET runtime environments between the development setup and the production server.
34+
35+
## Solution
36+
37+
To resolve the `System.MissingMethodException` error, follow these steps:
38+
39+
### 1. Clean the licenses.licx File
40+
41+
- Open the `licenses.licx` file in the Properties folder of your project.
42+
- Remove any entries related to Telerik.
43+
- Save the file, then clean and rebuild the project.
44+
45+
### 2. Verify Assembly Versions
46+
47+
- Ensure all `Telerik.Web.UI` assemblies in your bin folder are of the same version.
48+
- The versions in your development environment should exactly match those on the server.
49+
50+
### 3. Confirm .NET Framework Compatibility
51+
52+
- Check that the server is running the required version of the .NET Framework that your application targets.
53+
54+
### 4. Check for Assembly Binding Redirects
55+
56+
- Inspect your `web.config` file for proper assembly binding redirects. Example:
57+
58+
```xml
59+
<configuration>
60+
<runtime>
61+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
62+
<dependentAssembly>
63+
<assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
64+
<bindingRedirect oldVersion="0.0.0.0-2024.4.1114" newVersion="2024.4.1114" />
65+
</dependentAssembly>
66+
</assemblyBinding>
67+
</runtime>
68+
</configuration>
69+
```
70+
71+
### 5. Remove Conflicting Assemblies from the GAC
72+
73+
- If older versions of Telerik assemblies exist in the Global Assembly Cache (GAC) on the server, remove them.
74+
75+
### 6. Validate IIS Settings
76+
77+
- Ensure the IIS application pool is using the correct .NET Framework version that aligns with your application.
78+
79+
### 7. Review Logs
80+
81+
- Examine the Windows Event Viewer and IIS logs for additional error messages that might provide more context about the issue.
82+
83+
Following these steps should help resolve the error and ensure consistent functionality between your development and production environments.
84+
85+
## See Also
86+
87+
- [ASP.NET AJAX Troubleshooting](https://www.telerik.com/products/aspnet-ajax/documentation/getting-started/known-issues)
88+
- [Global Assembly Cache (GAC)](https://docs.microsoft.com/en-us/dotnet/framework/app-domains/gac)

0 commit comments

Comments
 (0)