473,396 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Odd issue with dial-up connections

I don't believe this problem is specially related to C#, but since my
app is written in that language I thought this would be a good place
to start.

I have a binary written in C++ (not by me) that makes a connection to
Windows servers using WNetAddConnection2() to perform various
functions. I don't have the ability to modify that code for that
binary but I must use it.

My requirement is that I establish a dial-up connection to the server
first. My C# app is responsible for doing this. Initially I ran the
rasdial Windows utility and then changed to use the InternetDial() API
call from the WinInet.DLL. Both yield the same odd problem. The
problem is that after my application establishes the connection, this C
++ binary is unable to make a connection to the remote server. It gets
the error:
"No network provider accepted the given network path"

If I first establish the connection on the command line using the
rasdial Windows utility and then run the C++ binary, it works.

The only thing that comes to mind is that the only processes that can
access the remote network connection are child processes of what made
the connection. That seems odd but it matches the behavior I am
seeing.

Any suggestions or thoughts on a better location to track this
information down would be greatly appreciated.

Also please let me know if I can provide any additional information.
Nov 12 '08 #1
0 1034

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jake | last post by:
This is a great set of code for TAPI which does everything; however, I am having the worst time trying to figure out why the form is being reinitialized from the timerhandler instead of just...
2
by: Firewalker | last post by:
Hello guys, I was wondering if you can give m little help with this. I am trying to write a small program that dial a phone number through the modem. Is it possible to do it in java? Any help? I...
8
by: buzz | last post by:
I would appreciate a pointer..... I have an asp page that links to an Access database and retrieves 2500 records and each record line has two listboxes. The problem is, although everything is...
1
by: mark | r | last post by:
ive an application that datestamps a row of data when i make changes to the file from an admin gui it toggles the date between the us (mmddyyyy) and uk (ddmmyyyy) anyone know how to stop this? ...
5
by: Bura Tino | last post by:
Sorry if this is offtopic. I'm developing a website which, among other things, has contacts. I would like my users to be able to click on a number and have the computer dial that number. Is this...
3
by: John | last post by:
Hi I have sent a client my app where it gives error on an expression. This I am pretty sure is a references issue as they are using office 2000 and I am using office xp. As the client is based...
0
by: anonymous | last post by:
Currently using the auto dial code in access to speed dial phone numbers from a form in the database. If we switch to VOIP will we still be able to do this? If so, how?
1
by: ACaunter | last post by:
Hi all, I was wondering if there was a way to auto-dial a list of numbers and play a recorded message to them. asp.net can email, fax.. so i'm guessing it must be able to dial a regular phone...
2
by: mohamed farouk | last post by:
hi everyone i have sql database containing the name of person and his telephone number, i select the name from combo box and I want to click on the button make dial action so i can open the port...
0
by: telcoboy | last post by:
Hi Guys, I;m a bit out of my depth here and was wondering if someone could point me in the right direction. We have an Oracle Database and want to put a button on the form to dial the number in the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.