RasDial throws error 756 - line already in use

B

Bruno Willi

For an application, which has to acquire data automatically from
different ras-servers at the same time (of course with multiple
modems), the RAS-functionality is needed. In general, it works fine,
even with more than one connection at the same time.

The application is in C#, we're using a RAS-wrapper-class, which works
fine. But when a connection interrupts, it's not possible anymore, to
dial (API RasDial) again with the device - error 756 is raised, which
means, that the connection is already established, but it isn't. With
EnumConnections it's not listed, so I can't call a HangUp on that
connection. The only solution now is a restart, which isn't that good
for a standalone system without user-interaction...

System is W2kpro.

Maybe someone out there can help me; I found some postings in
Google-Groups, where some users had the same problem, but no good
answer was given...

Bruno
 
S

Sumit Chakravarty [MS]

Hi Bruno,

That KB article describes a situation where the user stops RRAS while a
connection is up, thus orphaning the connection. I assume you're not doing
that in your code somewhere. :)

Perhaps you could enable RAS logging as below and make the logs available?

To enable logging, type the following in a cmd.exe window:
netsh ras set tracing * enabled

Now let your application connect, and run until the point of first failure.

Now you can turn tracing off:
netsh ras set tracing * disabled

The log files are in a directory named 'tracing' under the Windows
directory.

-sumit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top