Help - Search - Members - Calendar
Full Version: Attach Error in Asp.net
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Felipe Fujiy Pessoto
I making a website that make calls.

I testing in my pc, using Visual Studio Web Server and all right.(http://localhost:4451/Default.aspx)

But when I try to call http://mymachinename/Default.aspx local or remotely COM dont work normally.

First, it return cSkype.Client.Start(true, true); true, but no Skype instance running....

Attach dont work, consequently calls too.


Attach Exception:

ex.Message = "Not attached."
ex.Source = "Skype4COM.Skype.1"


Skype dont ask about plug-in too. I think COM dont working


Edit2: Maybe is because IIS user account is different?
Felipe Fujiy Pessoto
I think the problem is this.

Then, i need to login using com dll, its possible? IIS open skype on aspnet user, then i need to make login after open skype
TheUberOverlord
QUOTE (Felipe Fujiy Pessoto @ Tue Jul 1 2008, 09:57)
Go to the original post
I think the problem is this.

Then, i need to login using com dll, its possible? IIS open skype on aspnet user, then i need to make login after open skype


ActiveX/JavaScript/VBScript is for Client side attach of Skype4COM.

With ASP.NET you will need to call some Server Side Code from the page, in C#
Felipe Fujiy Pessoto
But it is what I'm doing

In code-behind I make this:

public SkypeUtils()
{
try
{
if (!cSkype.Client.IsRunning)
{
cSkype.Client.Start(true, true);
}
cSkype.Attach(7, true);

cSkype.SilentMode = true;
}
catch (Exception ex)
{
string a = ex.Message;
}
}

It open Skype on ASPNET user, and like any program open on aspnet user, dont show UI
TheUberOverlord
QUOTE (Felipe Fujiy Pessoto @ Tue Jul 1 2008, 12:16)
Go to the original post
But it is what I'm doing

In code-behind I make this:

public SkypeUtils()
{
try
{
if (!cSkype.Client.IsRunning)
{
cSkype.Client.Start(true, true);
}
cSkype.Attach(7, true);

cSkype.SilentMode = true;
}
catch (Exception ex)
{
string a = ex.Message;
}
}

It open Skype on ASPNET user, and like any program open on aspnet user, dont show UI


1. Are you waiting for the Attachment success response message before you go to the next step? No.

See: http://forum.skype.com/index.php?showtopic=142821

2. Why Set Silent Mode, it requires Human intervention to say OK? Get the BUGS worked out first before trying to become fancy. ;-)

You can never assume just because you made an attachment request, that you are attached, you should use the event handler for Attachments to wait for a Attachment response of success before executing ANY code. Again this show this in C#: http://forum.skype.com/index.php?showtopic=142821
Felipe Fujiy Pessoto
cSkype.Attach(7, true);

True say that program just go to next line after attach.

I solve the problem, but is a little complex.

Any program that you try to run at ASPNET user, dont work, appear at process manager but dont show on desktop. See this article, it explain how to simulate and resolve:

http://support.microsoft.com/kb/555134/en-us


Thank you for all answers
skypesync
Hi you can configure IIS to run you virtual directory under the different account. Skype instance must be running under the same account. BTW there is way how to run Skype as service.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.