Solved

Could not load file or assembly

  • 11 July 2022
  • 4 replies
  • 822 views

Userlevel 3
Badge +8

Hi everyone,

 

Once in a while we get this error (Could not load file or assembly, example in image below), where users are not able to enter a menu which they have privilege's for.

The solution we have had so far, is to delete the 2.0 folder from the users APPDATA/APPS windows folder, and on reentry to IFS, they are able to access the same menu.
 

The question I would like to ask, is if this is the best possible solution, or if there is another way to understand why this happens and solve it, without the need to delete the 2.0 folder?

 

Thanks in advance!

 

 

icon

Best answer by Ben Monroe 12 July 2022, 02:57

View original

4 replies

Userlevel 3
Badge +8

I’ve seen this a couple of times.  As IFS is a click-once application and the 2.0 folder seems to contain a cache of the downloaded IFS forms etc, you can get corruption/mismatches between the online app and the 2.0 folder.

It’s certainly the easiest way to solve the problem.

Userlevel 6
Badge +18

We get this from someone in our Apps10 environment at least weekly.  It looks like a file corruption in one or more of the client files which get downloaded into that folder, and when you delete that content IFS then re-downloads the client files the next time it runs.

There is also a Command Prompt command that can be run which deletes the IFS cache, but there is nothing wrong with what you are doing.  Here’s the command, which I think is case sensitive:

rundll32 dfshim CleanOnlineAppCache

HTH,

Nick

Userlevel 5
Badge +12

IFS IEE utilizes a Microsoft technology called ClickOnce. ClickOnce allows non-admin users to “install” applications into their %localappdata%\Apps\2.0 folder without admin credentials. This ClickOnce folder can become corrupt when updating files there or when running the same application from another environment (such as DEV, QA, and Production).

This problem is not specific to IFS but is seen in all ClickOnce products around the world. With enough technical and debugging skills, you could potentially track down the inconsistent file(s) / versions and manually fix them. However, this is potentially a significant task and not to be taken lightly. While inconvenient, clearing the folder is by far the simplest and fastest resolution.

Userlevel 3
Badge +8

Thank you to all for your feedback.

Clearing the 2.0 folder it is! 😁

Reply