Hi, recently our company has updated development laptops with windows 10. After Installing Visual Studio 2015 and telerik controls I receive below error:
Error 'Could not load file or assembly 'Telerik.Web.UI, Version=2016.3.1027.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))'
However everything is working fine on old developer machine.
OS : Windows 10 Pro
IDE: Visual Studio 2015 Update 3
Telerik: 2016.3.1027.45
P.S - We do not have installed any previous version of Visual studio on new laptop.
9 Answers, 1 is accepted
The following section in the documentation explains more common reasons for such a message and how to fix them:
http://docs.telerik.com/devtools/aspnet-ajax/installation/upgrading-instructions/upgrading-a-trial-to-a-developer-license-or-to-a-newer-version#could-not-load-file-or-assembly-telerikwebui-after-upgrade
Please, review the suggestions in the article above and let me know in case further assistance on the matter will be needed.
Regards,
Momchil
Telerik by Progress
I am afraid to say none of article helps. Also, consistency of this error is not great. Sometime it comes and sometimes it doesn't. Also,
It says that Error is in LC file. Please Look at attached. The error appeared today again and I spent almost 3 hours to get it resolved. Few other information
1. Project is not referencing telerik dlls from GAC. It is referencing from a specific folder on machine.
2. This time it is vs 2017 IDE.
LC comes from License Compiler or lc.exe which means that this issue is most probably caused by the licenses.licx file. This file is located in the Properties section of your project but sometimes it might not be visible in the Solution Explorer. Please delete this file and rebuild your project.
Please let us know if this helps.
Regards,
Momchil
Progress Telerik
Hi Momchil:
Hope you are doing well.
As per the above Solution I deleted the LC file and Re-build the Project but now they showing the error.
"Could not find file properties\Licenses.licx".
Request your help for proper Solution.
Usually, VS recreates the Licenses.licx file, when you build the application, but sometimes when this does not happen, you can create it manually with empty content:
- Go to the Properties folder and create and empty txt file named Licenses.txt.
- After that rename the file to Licenses.licx
You can find more information at:
Try this, it worked for me.
Right-click the .dll file and click the 'Unblock' button on the General
tab near the bottom. The button goes away after it is unblocked (in case
you don't see it). Found the solution here:
http://www.chilkatforum.com/questions/8260/could-not-load-assembly-operation-not-supported-exception-from-hresult-0x80131515
Hope it helps.
tab near the bottom
This solved my problem could not load assembly telerik.web.ui.dll operation is not supported error
- thank you Tom
Have a nice day,
Rumen
Progress Telerik
Thanks Tom, This solution worked for me as well.