I've created a WPF applicaiton in VS2008. It's a simple application that has a button in the browser. Once the button is clicked, an sms text is supposed to be sent to a phone number via the skype API. However, I get the "System.Security.SecurityException was unhandled by user code" message. Any thoughts as to how to get around the error?
Here's the code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace GenevaText
{
/// <summary>
/// Interaction logic for Page1.xaml
/// </summary>
public partial class Page1 : Page
{
public Page1()
{
InitializeComponent();
}
//User presses button to send a sms message to the appropriate phone number
private void btnTestMsg_Click(object sender, RoutedEventArgs e)
{
SKYPE4COMLib.SkypeClass objSkype = new SKYPE4COMLib.SkypeClass();
objSkype.SendSms("3125551212", "test message", "3125551111");
}
}
}