FOUNDATION Fieldbus

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using .NET API over network

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.Error

 

Thanks,

 

Reiner

0 Kudos
Message 1 of 7
(8,738 Views)

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. 

Feilian (Vince) Shen
0 Kudos
Message 2 of 7
(8,729 Views)

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

 

Error

 

0 Kudos
Message 3 of 7
(8,722 Views)

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

0 Kudos
Message 4 of 7
(8,721 Views)

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.

Feilian (Vince) Shen
0 Kudos
Message 5 of 7
(8,700 Views)

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

0 Kudos
Message 6 of 7
(8,691 Views)

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 .

Feilian (Vince) Shen
0 Kudos
Message 7 of 7
(8,676 Views)