Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9292077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:47:37+00:00 2026-06-18T20:47:37+00:00

I am working on a bigger project, which part is to create software for

  • 0

I am working on a bigger project, which part is to create software for Motorola MC9596 scanner, but I am stuck with datatransmission trough GPRS mobile connection using FTP server.

For this purpose I am using OpenNETCF.

The problem is that I cannot dial connection with entry I created. That means there are 2 entries in device’s phonebook, test1 – generated by device, when I configured connection on device manually and test2, which was created programatically using:

private const string CONNAME = "test2";
private const string PHONENR = "~GPRS!xxx.xxx-xxxxxxxx.eu";
private const string USER = "xx";
private const string PWD = "xx";
private const string DEVICE_TYPE = "modem";
private const string DEVICE_NAME = "Cellular Line";

private void createConnectionEntry()
{
    RasEntry rasEnt = new RasEntry()
    {
        Name = CONNAME,
        CountryCode = 0,
        AreaCode = "",
        PhoneNumber = PHONENR,
        DeviceName = DEVICE_NAME,
        DeviceType = DEVICE_TYPE,
        IPAddress = "0.0.0.0",
        IPAddressDns = "0.0.0.0"
    };

    /*rasEnt.Options |= (int)ConnectionOptions.UseCountryAndAreaCodes;
    rasEnt.Options |= (int)ConnectionOptions.UseLogonCredentials;*/
    rasEnt.Options = 4194304;

    RasDialParams dialParams = new RasDialParams()
    {
        UserName = USER,
        Password = PWD,
    };

    cEntry = Ras.CreateEntry(rasEnt, dialParams);
}

Note “rasEnt.Options = 4194304”, what was hardcoded, to have exact copy of settings generated by device by configuring connection manually.
Strange is, that if I compare 2 entries in debug mode, both are equal – that means all properties are equal, the only difference is Name. I am sure about this, used also reflection, to compare objects.

I dial connection with:

RasError re = cEntry.Dial(false, new RasDialParams(CONNAME, USER, PWD));

In case Test1 I get “success”, in case of Test2 “unknown” error.

Could you please help me with that nasty problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:47:39+00:00Added an answer on June 18, 2026 at 8:47 pm

    For now I ended with adding necessary registry entries manually – just checked difference in registry before and after creating connection. Not a clean solution, but did not find other one. It seems to be working stable, I can dial connection created this way. I will see, if it is OK in productive phase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a bigger project atm, but I made this simple example to
I copied a part of a bigger project i'm working on, I didn't wrote
I'm working on a bigger project which uses WCF data service and OData to
As part of a bigger project I am working on, I need to use
I am working on a personal project very simple but this is part of
I am working on a Windows C project which is string-intensive: I need to
I am currently working on a bigger project with a lot of libraries included
As part of a much bigger project, we're trying to get a Map on
I'm working on a small project, where I'm using the codeigniter php framework, but
As a part of my bigger project I'm developing a parser for the web,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.