Could not load file


enter image description hereI am executing the application the error occurred although the reference is already there,what could be the solution?

'Could not load file or assembly 'NationalInstruments.UI.WindowsForms, Version=, Culture=neutral, PublicKeyToken=dc6ad606294fc298' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'

Version Information: Microsoft .NET Framework Version:4.0.30319;

enter image description here

asked on Stack Overflow Jan 3, 2017 by Talal Absar • edited Jan 3, 2017 by Talal Absar

2 Answers


Then it may be as the message says one of its dependencies is not found, check if you can find the needed dependency from the exception info.

answered on Stack Overflow Jan 3, 2017 by Ali Ezzat Odeh

there could be many reasons. Try following:

  • are you using correct version (ie, in your web.config version 13.x is defined, file is version 12.x)
  • is this assembly appropriate for your .net version (maybe assembly is for .NET 3.5 and you're trying to use it with 4.0)
  • are you using winforms version instead of version
  • is your assembly on correct location...
  • is your assembly correctly installed in GAC?
answered on Stack Overflow Jan 3, 2017 by Nino • edited Jan 3, 2017 by Panagiotis Kanavos

User contributions licensed under CC BY-SA 3.0