VB.NET “Unable to get application object”

Public Class Class1

Public Shared Sub Main()
    Dim iAgentClient
    Dim sParamArray As String() = {"", "123"}
    'Dim sParamArray
    Dim iObject
    Dim bReturn

    iObject = CreateObject("Agent.Proxy")
    If Not iObject Is Nothing Then
        iAgentClient = iObject.GetApplication
        If iAgentClient Is Nothing Then
            MsgBox("Can not get Application object")
        End If
        MsgBox("Can not create proxy object")
    End If

    bReturn = iAgentClient.ExecuteScript("Custom_OpenOutboundDialog2", sParamArray)

    If bReturn = True Then
        MsgBox("ExecuteScript() was succeeded.")
        MsgBox("ExecuteScript() was failed.")
        Exit Sub
    End If
End Sub

End Class

When executed to "iAgentClient = iObject.GetApplication" There is an error prompted:

"Unable to get application object"

This error only happened on my customer's PC(WinXP/Win7/Win2008), but not my laptop(WinXP). It seems there is some limitations from the OS level. Can anybody advise?


Need Your Help

Implementing bash shell getops code

linux bash shell debian

I got help to create two seperate pieces of code:

Solr schema.xml and lots of parameters

parameters solr indexing

I'm going to index our products database in solr but I have one doubt. Our products are described by over 1000 parameters, approximately 20 for each. We have 100 000 products. Parameters are differ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.