Could not load file

0

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=13.0.40.242, 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

c#
asp.net
asked on Stack Overflow Jan 3, 2017 by Talal Absar • edited Jan 3, 2017 by Talal Absar

2 Answers

1

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
1

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 asp.net 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