04-08-2009 04:09 PM
I'm having a problem using the .NET API when the application code that loads it resides on a network drive. I can load the assembly and run methods sucessfully, but when I save the program and reload it, I get an error stating that I don't have sufficient permissions to load it. If I save the program to the local drive, it works fine. Is this a licensing issue? If so, is there a way to make it work, as all of my test code runs from the network. (I'm currently running it as an Administrator, though in the future it will need to run as a user)
Screenshot of error is attached.
Thanks,
Reiner
04-08-2009 10:55 PM
Hi Reiner,
Could you post the attached picture again? The picture is not shown.
This is not a license issue. NI-FBUS .NET API does not need any license.
04-09-2009 08:15 AM
OK, I'm seeing the picture in IE 6, but not Firefox(which doesn't seem to work for this site) - I'll try it again...
04-09-2009 08:18 AM
As for the licensing - it needs Communication Manager to run (I'm using an HSE/H1 LD, BTW) so I thought maybe if the license is tied to the local hard drive, and the code that calls it isn't local, it might be tripping it up somehow.
Reiner
04-13-2009 01:47 AM
Hi Reiner,
The picture is still not shown. The picture is refered to your local disk. It can not be displayed .... Please submit it as an attachment.
You can click Add Attachments when posting the thread.
How you run the program? Through development enviornment or independent executable file? Also, I want to know if there is any error code.
04-13-2009 08:15 AM
Sorry, I didn't see the Add Attachments before, so I tried insert image, and insert link (which obviously didn't work). I've attached the error screenshot now.
I'm using the development environment right now.
Thanks,
Reiner
04-14-2009 02:34 AM
Thanks for your picture. I can see the error message now.
This is not a NI-FBUS license related error. The exception throws out because the assembly (NationalInstruments.FieldBus.dll) is loaded from network share drive. As I know, the default .NET framework configuration only allows the load of local assembly.
I suggest that you try the steps described in the following link.
http://www.idautomation.com/kb/label_software_from_server.html
Hope it help.
You can also try searching MSDN (www.msdn.com) with error code 0x80131417. Microsoft also provides some information about running .NET application from network share drive .