i moved my project from one env, and from then on i have issue running my application.
The error i receive below. 'Could not load file or assembly 'Telerik.Web.UI, Version=2016.2.504.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'
The error code
0x80131515 usually tells that the assembly file has been blocked or not referenced properly (because VS thinks referenced assembly still untrusted). Here is an explanation from Telerik's FAQ:
Operation is not supported HRESULT: 0x80131515
The HRESULT: 0x80131515 error usually means that the file was downloaded from the Internet and Windows has blocked it. In such cases you need to simply do the following:
- In Windows Explorer, right-click the file.
- Select Properties
- Click the Unblock button.
- Clear the read-only attribute.
Other things you should try to solve this issue:
Using bin folder assembly deployment
Using GAC assembly deployment
Telerik.Web.UI.dll assembly to GAC using this command:
gacutil /i "[InstallDir]\BinXX\Telerik.Web.UI.dll
Note: [InstallDir] belongs to Telerik location path and "X" means numeric value which should be adjusted based on folder hierarchy.
Remove previously used
Telerik.Web.UI.dll from bin folder and add reference to the newer one.
Ensure that this line exists in web.config:
<add assembly="Telerik.Web.UI, Version=2016.2.504.45, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" />
Restart VS IDE.
If all possible solutions above are fruitless, create a new project with current Telerik assembly and all required assemblies then move old project files into new project.
User contributions licensed under CC BY-SA 3.0