Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 29th, 2005, 04:34 PM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems calling ActiveX via localhost

I have not been able to run my WebService from the iis on my computer when trying to invoke the service via localhost as it does give an error when trying to call an ActiveX I’m using.

The code is ok when I run it from the Visual Web Developer 2005 Express Edition Beta.

The code is as follows:

CLService.asmx:
<%@ WebService Class="CLService" Language="vb" _ CodeBehind="~/Code/CLService2.vb" %>

CLService.vb:
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols

<WebService()> _
Public Class CLService
    Inherits System.Web.Services.WebService
    Dim myVLink As New VisualVoiceLink.VLink
    Dim sTemp As String

    <WebMethod()> _
    Public Function MyFunction(ByVal Var1 As String, _
 ByVal Var2 As String, ByVal Var3 As String) As String
        Try
            myVLink.Initialize()
            myVLink.Request("Server", "Subject", Var1, _
  Var2, Var3)
            If myVLink.ReceivedDataTotal > 0 Then
                Return CStr(myVLink.ReceivedData(0))
            Else
                Return "-1"
            End If
        Catch ex As Exception
            If ex.Message = "Could not find the VLink node _
               in the active node list."
            Then
                Return "Server not available!!!!"
            Else
                Return "Error in service: " & ex.Message
            End If
        End Try
    End Function
End Class

In the \bin subdirectory the Interop.VisualVoiceLink.dll is generated.

As I said earlier I can run this ok from the development environment and from a trace utility that came with the ActiveX I can see when it is loaded and the methods being called but when running this via localhost the ActiveX doesn’t appear to load in to memory due to something I can’t find out for my self.
I have installed the .NET framework 2.0 for the VWD 2005 EEB to work.

Is there anyone that can help me with this.

One desperate beginner.
Kristinn


  #2 (permalink)  
Old March 30th, 2005, 05:36 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

doyoureallythinkitisaskingtoomuchforyoutoputperiod sattheendsofyoursentencesandtousecommas?

When asking a question, the burden of clarity rests with the person doing the asking. It is really asking too much to force the person contemplating the question to first have to parse your word-stream into sensibility.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smtp Problems on a localhost teddyk ASP.NET 2.0 Basics 1 November 4th, 2008 11:22 AM
Calling activeX from c# jinohere Beginning VB 6 1 August 29th, 2006 10:39 AM
localhost problems sdfharkin BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 October 26th, 2004 07:27 PM
Calling an ActiveX.EXE in C++ xgbnow Visual C++ 4 March 31st, 2004 08:12 AM
Calling an ActiveX.EXE in C++ xgbnow Pro VB 6 13 February 20th, 2004 12:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.