|
I got a Remote Access Services working in Windows XP SP3 and I need control users that connect, disconnect power, see connection time, this project is useful to me for this stuff...??
|
|
|
|
|
Hi,
This was a very edifying article.
Would this code work fine / be compatible with the RRAS in Win7?
Thanks,
Soorya
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
hi Guber,
when i run your project, i get "Unknown RAS exception" error in rasConn.Dial();
what should i do?
thank you.
|
|
|
|
|
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
|
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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?
|
|
|
|
|
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
|
|
|
|
|
Hi,
I use your code for make connection.
How i can share my connection ?
http://www.mahdavy.com
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
Thanks a lot.
I solved my problem.
http://www.mahdavy.com
|
|
|
|
|
hello.
Suppose, in my system installed 3 modem , every modem can connect to internet.
if uninstall a modem maybe other software that used it have problem.
how to check modems are busy or free . if is free set it to connect internet.
thanks.
i am sina
|
|
|
|
|
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.
|
|
|
|
|
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).
|
|
|
|
|
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
|
|
|
|
|
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
如果你有看到这个消息就发一封邮件给我吧.谢谢
|
|
|
|
|
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();
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|