473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

EAServer & ASP.NET

Im trying to call a EAServer (Sybase-Jaguar) component through a ASP.NET
application but i'm getting the following error:

Message: "QueryInterface for interface JaguarTypeLibrary.DIORB failed."
Source: "mscorlib"

if i use the <%@ASPCOMPAT="true" %> directive everthing works fine! but
i'dont want to use ASPCOMPAT because this component will be used from many
users concurrent.

The same code works fine in win32 application!
------------------------------------------------
ASPX Code:

Dim manager As SessionManager.Manager
Dim factory As SessionManager.Factory
Dim session As SessionManager.Session
Dim obj As Object
Dim obj1 As bill.uo_bill 'jaguar package.component

Me.Label1.Text = ""

'ORB Initialization
Dim ORB As New JaguarTypeLibrary.ORB 'new ORB object

Try
ORB.init("") 'initialize the ORB instance <---Erorr!!!
Catch ex As Exception
Me.Label1.Text = ex.Message
Exit Sub
End Try

'Create a manager instance
obj = ORB.string_to_object ("iiop://xxx.xxx.xxx.xx:xxxx")
'protocol://server:port
manager = obj.Narrow_("SessionManager/Manager")

'Create Session
obj = manager.createSession("jagadmin", "xxxx")
'jaguar username, password
session = obj.Narrow_("SessionManager/Session")

'Create stub instances
obj = session.lookup("BILL/uo_bill") 'jaguar
package/component
factory = obj.Narrow_("SessionManager/Factory")
obj1 = factory.create

' Call server object's function
Me.Label1.Text = obj1.test("bill")

obj = Nothing
factory = Nothing
session = Nothing
manager = Nothing
ORB = Nothing

-------------------------------------------------------

Bill
Nov 18 '05 #1
1 1359
Bill,

Is the component an STA component?

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Bill" <b@b.BB>
Subject: EAServer & ASP.NET
Date: Tue, 2 Mar 2004 22:09:18 +0200
Lines: 62
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <eu**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: r10acci-a15-112.acci.gr 195.170.15.112
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:215285
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Im trying to call a EAServer (Sybase-Jaguar) component through a ASP.NET
application but i'm getting the following error:

Message: "QueryInterface for interface JaguarTypeLibrary.DIORB failed."
Source: "mscorlib"

if i use the <%@ASPCOMPAT="true" %> directive everthing works fine! but
i'dont want to use ASPCOMPAT because this component will be used from many
users concurrent.

The same code works fine in win32 application!
------------------------------------------------
ASPX Code:

Dim manager As SessionManager.Manager
Dim factory As SessionManager.Factory
Dim session As SessionManager.Session
Dim obj As Object
Dim obj1 As bill.uo_bill 'jaguar package.component

Me.Label1.Text = ""

'ORB Initialization
Dim ORB As New JaguarTypeLibrary.ORB 'new ORB object

Try
ORB.init("") 'initialize the ORB instance <---Erorr!!!
Catch ex As Exception
Me.Label1.Text = ex.Message
Exit Sub
End Try

'Create a manager instance
obj = ORB.string_to_object ("iiop://xxx.xxx.xxx.xx:xxxx")
'protocol://server:port
manager = obj.Narrow_("SessionManager/Manager")

'Create Session
obj = manager.createSession("jagadmin", "xxxx")
'jaguar username, password
session = obj.Narrow_("SessionManager/Session")

'Create stub instances
obj = session.lookup("BILL/uo_bill") 'jaguar
package/component
factory = obj.Narrow_("SessionManager/Factory")
obj1 = factory.create

' Call server object's function
Me.Label1.Text = obj1.test("bill")

obj = Nothing
factory = Nothing
session = Nothing
manager = Nothing
ORB = Nothing

-------------------------------------------------------

Bill


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.