Having difficulty using a dotnet assembly (won't load)

I am trying to use a dotnet dll and having problems loading it.  Used .net controller from tools menu to create a CVI wrapper all that worked out without any issue. However, when I try to use it will get an  error CDotNetCouldNotLoadAssemblyError.  I read some posts and they recommended to register path and that function works fine .  I even added my dotnet dll to the GAC it still gives same errors.  Dll itself work fines since I can use it within my visual studio project and control hardware.  Here is the piece of code
//================================================​==============================
// Global variables
CDotNetAssemblyHandle ecMasterDotNet;
EcMasterDotNet_CEcMasterDotNet thisEcMaster;
//Master parameters
EcMasterDotNet_DN_EC_T_INITMASTERPARMS initMasterParams;
// Master Config
EcMasterDotNet_DN_EC_T_MASTER_CONFIG oMasterConfig;
EcMasterDotNet_ECError ecRetVal;
//================================================​==============================
// Global functions
/// HIFN The main entry-point function.
int main (int argc, char *argv[])
int error = 0;
/* initialize and load resources */
nullChk (InitCVIRTE (0, argv, 0));
errChk (panelHandle = LoadPanel (0, "EthercatTest.uir", PANEL));
/* display the panel and run the user interface */
errChk (DisplayPanel (panelHandle));
errChk (RunUserInterface ());
MessagePopup("Application Exit","Exit");
Error:
/* clean up */
if (panelHandle > 0)
DiscardPanel (panelHandle);
return 0;
void InitializeMaster()
int retVal = -9999;
char valReturned[40];
retVal = CDotNetRegisterAssemblyPath("EcMasterDotNet, Version=2.5.3.6, Culture=Neutral, PublicKeyToken=13b16034f262d5b2","C:\\temp\\EtherC​atDotNet\\EcMasterDotNet.dll");
//retVal = CDotNetRegisterAssemblyPath("EcMasterDotNet","C:\\​temp\\EcMasterDotNet.dll");
retVal = Initialize_mscorlib();
/****************** Error on the next line, it won't work  returns -6579   CDotNetCouldNotLoadAssemblyError  ************************/
retVal = CDotNetLoadAssembly ("EcMasterDotNet.dll", &ecMasterDotNet);
retVal = Initialize_EcMasterDotNet();
//Initialize ECMasterDotNet library
retVal = EcMasterDotNet_CEcMasterDotNet__Create(&thisEcMast​er, 0);
sprintf(valReturned,"Init returned: %d", retVal);
MessagePopup("Init EcDotnet", valReturned);
//Init Master Param
retVal = EcMasterDotNet_DN_EC_T_INITMASTERPARMS__Create (&initMasterParams, 0);
retVal = EcMasterDotNet_DN_EC_T_MASTER_CONFIG__Create (&oMasterConfig, 0);

(dll} Assemblly was created in  .net version 2.0, For CVI I have tried both 2010 and 2013.  Note dll comes from a third party however, I have been able to use it in my visual studio (2010) project without any issues.  the reason I need it for CVI is that there is an existing CVI based test equipment that needs upgrade / extention with some of the capabilitoes comming from this assembly

Similar Messages

  • I just downloaded Mainstage, I'm having trouble using it, because it won't open, can someone help me out?

    I have the latest Mac Os update ... I downloaded Mainstage, it won't open... Why is that???  I've deleted it, reinstalled it, but I keep having trouble using it...

    Yu have to run the library upgrader - it is in your applications folder in the utilities folder - double click on it to exceute it - then launch iPhoto after running the library upgrader
    LN

  • Using Captivate 5 videos won't load

    I am publishing to the Flash format using Captivate 5.5. I've tried publishing with and without the skin, and either way, the videos won't load when I try to open them with a link to the website where they are posted. They do open if I double-click on the htm in a network file folder.  I do not have this problem with older Captivate videos I created with Captivate 3. Does anyone have any suggestions as to why they won't open?

    I found the answer to why my movie wouldn't play after publising.
    Some smart user named nsukumar stated that if you used text animations it causes problems.
    Sure enough, when I removed the text animation the finished results worked perfectly!
    Thank you nsukumar where ever you are!

  • Having difficulty using iPod mini to move music to new computer

    I followed the article titled "How to use your iPod to move your music to a new computer" and I am really stuck. I deleted all the music from my iPod (it's all still on iTunes on my old computer" but the music will not transfer to my iPod so that I can transfer it to the new computer. And, the iPod is not being recognized by the new computer.
    Additionally, I cannot restore my iPod - there is some sort of error. Not sure what to do from here.
    Help, please.

    Check these out:
    Move Music to a New Computer (Apple way)
    Third Party Options
    I hope this helps!

  • I am having difficulty using the scroll effects

    Hello I am starting a basic website for my art portfolio for university and want to add scrolling images that dissapear when the user scrolls down. I have done this but the images behind on small screens get cut off at the bottom so the title is missing from the bottom image.
    My site is : www.olivernorcott.co.uk
    Specifically having issues with the photography page.
    Thanks

    Hello,
    Sorry took a while to reply with the discussions under maintenance. I figured out i had to pin the main content to the centre so that the gray slide would reveal the work beneath. Because of this, when i scroll down to the bottom of the page with a smaller screen, i am unable to scroll any further down to view the lower images and links. Its stuck within the menu and footer and will not allow scrolling within that space. I guess i need to remove the footing somehow but then the content scrolls up with the grey panel and isn't visible.
    file:///Users/OliverNorcott/Desktop/Screen%20Shot%202014-04-10%20at%2013.29.05.png

  • Having difficulty using quick selection tools to remove background form images. Any help appreciated

    Hello All,
    I am trying to remove background from images using the 3 different selection tools.  I start off fine, but ultimately the entire images keeps getting grabbed which ever tool I am using.  It is easier if you are using a pro version of photoshop and not any of the elements versions?  I have elements 11.
    Thanks
    -Deby

    Accents Accents wrote:
    Whenever I have watched a video of this process, it seems so easy!
    So much depends on the image itself to determine which tool is most appropriate. Another tool to try is the selection brush, where you literally paint in what you want to select.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Having difficulty using 2 separate Yahoo address books with each Itunes ac

    Now my wife has just given in and bought an Iphone, I have managed to set up 2 separate Itunes accounts on one computer (PC with windows 7) as well as setting up an individual music library for each of us with our individual Iphones.
    The problem I cannot solve is using a separate yahoo account for each user (we have our own yahoo email accounts with separate contacts). You can type in the email account name & password on both Itunes (under the contacts section) & on each individual Iphone, but my wife’s Iphone gets both her contacts & mine?!
    I can’t work out how Itunes is finding my contacts, when my personal Iphone is not plugged in and nor is my account info set on my wife’s Iphone or her Itunes account on the same computer? I have tried wiping the new Iphone and starting again, but it has not worked.
    It is crazy if one of us has to use google mail and the other yahoo. Any help/ advice is much appreciated.
    Thanks
    Mikeycartmen

    I wonder if the original poster might be able to do it with manual sync and (admittedly) a bit of inconvenience. I have my iPhone set up to sync manually on two different machines, one for my music and the other for my laptop's iCal. But I didn't want all of the individual calendars of my laptop's iCal assortment to sync to the 'phone, so I checked "sync selected calendars" and toggled just the ones I wanted to cart around on my iPhone.
    Maybe the OP could set up the iPhones for manual syncing, and on the Info tab check off selected calendars to sync with his phone before hitting the sync button. It may be a pain to have to remember to change the checkboxes for the His and Hers calendars, but it might be worth a try. (And make sure you have the right destination calendar -- again in the Info tab -- for the appointments made on your iPhone when you are syncing back to the laptop iCal. You don't want your appointments showing up in her calendar...)
    Hope this helps.

  • TS1741 I am having difficulty using my ipad3 as a remote.

    I have an ipad3 and the latest iTunes software on my PC. I want to use the remote app. I have enabled home sharing on both devices. The first time I restart iTunes the connection is fine and the remote works. After a while (not sure if there is a time element here or if it is when my iPad orPC goes to sleep) I lose the connection and cannot re-establish it.  I see a message on my iPad saying I should enable home sharing on my PC. When I check the PC the home sharing option is already enabled.  I have deleted and reinstalled the remote app...no improvement.  I am frustrated! Anyone know what i am doing wrong? Thanks

    You no longer need the 4 digit code in iTunes 11.
    iTunes (10.0.1 or later)
    Open iTunes on your Mac or PC.
    iTunes 11 or newer: Turn on Home Sharing in iTunes by going to File > Home Sharing> Turn on Home Sharing.
    iTunes 10.7 or older: Turn on Home Sharing in iTunes by going to Advanced > Turn on Home Sharing.
    Connect iPhone, iPad or iPod touch to a Wi-Fi network that is connected to the local network that your Mac or PC is also connected to.
    Open the Remote app (software version 2.0 or later) on your mobile device.
    Turn on Home Sharing in the Remote Settings screen. Make sure to sign into the same Home Sharing account you used to sign in to from iTunes on your computer.
    Once Home sharing is enabled for both your computer and your mobile device, Remote app will be be able to view and control audio and video playback in your iTunes library.
    http://support.apple.com/kb/ht1947

  • Please help me....Having trouble accessing iTunes store it won't load on my computer but will on Hubbys

    I can't seem to get the iTunes store to load on my computer it lets me go through my playlists and stuff but not the store.  My hubby has no trouble loading the iTunes store on his computer though the only differences between our computers is mine is Windows 7 and his is Vista.....
    Does anyone know or have any ideas on how to fix this issue I'm going crazy trying to solve it cos I just brought a new iPod and it just won't sync properly either.
    Thanking you in advance for any help your able to give

    I am having the same issue... The following are the most common occurances:
    1. Sometimes the progress bar will get to about 45% and then just sit there...
    2. Every once and a while the store will half load but it looks like a poorly scripted website circa 1996... all text and hyperlinks (which don't work i might add.. see number 1.)
    3. iTunes crashes all together when i clock on the store button.
    4. Nothing happens at all... as if it wouldnt have the time to be bothered to load at all.
    For the exhuberant amount of money that I and so many others are throwing at Cupertino, you would think they would have a half decent support team that reponds online... instead of tossing blue shirts onto 12-16 jokers into every store they had as if to say... come on in and lets have a go at this the hard way.
    Frusterated.

  • My iPhoto, using 9.2.3 won't load and just spins.

    As I click on the iPhoto icon, the screen shows iPhoto is open but the spinning wheel just spins endlessly and never actually loads our pictures in the library.
    What can I do? I am running iPhoto 9.2.3 on the iMac.  Operating system is OS X 10.6.8

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If you can then the following may be your only solution:
    Start over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window.
    Click to view full size
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.
    HOWEVER: You might try creating a new library and use the paid version of  iPhoto Library Manager to copy the Events and Albums from your current library to the new one.  This would preserve your metadata, i.e. keywords, titles, comments, etc. as well as Places.  It's essentially the same as starting over but this keeps your metadata.

  • I'm having two problems: a) the browser won't load unless I go through profile manager and at time it won't even load from there and b) the search bar won't search it does nothing as does some links like your link to live chat

    This has only started happening after my last firefox update. I tried a reinstall as well with no luck

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • Pictures that are sent to me both using iMessage and texts won't load on my iPhone

    I have received many pictures from other phones, both iPhones and other non iPhones. iMessage and standard text messages have both contained pictures. However when I want to view the pictures, I cannot. When I click on the pictures it takes me to a black screen that says its loading but it never finishes. I have left it loading for over an hour with no luck of seeing the picture. I have tried it on many wifi networks and both 4g and 3G cell service with no luck. I have now figured out to save the picture then enter the photos app to look at the picture. While this solution works, I simply want my pictures to load when I click on them so I can see if it is one I need to save. Any help on how to fix the problem?

    I have received many pictures from other phones, both iPhones and other non iPhones. iMessage and standard text messages have both contained pictures. However when I want to view the pictures, I cannot. When I click on the pictures it takes me to a black screen that says its loading but it never finishes. I have left it loading for over an hour with no luck of seeing the picture. I have tried it on many wifi networks and both 4g and 3G cell service with no luck. I have now figured out to save the picture then enter the photos app to look at the picture. While this solution works, I simply want my pictures to load when I click on them so I can see if it is one I need to save. Any help on how to fix the problem?  I have an iPhone 4S.

  • Running Mac 10.8.5 with safari.  pogo game won't load. told I don't have latest version of adobe. ru

    Running Mac with Mountain Lion 10.8.5 using Safari.  pogo game won't load.  it sez I don't have latest version of adobe flash.  My computer tells me I have the latest version, which I just downloaded.  What now?  How do I get  pogo to recognize that I have the latest version

    Running Mac with Mountain Lion 10.8.5 using Safari.  pogo game won't load.  it sez I don't have latest version of adobe flash.  My computer tells me I have the latest version, which I just downloaded.  What now?  How do I get  pogo to recognize that I have the latest version

  • HT1476 I bought an adapter for my itouch 5 so that i won't need a computer to charge my itouch gen5 - however, i noticed that it was acting up in such a way that i was having difficulty swiping the screen and even tapping the icons.

    I bought an adapter for my itouch 5 so that i won't need a computer to charge my itouch gen5 - however, i noticed that it was acting up in such a way that i was having difficulty swiping the screen and even tapping the icons. Is the only option for charging is the USB charger/connector? Or is there a specific device that I should use?

    iPhone 5 and the 5th gen iPod touches are having this problem without a charger, and will probably be fixed in the 6.1 update. See http://www.imore.com/iphone-5-touchscreen-behaving-badly-under-multiple-rapid-sw ipes

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

Maybe you are looking for

  • HT4366 Can I use dvi to hdmi for apple tv 3rd generation?

    I want to know if the latest generation Apple TV box be connected to my big screen using a DVI on the TV to a HDMI on the Apple TV box?

  • Thinkpad T500 display error

    Hello, I have a serious problem with my new Thinkpad T500 NK145GE: If I view something with fast motion (e.g. a video clip from a concert, with spotlights etc.), I can see vertical break. Here is an example of it: Example This break is not static or

  • Time Machine - Deleting user

    We are re-situating the kids on their own computer. What I need to know so that I don't have to face the wrath of a 16 year old in case I mess up: I use time machine and have continual back-ups. I want to delete my son's user. Will his user data rema

  • After Effects Error. Would Appreciate Help.

    Everytime I render in AE, I get the following error. after effects error: Error (4) reading frame from file "FILENAME" ( 86 :: 2 ) Now I've Google the error, and I've tried turning off multicore processing, but that doesn't help. If it helps, the err

  • Save Motion 3 projects at Motion 2

    I have some Motion 3 projects that I need to play back in Motion 2. Is there a way to "Save As..." Motion 2?