No Symbols Loaded for Windows.Devices.Radios.dll when trying to swich on Wi-Fi or Bluetooth
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I am trying to switch on Bluetooth and Wi-Fi adapter from my C# WPF app
Here's my code:
private async Task<bool> SwitchOnNetworkDevice(RadioKind deviceKind)
{
var radioRequest = await Radio.RequestAccessAsync();
if (radioRequest != RadioAccessStatus.Allowed)
{
return false;
}
var results = await Radio.GetRadiosAsync();
var networkDevice = results.FirstOrDefault(radio => radio.Kind == deviceKind);
if (networkDevice == null)
{
return false;
}
RadioAccessStatus resultsOn;
if (networkDevice.State != RadioState.On)
{
resultsOn = await networkDevice.SetStateAsync(RadioState.On);
}
return true;
}
And I call it like this
await SwitchOnNetworkDevice(RadioKind.WiFi);
I have a problem, though. Before this code worked fine, but now I get this problem (symbols not loaded for Windows.Devices.Radios.dll) after retrieving a list of radios:

It is just visible through debugger, when code is executed, nothing crashes, just networkDevice is always null and nothing gets switched on. How can I fix this?
c# wpf bluetooth wifi
|
show 2 more comments
I am trying to switch on Bluetooth and Wi-Fi adapter from my C# WPF app
Here's my code:
private async Task<bool> SwitchOnNetworkDevice(RadioKind deviceKind)
{
var radioRequest = await Radio.RequestAccessAsync();
if (radioRequest != RadioAccessStatus.Allowed)
{
return false;
}
var results = await Radio.GetRadiosAsync();
var networkDevice = results.FirstOrDefault(radio => radio.Kind == deviceKind);
if (networkDevice == null)
{
return false;
}
RadioAccessStatus resultsOn;
if (networkDevice.State != RadioState.On)
{
resultsOn = await networkDevice.SetStateAsync(RadioState.On);
}
return true;
}
And I call it like this
await SwitchOnNetworkDevice(RadioKind.WiFi);
I have a problem, though. Before this code worked fine, but now I get this problem (symbols not loaded for Windows.Devices.Radios.dll) after retrieving a list of radios:

It is just visible through debugger, when code is executed, nothing crashes, just networkDevice is always null and nothing gets switched on. How can I fix this?
c# wpf bluetooth wifi
Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06
|
show 2 more comments
I am trying to switch on Bluetooth and Wi-Fi adapter from my C# WPF app
Here's my code:
private async Task<bool> SwitchOnNetworkDevice(RadioKind deviceKind)
{
var radioRequest = await Radio.RequestAccessAsync();
if (radioRequest != RadioAccessStatus.Allowed)
{
return false;
}
var results = await Radio.GetRadiosAsync();
var networkDevice = results.FirstOrDefault(radio => radio.Kind == deviceKind);
if (networkDevice == null)
{
return false;
}
RadioAccessStatus resultsOn;
if (networkDevice.State != RadioState.On)
{
resultsOn = await networkDevice.SetStateAsync(RadioState.On);
}
return true;
}
And I call it like this
await SwitchOnNetworkDevice(RadioKind.WiFi);
I have a problem, though. Before this code worked fine, but now I get this problem (symbols not loaded for Windows.Devices.Radios.dll) after retrieving a list of radios:

It is just visible through debugger, when code is executed, nothing crashes, just networkDevice is always null and nothing gets switched on. How can I fix this?
c# wpf bluetooth wifi
I am trying to switch on Bluetooth and Wi-Fi adapter from my C# WPF app
Here's my code:
private async Task<bool> SwitchOnNetworkDevice(RadioKind deviceKind)
{
var radioRequest = await Radio.RequestAccessAsync();
if (radioRequest != RadioAccessStatus.Allowed)
{
return false;
}
var results = await Radio.GetRadiosAsync();
var networkDevice = results.FirstOrDefault(radio => radio.Kind == deviceKind);
if (networkDevice == null)
{
return false;
}
RadioAccessStatus resultsOn;
if (networkDevice.State != RadioState.On)
{
resultsOn = await networkDevice.SetStateAsync(RadioState.On);
}
return true;
}
And I call it like this
await SwitchOnNetworkDevice(RadioKind.WiFi);
I have a problem, though. Before this code worked fine, but now I get this problem (symbols not loaded for Windows.Devices.Radios.dll) after retrieving a list of radios:

It is just visible through debugger, when code is executed, nothing crashes, just networkDevice is always null and nothing gets switched on. How can I fix this?
c# wpf bluetooth wifi
c# wpf bluetooth wifi
edited Jan 3 at 18:59
SaintMSent
asked Jan 3 at 16:08
SaintMSentSaintMSent
7010
7010
Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06
|
show 2 more comments
Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06
Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025929%2fno-symbols-loaded-for-windows-devices-radios-dll-when-trying-to-swich-on-wi-fi-o%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54025929%2fno-symbols-loaded-for-windows-devices-radios-dll-when-trying-to-swich-on-wi-fi-o%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

Show the actual error rmessage, not the message generated by VS debugger. The message you reffered to just tells that VS debugger can not load debug information (debug symbols) for some system DLLs. But that is not related to the real error that appeared during your code execution.
– Mike Petrichenko
Jan 3 at 16:23
You probably can't fix that unless someone gives you a Windows.Devices.Radios.*pdb* file
– Thomas Weller
Jan 3 at 16:30
@MikePetrichenko there is no error when code is executed, just networkDevice variable is always null. And the reason is what you see in the debugger
– SaintMSent
Jan 3 at 17:36
@ThomasWeller but this exact code worked before (I must have changes something with project configuration or something like that recently and it stopped working). Now I cannot figure out why, since there were a lot of changes in repository And also, Windows.Devices.Radios is a standard dll from microsoft, as I understand, why pdb file is not present and where can I get it?
– SaintMSent
Jan 3 at 17:37
docs.microsoft.com/en-us/windows/desktop/dxtecharts/…
– Mike Petrichenko
Jan 3 at 19:06