Shoutbox

MSN Messenger and C# - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: MSN Messenger and C# (/showthread.php?tid=37725)

MSN Messenger and C# by splatt on 01-30-2005 at 09:02 PM

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


RE: MSN Messenger and C# by Plik on 01-30-2005 at 09:13 PM

Are you using the web application on a remote server?
If so does that server have messenger installed and runing?


RE: MSN Messenger and C# by splatt on 01-31-2005 at 08:44 AM

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


RE: MSN Messenger and C# by banacek on 01-31-2005 at 11:35 AM

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.


RE: MSN Messenger and C# by Stigmata on 01-31-2005 at 01:36 PM

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>

RE: MSN Messenger and C# by splatt on 01-31-2005 at 01:40 PM

Yep, included them both, just as in the Windows Forms app, which works.