Talal Absar
Talal Absar

Reputation: 748

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

Upvotes: 0

Views: 220

Answers (2)

Nino
Nino

Reputation: 7115

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?

Upvotes: 1

Ali Ezzat Odeh
Ali Ezzat Odeh

Reputation: 2163

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.

Upvotes: 1

Related Questions