Answered How to modify or remove the WWAN profile which I created ?

  • 2012年6月30日 9:29
     
     

    I created a WWAN profile using the Metro App sample, "Mobile broadband account provisioning sample".

    When clicking the Submit button, it shows "Device was successfully configured".

    A new profile was created at the folder ,C:\ProgramData\Microsoft\WwanSvc\Profiles.

    It was OK.

    But when I tried to modify the profile, the sample application shows a execption.

    I want to modify <ConnectionMode> tag from auto to manual.

    When I developed MobileBroadband device app for Windows 7, I need to remove profile

    using API.

    I suppose I need to remove the profile..

    Are there any method for remove or modify the profile?

    I need to modify it from Metro Style App.


    Please advice !


    kata.



    • 編集済み kata._ 2012年6月30日 9:33
    •  

すべての返信

  • 2012年6月30日 9:42
    モデレータ
     
     

    Kata,

    I will look into this for you.

    Best Wishes - Eric

  • 2012年7月4日 9:16
     
     

    I may find the reason why it happen.

    It happens when I add <ConnectionMode>manual</ConnectionMode> or <ConnectionMode>auto</ConnectionMode> before <Context>.

    It shows "Unexpected exception occured, error number:0x82170002".

    If I did not add <ConnectionMode> tag, it show "Device was successfully configured".

    For example, I could change APN.

    I guess, new function, ProvisionFromXmlDocumentAsync() does not accept the <ConnectionMode> tag.

    But I want to create "manual" mode profile.

    What should I do ?


    kata.


    • 編集済み kata._ 2012年7月4日 9:17
    •  
  • 2012年7月5日 7:40
     
     
    Any update?

    kata.

  • 2012年8月6日 18:22
     
     回答済み

    There is no ConnectionMode element in the Provisioning schema.  (See C:\windows\schemas\provisioning\provisioning_wwan_v1.xsd for more detail.)  The profiles start as auto-connect, and are subject to the user's control thereafter.  The user can change the profile to be auto or manual.

    To modify the profile, submit a new provisioning XML with the desired updates.  To delete the profile, submit a new provisioning XML with an empty MBNProfiles element.

  • 2012年8月7日 1:20
     
     

    Hi Mike,

    Thank you for the information.

    I can remove WWAN profile which I created.

    I can remove WLAN profile using an empty WLANProfiles element, too.

    I found a small problem.

    If there is a WLAN profile which Wan-Ui created, I cannot remove directly.

    I need to update the wlan profile before removing, then I can remove using empty element.

    Is this a limitation ?


    kata.

  • 2012年8月8日 23:04
     
     回答済み
    Yes, that's correct.  The app has control over profiles that the app created, and can remove them if needed at a later time; profiles that the user created are not intended to be under the app's control, and should only be removed by the user.
  • 2012年8月9日 4:07
     
     

    Hi Mike,

    Thanks again! :-)


    kata.