Could not load file or assembly 'Telerik.Web.UI, Version=2018.3.910.45, Culture=neutral,PublicKeyToken=12fae78165ba3d4' or one of its dependencies.

1 Answer 1520 Views
Grid
Sheila
Top achievements
Rank 1
Sheila asked on 31 Aug 2022, 02:31 PM

This ASP.NET C# .NET 4.5.1 application was created with Telerik in 2018? and has not been used for a few years because of the pandemic. The programmer who knew Telerik retired and I have no experience with Telerik.  Now, it will not compile. This software is a culinary reservation system, so nobody is able to make reservations. It gets the following error:

Severity Code Description Project File Line Suppression State
Error 'Could not load file or assembly 'Telerik.Web.UI, Version=2018.3.910.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)' GTCC_Culinary C:\Users\ssjohnson\OneDrive - Guilford Technical Community College\Documents\Projects\Culinary\GTCC_Culinary-main\GTCC_Culinary\LC

I believe that this has something to do with a gridview because an error I saw on the server pointed to line 335.

Here are the Telerik references in the project:

 

 

Lance | Senior Manager Technical Support
Telerik team
commented on 31 Aug 2022, 04:46 PM | edited

Hi Sheila, you originally opened this case as a native Windows application. However, this is for UI for ASP.NET AJAX's RadGrid, which is a different product and an entirely different team of engineers. I'm guessing you did that because didn't see a Techcnial Support option for AJAX, this is because your account's Technical Support license expired in 2019, so I cannot convert this to a 24 hour Priority Support case.

However, I can still get you help for this by using the Q&A. For your convenience, I have already converted the case to a UI for ASP.NET AJAX Q&A post and applied the Grid tag. Although we do our absolute best to answer Q&A posts within a few days, it could take longer if the Priority Support demand is very high that week.

Note: I do not see any sensitive information in the error or screenshot, but if you would like to obfuscate anything, you can edit the post.

Intermediate suggestions

While you await the team's response, I do have a comment. I am most concerned that the project is in a OneDrive folder. This can come with unforeseen consequences, the most critical issue arise from:

  • OneDrive folder paths are transient files, kernel-managed file states, thus the file itself may or may not be present. Even if it is there, the file may or may not be blocked via Alternate File Stream flag.
  • File paths are going to quickly run over the MAX_LENGTH error (this is what I think you might be experiencing). For more information about this problem, see Maximum Path Length Limitation.

If the project is using OneDrive as a form of source control, this is also a problem for the same reasons (especially the MAX_PATH problem for transient obj and bin file paths). I recommend switching to a real version control like git or TFS, which is much more resilient and can handle the nuances that code and compilations files require.

My short-term recommendation would be for you to try the following:

  1. Close all instances of Visual Studio (and or anything else that would hold a file lock on that project)
  2. Move the source code out of the C:\Users\ssjohnson\OneDrive - Guilford Technical Community College\Documents\ OneDrive folder and into a safer local folder (try C:/MyProjects for now, see my Important section below)
    • To be safe, only copy it and leave the original project in the original location
    • I would also delete the temp folders (bin and obj) before moving them, Visual Studio recreates them when you Rebuild anyways
  3. Open the moved project in Visual Studio
  4. Confirm the Telerik references are still valid.
  5. Clean and Rebuild the project

IMPORTANT:

If you did not intentionally put this code in your OneDrive, then this likely happened because your OneDrive settings are set to  "sync my PC folders to OneDrive" setting.

  • Which means instead of the expected:
    • C:\Users\ssjohnson\Documents\
  • it is using a special cloud-synced:
    • C:\Users\ssjohnson\OneDrive - Guilford Technical Community College\Documents\ 

I have seen this issue surprise a lot of people who thought they had a separate local and OneDrive folders.

When you're done, please come back and reply to my comment with an update. I'll be keeping a close eye on things to try to ensure the UI for ASP.NET engineers can get to this in a timely manner.

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 01 Sep 2022, 12:41 PM

Hello Sheila,

I just spoke to the engineering team and they mentioned this can also be caused by not having a valid license file. We have a KB article that explains how you can fix it.

Please visit Telerik RadControls How To Fix License File Related Errors, follow the guidance and let me know if you have any further issues.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Sheila
Top achievements
Rank 1
commented on 06 Sep 2022, 12:42 PM

You solved my problem. Thank you so much! You saved the day. I was able to get the application working so that people attending the culinary event for Guilford Technical Community College can make reservations.  Bless you!
Lance | Senior Manager Technical Support
Telerik team
commented on 06 Sep 2022, 01:18 PM

Hi Sheila, I'm very happy to hear that!

If you have any problems in the future, be sure to open a new Support Ticket specifically for "UI for ASP.NET AJAX". I know it can be confusing because there are three different "ASP.NET" products (ASP.NET MVC, ASP.NET Core, and ASP.NET AJAX). The one that application uses is the AJAX one.

Tags
Grid
Asked by
Sheila
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or