Z
Zlajoni
Hi everybody,
I have downloaded the demo component from intelliprog, and I would
like to make demo to work before I buy the component.
My app is runing on WIN CE.
I have mannualy added an connection, and want to try to enumerate the
connections from the code....but I keep getting this exception:
"TypeLoadException Could not load type Intelliprog.Net.RasEntry from
assembly Intelliprog.Net, Version = 1.0.1279.0, Culture = neutral,
PublicKey Token=null."
Where after my app crashes.
This is the simple code I am trying to execute:
private void button2_Click(object sender, System.EventArgs e)
{
RasEntry[] rasEntries;
rasEntries = Ras.Entries;
if (rasEntries.Length > 0)
{
lbDeviceName.Text = rasEntries[0].DeviceName;
lbAreaCode.Text = rasEntries[0].AreaCode;
lbCtryCode.Text = rasEntries[0].CountryCode.ToString();
lbDevType.Text = rasEntries[0].DeviceType;
lbPhoneNr.Text = rasEntries[0].PhoneNumber; }
}
Am I doing something totaly wrong here? Does anyone have a clue what
is happening? Or there is some one who can give me some sample code to
look at?
Regards
Zlajoni
I have downloaded the demo component from intelliprog, and I would
like to make demo to work before I buy the component.
My app is runing on WIN CE.
I have mannualy added an connection, and want to try to enumerate the
connections from the code....but I keep getting this exception:
"TypeLoadException Could not load type Intelliprog.Net.RasEntry from
assembly Intelliprog.Net, Version = 1.0.1279.0, Culture = neutral,
PublicKey Token=null."
Where after my app crashes.
This is the simple code I am trying to execute:
private void button2_Click(object sender, System.EventArgs e)
{
RasEntry[] rasEntries;
rasEntries = Ras.Entries;
if (rasEntries.Length > 0)
{
lbDeviceName.Text = rasEntries[0].DeviceName;
lbAreaCode.Text = rasEntries[0].AreaCode;
lbCtryCode.Text = rasEntries[0].CountryCode.ToString();
lbDevType.Text = rasEntries[0].DeviceType;
lbPhoneNr.Text = rasEntries[0].PhoneNumber; }
}
Am I doing something totaly wrong here? Does anyone have a clue what
is happening? Or there is some one who can give me some sample code to
look at?
Regards
Zlajoni