Test internet connection from Navision
 
            
                
                    davidsp                
                
                    Member Posts: 18                
            
                        
            
                    Hello,
i need to check from Navision's Codeunit if the current client has an active internet connection (by lan/ modem).
Does anyone know how to do that?
Automation server? Bat file which creates a txt file?
I need urgent please.
Thanks
                i need to check from Navision's Codeunit if the current client has an active internet connection (by lan/ modem).
Does anyone know how to do that?
Automation server? Bat file which creates a txt file?
I need urgent please.
Thanks
0                
            Answers
- 
            You can try to use automation ''Microsoft WinHTTP Services, version 5.1'.WinHttpRequest" to check some well-known service if it is available. If yes, you can say taht internet connection is available...0
- 
            I'm trying another way more complex.
 I'm using dart ftp (OCX) - dart.com.
 I'm able now to use ftp via OCX but unable to get the error codes....
 Don't know how to do that...
 anyone has used it?0
- 
            Hello,
 here the news:
 trying to use the "''Microsoft WinHTTP Services, version 5.1'.WinHttpRequest" method but this is the problem:
 if there is no connection, the system has a runtime error and the codeunit stops:
 CREATE(WinServices,TRUE);
 WinServices.Open('GET','HTTP://www.msn.com);
 WinServices.Send;
 if no connenction the system stops here because unable to send.
 CLEAR(WinServices);
 ERROR(FORMAT(WinServices.StatusText));
 So the way should be to interact with some windows service that checks if there is a valid connection active or to handle errors from the winhttp service (on the WinServices.Send command). So the question could be: how to handle errors from this automation server?
 Suggestions?0
- 
            Use your code in vbscript. Then you can trap the error. Have done this but if no internet the script runs for 30 seconds. Don't think that is what you want.0
- 
            Resolved:
 i used an external ocx: "net connect OCX".
 It can test the connection!!!!!
 Great.
 Thanks to all of you.
 Hope i'll not encounter more problems.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

