Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am trying to connect server here for my wp8.1 chat app iam getting this erroe what is this? this s first time i got this type of error


Error	1	Cannot find type System.ApplicationException in module mscorlib.dll.	agsxmpp_demo





my code ..


using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Matrix.Xmpp;

using Matrix.Xmpp.Client;
using Matrix.Xmpp.Sasl;
using agsXMPP;
using agsXMPP.protocol.client;
using agsXMPP.protocol.iq.roster;
using agsXMPP.protocol.iq.vcard;
using agsXMPP.Collections;
using Windows.UI.Popups;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=391641

namespace agsxmpp_demo
{

    public sealed partial class MainPage : Page
    {

        public string Jid_Sender = "sree1";
        public string pw = "sree2";
        string uname = "aps";
        string server = "taurus";


        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
        }


        protected override void OnNavigatedTo(NavigationEventArgs e)
        {

        }


      void loggedIn (object o)
    {

        Frame.Navigate(typeof(page2));
    }



      void loginFailed(object o,agsXMPP.Xml.Dom.Element el)

      {
          MessageDialog msgbox = new MessageDialog("Check server name/IpAddress");

      }


        private void Button_Click(object sender, RoutedEventArgs e)
        {

           
            agsXMPP.XmppClientConnection objXmpp = new agsXMPP.XmppClientConnection();
            Jid jid = new Jid("xyz@taurus.com");
            objXmpp.Server = jid.Server;
            objXmpp.Username = jid.User;
            objXmpp.Password = "sree";
            objXmpp.AutoResolveConnectServer = true;
            try
            {
                objXmpp.OnLogin += loggedIn; // loggedIn is handler for successful login to server.
                objXmpp.OnAuthError += loginFailed;
                objXmpp.Open();
            }

            catch(Exception ex)
            {



            }
   



        }
    }
}
Posted
Updated 28-Sep-15 1:56am
v2

1 solution

System.data is not available to Metro style apps.
Remove the reference to System.Data.dll from project.

Take a look at Adding System.Data into C# MetroApp gives internal eror[^] .
 
Share this answer
 
v3
Comments
[no name] 29-Sep-15 1:56am    
i dont have such references in my project.only i have

1.net for windows store app
2.agsxmpp
3.matrix
4.windows phone 8.1

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