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

1
  • 3
    There can be a million solutions to your problem, but we need to see your code in order to help you further. You might want to read How to Ask in order to get a good understanding how to ask good questions.
    – user4189129
    Commented Jan 3, 2017 at 8:33

2 Answers 2

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.

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?
2
  • Neither its a version issue nor the location is incorrect, still the error is there Commented Jan 3, 2017 at 12:48
  • but, are you sure you're using correct version. Assembly name is NationalInstruments.UI.**WindowsForms** and you're using it in asp.net project... (according to question tag). Also, try deleting temporary internet files (`%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files`) and rebuilding solution
    – Nino
    Commented Jan 3, 2017 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.