 |
|
 |
If you're trying to use the remote access service (RAS) API from a .NET managed language, you might want to check out the DotRas project on CodePlex. It'll probably have what you're looking for.
http://www.codeplex.com/DotRas
|
| Sign In·View Thread·PermaLink | 3.00/5 |
|
|
|
 |
|
 |
First of all thank you so much for your code. it is very good. could you help me about how can I set IPsecurity Key on VPN connection? Thanks
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
I could not manage to make it works on windows vista 32 sp1. I get error 87. it work perfectly on XP sp4
thanks for the code 
|
| Sign In·View Thread·PermaLink | 2.60/5 |
|
|
|
 |
|
 |
hi Guber, when i run your project, i get "Unknown RAS exception" error in rasConn.Dial(); what should i do? thank you.
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
I need this codes very much, for my teacher ask me to finish this job in two weeks. But there is so little related materials on the internet! Fortunately, I found your valuable codes! Thanks!
Dongsheng Wang SouthEast University
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
RAS module is the most versatile of all the work i researched over few weeks on the internet. It has every feature i am looking for and it saves me a HUGE amount of time and effort.
I really appreciate posting this valuable code.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I make connections, and connect. But, if I type wrong password, and push to connect, how I know what error - was returned ? events ???? sorry for my english
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
Hello,
if i try to add a entry to the alternate numbers list it doesn't work. The rasdemo example doesn't display alternate numbers too.
what could i do to solve that?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have done a lot of research to create a ras class, without much success. You have saved me a great amount of work by posting this.
Once again, Thank you very much Steven
StevenB
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, i have 2 modem in my PC, i want to set one of them at my Code ? do you know how i can do it ?
http://www.mahdavy.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I think you need to see which modem it is using to dial out.
if its the one you want then its good, and it will always use that one.
if its using the other one, then uninstall the one it is not using, and re install it. it will most likely use that one.
I think it goes by which modem was installed last. I think.
It's not a bug it's a f- oh wait... no..It's a bug.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
As the subject says: Is it possible to create more then 1 connection with that code?
Anybody out there who found out how it works? Ideas are welcome too 
Thanks in advance.
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
After the project i found an easy way to create more than one connection. I simply create a new phonebook and i use the RasEntry functionality to create new entries into my new phonebook. I can now manage the entries and every time i connect to another number via RAS (ISDN in my case) i use a new entry.
No more problems with 1, 2 or 32 open channels (a big DIVA ISDN Card).
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
thank uuuuuu soo much for the RAS dll but the function RAS connected is not working properly when it connected to the internet pls give some Help
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
i want to use this , but i don't know how to use it,
how to create to a new Connection?
and how connect this connnection?
in fact , i need create a vpn client. use itselef account,
my email: lovebanyi at 163.com
if you see this message ,please send a email to me
Thank you 我该什么用这个类库呢?我不清楚什么去用它. 什么去创建一个连接. 什么去连接创建好的连接.
我想要的是创建一个vpn连接,并用它的帐号连接它.
我的邮箱 lovebanyi@163.com 如果你有看到这个消息就发一封邮件给我吧.谢谢
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
vpn isnt included in this solution
connect:
Ras.RasConnection rasConn; rasConn.PhoneNumber = "110"; rasConn.UserName = "user"; rasConn.Password = "pw"; rasConn.CallbackNumber = ""; rasConn.Domain = ""; rasConn.Dial();
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
HI I am trying to use your demo project but facing error
Additional Information: text lenght must be less than 64 characters long
is any solutions please..
thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hey, there is a problem when there are error messages longer than 64 characters. Therefore you have to shorten the text which goes to these notification icons (on the taskbar). The code therefore is within Form1 on line 748. I changed it to: string rasNotifyText = (string.Format("{0},{1}", e.ConnectionState, e.Message)); this.rasNotify.Text = (rasNotifyText.Length > 63) ? rasNotifyText.Substring(0, 63) : rasNotifyText;
Quick and dirty, but it works
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, All works me well with WINVER4 WINVER5. When I define WINVER501, I get exception: Error 632 - Incorrect Structure Size. Can somebody help with this problem? I need setup functionality accessible in WinXp.
thank you Petr Synek
|
| Sign In·View Thread·PermaLink | 5.00/5 |
|
|
|
 |
|
|
 |
|
 |
I found the problem here: #if WINVER4 RAS_MaxEntryName =256, RAS_MaxDeviceName =128, RAS_MaxCallbackNumber =RAS_MaxPhoneNumber, #else RAS_MaxEntryName = 20, RAS_MaxDeviceName = 32, RAS_MaxCallbackNumber = 48, #endif
According to http://billmccarthy.com/Projects/Archived/PlatformVB/dun/rasenumdevices.htm, the RAS_MaxDeviceName should be 128 for Winver4 *OR LATER* - in this case, it will only be set to that on Winver4, later versions will try and use 32. I changed the 32 to 128 and it ran fine...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |