What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Skype & Live Messenger » MSN Messenger and C#

MSN Messenger and C#
Author: Message:
splatt
New Member
*


Posts: 5
Joined: Nov 2004
O.P. MSN Messenger and C#
Hi,

I've created a windows form in c# which the MSN Messenger API. All works fine as a Windows form app.

However, when the same base code is used in a C# Web Application, accessing the page gives the following error :

Not enough storage is available to complete this operation

The line it doesn't like is:

Line 32:         msn = New MessengerAPI.Messenger

...which is the standard way of initialising the object and works fine in the Windows Form project. All references to the MSN API are the same in both projects.

Any ideas?

Thanks,

Steve
01-30-2005 09:02 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
35 / Male / –
Joined: Jun 2004
RE: MSN Messenger and C#
Are you using the web application on a remote server?
If so does that server have messenger installed and runing?
01-30-2005 09:13 PM
Profile PM Find Quote Report
splatt
New Member
*


Posts: 5
Joined: Nov 2004
O.P. RE: MSN Messenger and C#
Nope, just using it all locally i.e. IIS 5 (on XP Pro) and MSN Messenger both installed locally on the machine. The Windows Form app running locally works fine, just when I try to access it via an ASP.NET page.

It's basically instantiating the instance of MSN Messenger that's running on the local machine.

Steve
01-31-2005 08:44 AM
Profile E-Mail PM Find Quote Report
banacek
New Member
*


Posts: 1
Joined: Jan 2005
RE: MSN Messenger and C#
Do you have msn plus installed?  I've heard this could cause problems when trying to instantiate the class from a web page.  Try installing Loz 1.1.  This is similar to msn plus but fills certain holes. Hope this helps.
01-31-2005 11:35 AM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: MSN Messenger and C#
have you included the messenger api object :)

code:
<OBJECT classid=clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28
codeType=application/x-oleobject id=MessengerAPI width=0 height=0></OBJECT>
01-31-2005 01:36 PM
Profile PM Web Find Quote Report
splatt
New Member
*


Posts: 5
Joined: Nov 2004
O.P. RE: MSN Messenger and C#
Yep, included them both, just as in the Windows Forms app, which works.
01-31-2005 01:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On