Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: .Net Extension problem - still unsolved
Andrew Grandin
Posts: 272
 
.Net Extension problem - still unsolvedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 2:34 AM
I have a .Net Extension fully working in SLX that uses functions of an API to validate an address passed into it by SLX. However, the button that calls the Extension only works if i log into the client as Administrator. If i log in as a user i get the error message:

SubScript out of range [Number: 0]

This points to the line:

Dim a
a = Split(edit7.Text,"|")
edit8.Text = a(0)
edit9.Text = a(1)
edit10.Text = a(2)
edit11.Text = a(3)
edit12.Text = a(4)
edit13.Text = a(5)

which i use to split the array of address lines back into individual items in SLX. Any idea why this error occurrs?
[Reply][Quote]
john
Posts: 34
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 4:24 AM
sounds like the array is empty, which would suggest that running the API code as a different user is failing.

does edit7.text contain anything to split?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 4:28 AM
Just had a check and no, edit7 is empty after i click OK on the error. Nothing seems to be reading in. Should there be a difference when logged on as admin opposed to a user?
[Reply][Quote]
john
Posts: 34
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 5:07 AM
is the .net extension released to the user?
is the user tied to windows auth? (ie does the api access a network share not available to the user?)
is the api producing any errors?
is the slx code producing any errors?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 5:14 AM
the SLX code is fine.
the .Net Extension code is fine.
all the API files are in the system32 folder which i have access to (my logon is the test user)
Do you release the extension to individual users???
[Reply][Quote]
john
Posts: 34
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 5:27 AM
The extensions are released in a similar fashion to plugins (i generally release mine to Everyone)
Have a look at the Releases tab for your extension...
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 09 5:40 AM
Ahhhhh now i see. Thanks for that john it seems to work now. Cheers!!
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Oct 09 7:39 AM
I now have another problem. Everything works fine on my local install but when i try to get it workng over Citrix for normal users i get an error message. When in the client over citrix i click my button on the Account Form. I know it is communicating fine with my .Net Extension because a message box i placed in my extension displays. The problem comes after the message box when the dll functions are trying to be used. I get the error:

SubScript out of range [Number: 0]

which was posted earlier in this thread. I have installed the QAS software onto the citrix server and copied the files i put in my system32 folder into the citrix system32 folder so everything would be the same. AM I MISSING ANYTHING???? This is driving me crazy!
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 09 3:44 AM
A little more info:

I think it is not working over citrix as the QAS software has not been installed on the citrix server and the API files are not in the system32 folder in its C:\ drive. However, it is policy that i get this working on the Application Server before this is allowed to happen.

The problem i have is that the Application Server has QAS installed and i have copied the necessary files to the system32 folder BUT when i use the SLX client from within the Application server the .Net Extension isnt even called (i dont get my message box).

Now when i go into the client over citrix, although the QAS part doesnt work, the .Net Extension is still called as the msgbox appears, so in the Application Data/SalesLogix folder we have the .NetPlugins folder.

When i do the same in the client locally installed on the Application Server this .NetPlugins folder containing the dll of my extension does NOT get created.

Any idea why?????
[Reply][Quote]
john
Posts: 34
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 09 5:44 AM
Has the application server got the .net extensions installed?
Try running RegisterSLXNetExtentions.bat, which can be found in C:\Program Files\SalesLogix

Also, the check "C:\Documents and Settings\\Application Data\SalesLogix\NETPlugins\SLX Server Name\SLX Connection Name\SLX User Name" folder to see if your extension is getting deployed onto the machine.

Finally, I assume the .net is installed on the appication server?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Oct 09 9:08 AM
Hi John, really appreciate your help on this. I have checked the C:\Documents and Settings\\Application Data\SalesLogix........ folder on the application server and (for the user i asked to test for me) there isnt even a NETPlugins folder.

If i look in C:\Documents and Settings\\Application Data\SalesLogix........ folder in citrix everything is there as it should be.

I have also run the RegisterSLXNetExtentions.bat on my C:\ drive and the C:\ drive of the application server and the results are the same for each, should i be looking fo anything in particular when this is run?
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: .Net Extension problem - logged on userYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Oct 09 10:02 AM
Thanks all for your replys. Particular thanks go to john. The problem did turn out to be related to the RegisterSLXNetExtensions batch file. I did run it with no change to my problem but wasnt told that there were different levels of admin rights!!! I ran it under full admin access and it worked. Thanks again all!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/8/2025 8:12:49 PM