Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using the code
C#
private void image1_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            PhoneCallTask task1 = new PhoneCallTask();
            task1.DisplayName = "Fire Brigade";
            task1.PhoneNumber = "102";
            task1.Show();
        }


But it gives an exception "An unhandled exception of type 'System.UnauthorizedAccessException' occurred in System.Windows.ni.dll"

Any suggestions on how to make it work.?
Posted

1 solution

I solved it. On the WMAppManifest.xml file under capabilities you need to Tick ID_CAP_PHONEDIALER. It will be done.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900