Click here to Skip to main content
Licence 
First Posted 14 Aug 2002
Views 186,816
Downloads 3,657
Bookmarked 39 times

How to using Remote Access Service on DotNet

By wzy9089 | 16 Apr 2005 | Unedited contribution
A RAS dial sample
2 votes, 4.1%
1
1 vote, 2.0%
2
4 votes, 8.2%
3
12 votes, 24.5%
4
30 votes, 61.2%
5
4.46/5 - 61 votes
2 removed
μ 3.74, σa 1.79 [?]

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 PinmemberRajaSoorya6:48 10 Jun '11  
GeneralFREE! .NET Remote Access Service Components Pinmemberviper01798:40 5 Mar '09  
Questionset IP sec Pinmembernikzad0:37 21 Jan '09  
GeneralWindows vista PinmemberMember 26446002:20 17 Jan '09  
GeneralUnknown RAS exception! Pinmembersara saghi23:55 2 Dec '08  
GeneralThank You! Pinmemberwds6664:20 10 Nov '08  
Jokethank you Pinmembercqbwj19845:38 13 Oct '08  
GeneralThank you! Pinmember123rajesh18:55 25 Sep '08  
QuestionHow to know what number of error has recived Pinmemberyaotzin_213:03 15 Aug '08  
GeneralAlternate Numbers don't work PinmemberSven Kammradt4:13 16 Jun '08  
GeneralThank you for sharing this code PinmemberStevenB20:24 7 May '08  
GeneralSharing Connection .... Pinmembermahdavi20:11 25 Feb '08  
Generalquestion and maybe problem with this example... Pinmemberroger_2715: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 Pinmembermahdavi21:45 5 Jan '08  
GeneralRe: 2 Modem installed Pinmemberroger_2715:08 25 Feb '08  
GeneralRe: 2 Modem installed Pinmembermahdavi20:01 25 Feb '08  
GeneralMore than one connection Pinmemberstiwoxxl5:30 18 Oct '07  
GeneralRe: More than one connection Pinmemberstiwoxxl0:20 31 Oct '07  
GeneralThankssssss and Doubt [modified] PinmemberSaijujose0:29 18 Jun '07  
Questioncan you tell me your QQ? Pinmemberlovebanyi0:26 12 May '07  
AnswerRe: can you tell me your QQ? Pinmemberstiwoxxl5:34 18 Oct '07  
GeneralError1111 Pinmembermyousuf14:11 27 Apr '07  
GeneralRe: Error1111 Pinmemberstiwoxxl5:28 18 Oct '07  
GeneralError 632 - Incorrect Structure Size Pinmemberxsynek5:49 9 Jan '07  
GeneralRe: Error 632 - Incorrect Structure Size Pinmemberxae4: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
Web01 | 2.5.120210.1 | Last Updated 16 Apr 2005
Article Copyright 2002 by wzy9089
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid