Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
JBteam #1
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: basic steps to run the samples
Hi,
We are two students that intend to work on the Jabber protocol in an academic project. Our goal is to  build a Web-based Persistent Chatroom application that allows recording on-line meetings and searching and replaying their content at later time, so we decided to use the aspXMPP code library for that, but we are new to the Jabber protocol and to the C# language so we wanted to ask for your help:
How do we run your samples of the server and the miniclient?
we couldn't find instructions, and it's quite embarrassing, but if you can be very specific regarding the steps to take, like which files to run first and so on, it'll very helpfull to us, because we are stuck with that very basic steps and having problems to continue without them.

Thank you very much!
JBteam
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

if you are new to jabber and c# then you should do the following:

  • Create a account with the jabber client on one of the public servers. Here is a small list of servers: http://www.xmpp.net/. XMPP is a distributed network, so i would prefer to choose a server which is located in your country.
  • play with the clients and some test accounts. If you are familar with that then you can try to use the MiniClient sample and log in to one of your accounts
Avatar
JBteam #3
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,
Thanks for your response.

We've allready done the first three steps that you recommended on.
Now we want to compile and run the code for miniclient and the server, so we need guidance for that please - How do we do that?  which of the files should we compile and run?

BTW,
Does miniclient work with the server on the samples?

Thank you for your help,
JBteam.
Avatar
Alex #4
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

for running the MiniClient just open the project files with Visual Studio 2005 or Visual Studio 2003, check the references to agsXMPP.dll and agsXMPP.ui.dll and run it.
The server sample is just a very very basic example which will show how you could use the library for writing a server as well. You can open the project and run it after you also checked the references. After that you should be able to login with every client and get a dummy roster. That is all what the sample does. There is no routing at all. Its just a very basic sample, but not complete server SDK.

Alex
Avatar
JBteam #5
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Hi again,

We've tried running the projects before but we encountered the following errors:
http://img89.imageshack.us/my.php?image=errors4wq.jpg

Can it be because the dll libraries are not properly referenced?
How and where do we change the references to these libraries?

Thanks a lot,
JBteam.
Avatar
Alex #6
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This errors look very strange. I dont think they are related to our code or project files.

Alex
Avatar
JBteam #7
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
You are right!

This was a technical problem of the university, now it is fixed...
So, finally, we've managed to open the samples  :-)

But!

after building the server's project, when we try to run it we get the following:

the following module was built either with opptimizatins enabled or without debug informatio: '....\samples\VS2005\server\bin\debug\server.exe
to debug this module, change its project buid configuration to debug mode. to suppress this message, disable the 'Warn if no user code on launch' debugger option.

and for the miniclient when we try to run the csproj we get a warning:

One or more projects in the solution could not be loaded for the following reasons:
The project file or web has been moved, renamed or is not on your computer.
These projects will be labeled as unavailable in Solution Explorer.Expand the project node to show the reason the project could not be loaded.
 :-/

we ignored this, built the project and got the following errors and warnings:

Error    1    Cryptographic failure while signing assembly 'Z:\asgXMPP\agsxmpp\agsxmpp\obj\Debug\agsXMPP.dll' -- 'Access is denied. '    agsXMPP2005
Warning    2    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    101    5    agsXMPP2005
Warning    3    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    115    5    agsXMPP2005
Warning    4    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    128    5    agsXMPP2005
Warning    5    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    145    5    agsXMPP2005
Warning    6    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    166    5    agsXMPP2005
Warning    7    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    186    5    agsXMPP2005
Warning    8    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    208    5    agsXMPP2005
Warning    9    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\DeflaterHuffman.cs    206    6    agsXMPP2005
Warning    10    'System.Net.Dns.Resolve(string)' is obsolete: 'Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202'    Z:\asgXMPP\agsxmpp\agsxmpp\net\ClientSocket.cs    158    42    agsXMPP2005
Error    11    Cryptographic failure while signing assembly 'Z:\asgXMPP\agsxmpp\agsxmpp.ui\obj\Debug\agsXMPP.ui.dll' -- 'Access is denied. '    agsXMPP.ui.2005
Error    12    Cannot implicitly convert type 'agsXMPP.Xml.Dom.ElementList' to 'agsXMPP.Xml.Dom.NodeList'    Z:\asgXMPP\samples\VS2005\MiniClient\frmMain.cs    144    32    MiniClient


How to resolve these?
sorry for asking so many questions but we can't find any one else to help  :rolleyes:

Thanks,
JBteam
This post was edited on 2006-04-04, 12:17 by JBteam.
Avatar
Alex #8
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi,

There is an error with signing the assembly. I assume it can't sign the assembly because it can't find the key. So adjust the path to keyfile or turn off the assembly signing in agsXMPP and agsXMPP.ui.

Alex
Avatar
JBteam #9
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Hi,

we're going mad!
we could'nt find how to change the path or turn off the assembly  :-/
so, can you help us with this issue, it'll be great.

Thanks,
JBteam
Avatar
Alex #10
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
see the attached screenshot of the project properties.

Alex
The author has attached one file to this post:
properties.png 22.2 kBytes
You have no permission to open this file.
Avatar
JBteam #11
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
Status Report:
1. We tried to run the miniclient from the binaries, we adjust the path as you recomended (thanks for your help for that !), but it didn't help.
so,
2. We tried running the project from the source - we built the agsxmpp2005.csproj, then we add the  agsXMPP.ui.2005.csproj and we added the MiniClient.csproj, we got the following:
when the assembly is signed,
Warning    1    The referenced component 'System' could not be found.    
Warning    2    The referenced component 'System.Data' could not be found.    
Warning    3    The referenced component 'System.Drawing' could not be found.    
Warning    4    The referenced component 'System.Windows.Forms' could not be found.    
Warning    5    The referenced component 'System.XML' could not be found.    
Error    6    Cryptographic failure while signing assembly 'Z:\asgXMPP\agsxmpp\agsxmpp\obj\Debug\agsXMPP.dll' -- 'Access is denied. '    agsXMPP2005
Warning    7    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    101    5    agsXMPP2005
Warning    8    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    115    5    agsXMPP2005
Warning    9    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    128    5    agsXMPP2005
Warning    10    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    145    5    agsXMPP2005
Warning    11    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    166    5    agsXMPP2005
Warning    12    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    186    5    agsXMPP2005
Warning    13    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\PendingBuffer.cs    208    5    agsXMPP2005
Warning    14    Unreachable code detected    Z:\asgXMPP\agsxmpp\agsxmpp\IO\Compression\DeflaterHuffman.cs    206    6    agsXMPP2005
Warning    15    'System.Net.Dns.Resolve(string)' is obsolete: 'Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202'    Z:\asgXMPP\agsxmpp\agsxmpp\net\ClientSocket.cs    158    42    agsXMPP2005
Error    16    Cryptographic failure while signing assembly 'Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\obj\Debug\MiniClient.exe' -- 'Access is denied. '    MiniClient
Error    17    The type 'agsXMPP.protocol.x.data.Data' is defined in an assembly that is not referenced. You must add a reference to assembly 'agsXMPP, Version=0.7.6.0, Culture=neutral, PublicKeyToken=ff839b81f1debe86'.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmXData.cs    29    4    MiniClient
Error    18    The best overloaded method match for 'agsXMPP.ui.xdata.XDataControl.Create(agsXMPP.protocol.x.data.Data)' has some invalid arguments    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmXData.cs    29    4    MiniClient
Error    19    Argument '1': cannot convert from 'agsXMPP.protocol.x.data.Data [z:\asgXMPP\agsxmpp\agsxmpp\bin\Windows\Debug\agsXMPP.dll]' to 'agsXMPP.protocol.x.data.Data []'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmXData.cs    29    30    MiniClient
Error    20    Cannot implicitly convert type 'agsXMPP.Xml.Dom.ElementList' to 'agsXMPP.Xml.Dom.NodeList'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    144    32    MiniClient
Error    21    The type 'agsXMPP.protocol.iq.roster.RosterItem' is defined in an assembly that is not referenced. You must add a reference to assembly 'agsXMPP, Version=0.7.6.0, Culture=neutral, PublicKeyToken=ff839b81f1debe86'.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    597    17    MiniClient
Error    22    The best overloaded method match for 'agsXMPP.ui.roster.RosterControl.AddRosterItem(agsXMPP.protocol.iq.roster.RosterItem)' has some invalid arguments    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    597    17    MiniClient
Error    23    Argument '1': cannot convert from 'agsXMPP.protocol.iq.roster.RosterItem [z:\asgXMPP\agsxmpp\agsxmpp\bin\Windows\Debug\agsXMPP.dll]' to 'agsXMPP.protocol.iq.roster.RosterItem []'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    597    45    MiniClient
Error    24    The type 'agsXMPP.Jid' is defined in an assembly that is not referenced. You must add a reference to assembly 'agsXMPP, Version=0.7.6.0, Culture=neutral, PublicKeyToken=ff839b81f1debe86'.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    601    17    MiniClient
Error    25    The best overloaded method match for 'agsXMPP.ui.roster.RosterControl.RemoveRosterItem(agsXMPP.protocol.iq.roster.RosterItem)' has some invalid arguments    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    601    17    MiniClient
Error    26    Argument '1': cannot convert from 'agsXMPP.protocol.iq.roster.RosterItem [z:\asgXMPP\agsxmpp\agsxmpp\bin\Windows\Debug\agsXMPP.dll]' to 'agsXMPP.protocol.iq.roster.RosterItem []'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    601    48    MiniClient
Error    27    The type 'agsXMPP.protocol.client.Presence' is defined in an assembly that is not referenced. You must add a reference to assembly 'agsXMPP, Version=0.7.6.0, Culture=neutral, PublicKeyToken=ff839b81f1debe86'.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    696    21    MiniClient
Error    28    The best overloaded method match for 'agsXMPP.ui.roster.RosterControl.SetPresence(agsXMPP.protocol.client.Presence)' has some invalid arguments    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    696    21    MiniClient
Error    29    Argument '1': cannot convert from 'agsXMPP.protocol.client.Presence [z:\asgXMPP\agsxmpp\agsxmpp\bin\Windows\Debug\agsXMPP.dll]' to 'agsXMPP.protocol.client.Presence []'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    696    47    MiniClient
Error    30    The best overloaded method match for 'agsXMPP.ui.roster.RosterControl.GetRosterItem(agsXMPP.Jid)' has some invalid arguments    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    787    37    MiniClient
Error    31    Argument '1': cannot convert from 'agsXMPP.Jid [z:\asgXMPP\agsxmpp\agsxmpp\bin\Windows\Debug\agsXMPP.dll]' to 'agsXMPP.Jid []'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    787    65    MiniClient
Error    32    'agsXMPP.protocol.iq.roster.RosterItem' does not contain a definition for 'Jid'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    989    65    MiniClient
Error    33    'agsXMPP.protocol.iq.roster.RosterItem' does not contain a definition for 'Jid'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    991    61    MiniClient
Error    34    'agsXMPP.protocol.iq.roster.RosterItem' does not contain a definition for 'Jid'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    1005    72    MiniClient
Error    35    'agsXMPP.protocol.iq.roster.RosterItem' does not contain a definition for 'Jid'    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClient\frmMain.cs    1014    59    MiniClient
Warning    36    Found conflicts between different versions of the same dependent assembly.    MiniClientVB
Warning    37    Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClientVB\MainForm.vb    278    31    MiniClientVB
Warning    38    Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClientVB\frmLogin.vb    36    31    MiniClientVB
Warning    39    Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClientVB\frmLogin.vb    225    31    MiniClientVB
Warning    40    Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.    Z:\asgXMPP\agsxmpp\test\VS2005\MiniClientVB\frmLogin.vb    239    31    MiniClientVB

when the assembly is not sign we also get a lot of errors and warnings...(about 40 too)


and, in addition to that we wanted to ask where does the samples libraries should be put in relation to the agsxmpp, agsxmpp.ui libraries?
should it be in the same library as these library, or inside one of them?

Thanks again,
JBteam
Avatar
Alex #12
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this looks like the same problem as before. Why do you don't disable the assembly signing for now? It doesnt matter if the assembly is signed for your first tests.

Alex
Avatar
JBteam #13
Member since Mar 2006 · 9 posts
Group memberships: Members
Show profile · Link to this post
As we wrote you at our last message, we tried to disable the assembly signing (assuming that this is done by moving the V sign at the properties window that you attached) but we still got the errors.
If disabling the assembly signing is done in some other way, we'll be glad to know how.

Thank you very much for your help,
JBteam
Avatar
Alex #14
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

Why do you want to  compile all the code on your own? Why do you dont reference to the binaries of agsXMPP in the bin directory of the MiniClient?
If you are new to c# and Visual Studio 2005 then you should get familar with both of them first brfore you work on such big projects.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS