mibuso.com

Microsoft Business Solutions online community
It is currently Thu Jun 20, 2013 6:33 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri Oct 01, 2010 10:26 am 
Offline

Joined: Fri Oct 01, 2010 10:14 am
Posts: 4
Country: Spain (es)
I'm trying to import this objects, I'm using Microsoft Dynamics NAV 2009 SP1, and my error is the following:
"Automation is not an option. The existing options are: System, File, TransactionType", this occurs when Dynamics is importing this line (Object Codeunit 80000 Session Killer):

autNavisionTimer@1101322000 : Automation "{3B311C81-140E-11D5-8B18-00D0590B4EC5} 1.0:{3B311C92-140E-11D5-8B18-00D0590B4EC5}:'Navision Timer 1.0'.Timer" WITHEVENTS;

Thanks.


Top
 Profile E-mail  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Wed Oct 06, 2010 2:50 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7526
Location: Milan
Country: Italy (it)
navuser1 wrote:
kriki wrote:
You don't need to have the form open to kill sessions.
The NAS using the codeunit kills the sessions.

Each customer license has 1 NAS for free.


How will NAS kill the Idle Session ??

Will NAS call the Session Killer Codeunit again again automatically . ??

The NAS kills a session by deleting it's record in the Session-table.

The NAS (function ID 99 in codeunit 1 calls the session killer codeunit only once. In the OnRun of the codeunit, the Timer automation is initialized and each N seconds the automation calls an automation-trigger in the codeunit that does the controls and optionally kills users.

@karthikeyan_atna: download this and check the code for an example. You can also use this instead of re-inventing the wheel.

@adirane: did you install NAV2009SP1 or did you just copy the subdir? You need to register the NAV timer dll for the automation.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Wed Oct 20, 2010 5:20 pm 
Offline

Joined: Wed Mar 19, 2008 9:08 am
Posts: 872
Location: XYZ
Dear All,

I want to install NAS on one of my Client PC (OS: Windows XP) to Kill the Ideal Session (Ideal Time: More than 1 One hour).

I have defined the 1 minute time Interval for the Navision Timer Automation ('Navision Timer 1.0'.Timer) to execute code for killing the Ideal sessions.

Will this setup create any issue in future ??

Kindly reply

_________________
Now or Never


Top
 Profile E-mail  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Mon Oct 25, 2010 1:42 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7526
Location: Milan
Country: Italy (it)
No.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Mon Oct 25, 2010 1:43 pm 
Offline

Joined: Wed Mar 19, 2008 9:08 am
Posts: 872
Location: XYZ
I'm Using Single Instance CU. My Code is geven in Screen Shot
Attachment:
Session Killing Code.JPG
Session Killing Code.JPG [ 36.67 KiB | Viewed 2425 times ]

_________________
Now or Never


Top
 Profile E-mail  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Wed May 04, 2011 12:00 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Hi all,

As per the procedures i have installed the NAS And the even activated the services also , but now the problem is the code that i have added in codeunit 1 is not getting triggered. even i tried with putting a message. but it doesn't trigger. what will be the actual Problem . can some one guide me.
The code i have added in Codeunit 1 is

'SessionKiller': CODEUNIT.RUN(CODEUNIT::"Single Instance Codeunit");


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Wed May 04, 2011 2:33 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7526
Location: Milan
Country: Italy (it)
Try:
Code: Select all
'SESSIONKILLER': CODEUNIT.RUN(CODEUNIT::"Single Instance Codeunit");


and also use upper-case when installing the NAS.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Thu May 05, 2011 11:38 am 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
i have added the modified code in codeunit 1 but still not getting triggered. even i tried with putting a message. but it doesn't trigger. what will be the actual Problem .

Where do am actually lacking?

Suggestion welcome.


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Thu May 05, 2011 4:01 pm 
Offline

Joined: Thu Oct 30, 2008 10:38 am
Posts: 987
Location: Earth
Country: Netherlands (nl)
Does this work with the RTC? (haven't tried it)
Because when deleting a session from a RTC-user, it reconnects.

To southindian: put a message before all the code in the nashandler trigger. If the message doesn't show up in your eventviewer, you probably don't have a NAS running. If it does, go to the case and put a message after your 'SESSIONKILLER' case, and a different one in the "case else". If you have the nas running in a loop (ie CGNASStartedinLoop = true) then it won't work.

_________________
|Pressing F1 is so much faster than opening your browser|
|MCBMSS: 5.0 intro|MCTS:NAV09 839..841|JetReports© Certified Specialist|
|Dynamics Anywhere: Mobile Business Solutions|


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Thu May 05, 2011 10:58 pm 
Offline
Moderator
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Wed Jul 02, 2003 10:13 am
Posts: 7526
Location: Milan
Country: Italy (it)
You can also run the NAS from the DOS-prompt and also using the parameter "debug" so the debugger starts and you can see what happens in the NAS.

_________________
Regards,Alain Krikilion
Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri May 06, 2011 7:17 am 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Dear Sirs,
Finally My NAS connection is working fine and Session Killer Is started. Thank for Valuable help in crucial time.

Thank you sir(Kriki and Sog).

For furthur query i will be Back here.


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri May 06, 2011 2:00 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
Dear all,

Thanks for all those have helped me. But now am facing a problem, am getting a warning error " You don't have Permission for accessing the Session killer Table". Even i had Save the objects in 50000 series , but still am getting the same Problem . I have tried with changing the license , but am getting the same problem.

Can some one help me out in this.


With regards,

Vijay


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri May 06, 2011 2:06 pm 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4254
Location: New Delhi
Country: India (in)
Did you try by uploading the license?

is this the first time you are getting permission error for Table 50000 and are you able to run it before(may be different table)?

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri May 06, 2011 2:09 pm 
Offline

Joined: Tue Aug 26, 2008 2:07 pm
Posts: 143
Location: Tamil Nadu
Country: India (in)
tried all option ... but getting the same error .

I dont know what to do?


Top
 Profile  
 
 Post subject: Re: How to control/kill sessions?
PostPosted: Fri May 06, 2011 2:17 pm 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4254
Location: New Delhi
Country: India (in)
Try this to check available objects in your License
http://gotcal.com/index.php/2010/05/available-objects-in-license-report-re-visited-5/

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: