Click here to Skip to main content
Licence 
First Posted 14 Aug 2002
Views 192,519
Bookmarked 39 times

How to using Remote Access Service on DotNet

By | 16 Apr 2005 | Article
A RAS dial sample

Introduction

    

My English is very pool!The 100 words is too difficult for me! So sorry!



    This is an example for the Remote Access Service,about how to using Rasapi32 on DotNet which to dial and connection a RAS Server.
    The demo project is writing by C# on VS.Net. It is including RasConnection component.This component contain dial and handup method to control client computer's modem to connect or disconnect RAS Server,and watch the dialing & connection status.

    

My English is very pool!The 100 words is too difficult for me!So sorry!


License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

wzy9089



China China

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionRRAS in Win7 PinmemberRajaSoorya5:48 10 Jun '11  
GeneralFREE! .NET Remote Access Service Components Pinmemberviper01797:40 5 Mar '09  
Questionset IP sec Pinmembernikzad23:37 20 Jan '09  
GeneralWindows vista PinmemberMember 26446001:20 17 Jan '09  
GeneralUnknown RAS exception! Pinmembersara saghi22:55 2 Dec '08  
GeneralThank You! Pinmemberwds6663:20 10 Nov '08  
Jokethank you Pinmembercqbwj19844:38 13 Oct '08  
GeneralThank you! Pinmember123rajesh17:55 25 Sep '08  
QuestionHow to know what number of error has recived Pinmemberyaotzin_212:03 15 Aug '08  
GeneralAlternate Numbers don't work PinmemberSven Kammradt3:13 16 Jun '08  
GeneralThank you for sharing this code PinmemberStevenB19:24 7 May '08  
GeneralSharing Connection .... Pinmembermahdavi19:11 25 Feb '08  
Generalquestion and maybe problem with this example... Pinmemberroger_2714:06 25 Feb '08  
hey, I need this awesome project to dial a number, and WAIT for either a successful connection, or error. but I'm having trouble with that.
 
when I tell it
rasconnection1.Dial();
it just dials and continues the code.
 
if I call
rasconnection1.Dial();
and then add
Thread.Sleep(20000) //sleep 20 seconds
 
it doesnt dial until AFTER the 20 seconds!
 
I have also tried making a thread called thDial and using
 
while(thDial.IsBusy)
{
//wait while its busy dialing...
}
and it gets stuck in the while loop without ever dialing.
 
how can I set it to dial, and then wait to see if it connected successfully, or had an error in dialing?
 
It's not a bug it's a f- oh wait... no..It's a bug.

General2 Modem installed Pinmembermahdavi20:45 5 Jan '08  
GeneralRe: 2 Modem installed Pinmemberroger_2714:08 25 Feb '08  
GeneralRe: 2 Modem installed Pinmembermahdavi19:01 25 Feb '08  
GeneralMore than one connection Pinmemberstiwoxxl4:30 18 Oct '07  
GeneralRe: More than one connection Pinmemberstiwoxxl23:20 30 Oct '07  
GeneralThankssssss and Doubt [modified] PinmemberSaijujose23:29 17 Jun '07  
Questioncan you tell me your QQ? Pinmemberlovebanyi23:26 11 May '07  
AnswerRe: can you tell me your QQ? Pinmemberstiwoxxl4:34 18 Oct '07  
GeneralError1111 Pinmembermyousuf13:11 27 Apr '07  
GeneralRe: Error1111 Pinmemberstiwoxxl4:28 18 Oct '07  
GeneralError 632 - Incorrect Structure Size Pinmemberxsynek4:49 9 Jan '07  
GeneralRe: Error 632 - Incorrect Structure Size Pinmemberxae3:15 16 Feb '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120529.1 | Last Updated 16 Apr 2005
Article Copyright 2002 by wzy9089
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid