Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:11 PM.


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