Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
dll problem on Remoting app
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Fernando Moreno  
View profile   Translate to Translated (View Original)
 More options 7 Dec 2005, 20:08
Newsgroups: microsoft.public.dotnet.framework
From: Fernando Moreno <feru...@community.nospam>
Date: Wed, 7 Dec 2005 12:08:02 -0800
Local: Wed 7 Dec 2005 20:08
Subject: dll problem on Remoting app
Hi,
We have an application which can both run as Local and with remoting, this
app use an external dll (let us call it exapp.dll) and everything is ok when
the app runs Local (not remoting) but in remoting mode I can declare an exapp
object but whe I tried to call method exapp.mymethod() an
NullReferenceException is thrown.
Any clues?
Thank's

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Cheng[MSFT]  
View profile   Translate to Translated (View Original)
 More options 8 Dec 2005, 03:33
Newsgroups: microsoft.public.dotnet.framework
From: stch...@online.microsoft.com (Steven Cheng[MSFT])
Date: Thu, 08 Dec 2005 03:33:36 GMT
Local: Thurs 8 Dec 2005 03:33
Subject: RE: dll problem on Remoting app
Hello Ferunic,

Welcome to MSDN newsgroup.
From your description, you're creating an .net class instance remotely and
when try accessing one of its method you encountred NullReferenceException
,yes?

Based on the error message, the problem seems due to the object instance
not created correctly. I'm wondering what's your actual remoting scenario,
are you creating remote object through cross process remoting(through
tcp/http channel....) or just creating remote object in other appDomain
within same process?  If convenient, I'd suggest you provide some further
descrpition or code snippet on this.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: dll problem on Remoting app
| thread-index: AcX7ae2pIdybQCa5S1SrJFoq7y2L9w==
| X-WBNR-Posting-Host: 217.68.124.30
| From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| Subject: dll problem on Remoting app
| Date: Wed, 7 Dec 2005 12:08:02 -0800
| Lines: 10
| Message-ID: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
|       charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104936
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Hi,
| We have an application which can both run as Local and with remoting,
this
| app use an external dll (let us call it exapp.dll) and everything is ok
when
| the app runs Local (not remoting) but in remoting mode I can declare an
exapp
| object but whe I tried to call method exapp.mymethod() an
| NullReferenceException is thrown.
| Any clues?
| Thank's
|
|  
|


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Moreno  
View profile   Translate to Translated (View Original)
 More options 8 Dec 2005, 09:26
Newsgroups: microsoft.public.dotnet.framework
From: Fernando Moreno <feru...@community.nospam>
Date: Thu, 8 Dec 2005 01:26:01 -0800
Local: Thurs 8 Dec 2005 09:26
Subject: RE: dll problem on Remoting app
Hi, and Thank's for your help.
I will try to explain me.
We have a Windows Application solution (MyApp from now) with many class
libraries and one of them libraries reference to an external dll (PBdll)
(developed on PowerBuilder) running this application as a Local application
works fine, we also have a Windows Service App with all the same libraries
(including the one who use PBDll).
Finally in our config file for MyApp we have an option to decide if app will
be Local or Remoting, if remoting the application creates objects through
tcp/http channel)

Everything works fine here but the methods on PBdll class (not the object
itself, It's create without error I guess)
I don't know if is more clear for you now...
Which code do you think could help you to understand more??

Anyway properties for the PBdll reference:
Copy Local true
Culture 0
Description A description
Identity {98989898...}\1.0\0\tlbimp  
Path C:\VSS\Work\Source\Varsling\obj\Interop.net_fravsjekk.dll
Runtime Version
Strong Name true
Type ActiveX
Version 1.0


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Cheng[MSFT]  
View profile   Translate to Translated (View Original)
 More options 9 Dec 2005, 05:11
Newsgroups: microsoft.public.dotnet.framework
From: stch...@online.microsoft.com (Steven Cheng[MSFT])
Date: Fri, 09 Dec 2005 05:11:41 GMT
Local: Fri 9 Dec 2005 05:11
Subject: RE: dll problem on Remoting app
Thanks for your response ferunic,

So I've got the further background of your application. I assume that when
the object is created as remote object (hosting application), it is created
as  SAO(server activated ..), and the consumer app use Activator.GetObject
to retrieve that proxy reference, yes?

As for SAO, when we use GetObject or the class constructor to create the
object, the remote object is not actually created or referenced, in other
word, the client consumer has not communicated with the hosting server
object yet. The communiation to the remoting server won't happen until the
first time we call a remote method of the remote object(through client
proxy...).  So you can check if the exception occurs everytime your client
application try invoking a remote method on a remote object's proxy.....  
If so, we need to recheck the remote object's registering and client app's
configuration.....

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: dll problem on Remoting app
| thread-index: AcX72We3OR1jTEBORjuOYI7ced6+hA==
| X-WBNR-Posting-Host: 217.68.124.30
| From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| References:  <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
<Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: dll problem on Remoting app
| Date: Thu, 8 Dec 2005 01:26:01 -0800
| Lines: 97
| Message-ID: <967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
|       charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104975
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Hi, and Thank's for your help.
| I will try to explain me.
| We have a Windows Application solution (MyApp from now) with many class
| libraries and one of them libraries reference to an external dll (PBdll)
| (developed on PowerBuilder) running this application as a Local
application
| works fine, we also have a Windows Service App with all the same
libraries
| (including the one who use PBDll).
| Finally in our config file for MyApp we have an option to decide if app
will
| be Local or Remoting, if remoting the application creates objects through
| tcp/http channel)
|
| Everything works fine here but the methods on PBdll class (not the object
| itself, It's create without error I guess)
| I don't know if is more clear for you now...
| Which code do you think could help you to understand more??
|
|
| Anyway properties for the PBdll reference:
| Copy Local true
| Culture 0
| Description A description
| Identity {98989898...}\1.0\0\tlbimp  
| Path C:\VSS\Work\Source\Varsling\obj\Interop.net_fravsjekk.dll
| Runtime Version
| Strong Name true
| Type ActiveX
| Version 1.0
|
|
|

| "Steven Cheng[MSFT]" wrote:

|
| > Hello Ferunic,
| >
| > Welcome to MSDN newsgroup.
| > From your description, you're creating an .net class instance remotely
and
| > when try accessing one of its method you encountred
NullReferenceException
| > ,yes?
| >
| > Based on the error message, the problem seems due to the object
instance
| > not created correctly. I'm wondering what's your actual remoting
scenario,
| > are you creating remote object through cross process remoting(through
| > tcp/http channel....) or just creating remote object in other appDomain
| > within same process?  If convenient, I'd suggest you provide some
further
| > descrpition or code snippet on this.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | Thread-Topic: dll problem on Remoting app
| > | thread-index: AcX7ae2pIdybQCa5S1SrJFoq7y2L9w==
| > | X-WBNR-Posting-Host: 217.68.124.30
| > | From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| > | Subject: dll problem on Remoting app
| > | Date: Wed, 7 Dec 2005 12:08:02 -0800
| > | Lines: 10
| > | Message-ID: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > |        charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104936
| > | X-Tomcat-NG: microsoft.public.dotnet.framework
| > |
| > | Hi,
| > | We have an application which can both run as Local and with remoting,
| > this
| > | app use an external dll (let us call it exapp.dll) and everything is
ok
| > when
| > | the app runs Local (not remoting) but in remoting mode I can declare
an
| > exapp
| > | object but whe I tried to call method exapp.mymethod() an
| > | NullReferenceException is thrown.
| > | Any clues?
| > | Thank's
| > |
| > |  
| > |
| >
| >
|

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Cheng[MSFT]  
View profile   Translate to Translated (View Original)
 More options 13 Dec 2005, 13:48
Newsgroups: microsoft.public.dotnet.framework
From: stch...@online.microsoft.com (Steven Cheng[MSFT])
Date: Tue, 13 Dec 2005 13:48:09 GMT
Local: Tues 13 Dec 2005 13:48
Subject: RE: dll problem on Remoting app
Hi Ferunic,

Any progress on this? If there're anything else we can help ,please feel
free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 89970365
| References: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
<Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
<967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: stch...@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Fri, 09 Dec 2005 05:11:41 GMT
| Subject: RE: dll problem on Remoting app
| X-Tomcat-NG: microsoft.public.dotnet.framework
| Message-ID: <#uGFQ8H$FHA....@TK2MSFTNGXA02.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework
| Lines: 146      
| Path: TK2MSFTNGXA02.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:105024
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Thanks for your response ferunic,
|
| So I've got the further background of your application. I assume that
when
| the object is created as remote object (hosting application), it is
created
| as  SAO(server activated ..), and the consumer app use
Activator.GetObject
| to retrieve that proxy reference, yes?
|
| As for SAO, when we use GetObject or the class constructor to create the
| object, the remote object is not actually created or referenced, in other
| word, the client consumer has not communicated with the hosting server
| object yet. The communiation to the remoting server won't happen until
the
| first time we call a remote method of the remote object(through client
| proxy...).  So you can check if the exception occurs everytime your
client
| application try invoking a remote method on a remote object's proxy.....  

| If so, we need to recheck the remote object's registering and client
app's
| configuration.....
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | Thread-Topic: dll problem on Remoting app
| | thread-index: AcX72We3OR1jTEBORjuOYI7ced6+hA==
| | X-WBNR-Posting-Host: 217.68.124.30
| | From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| | References:  <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| <Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
| | Subject: RE: dll problem on Remoting app
| | Date: Thu, 8 Dec 2005 01:26:01 -0800
| | Lines: 97
| | Message-ID: <967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| |     charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | Newsgroups: microsoft.public.dotnet.framework
| | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104975
| | X-Tomcat-NG: microsoft.public.dotnet.framework
| |
| | Hi, and Thank's for your help.
| | I will try to explain me.
| | We have a Windows Application solution (MyApp from now) with many class
| | libraries and one of them libraries reference to an external dll
(PBdll)
| | (developed on PowerBuilder) running this application as a Local
| application
| | works fine, we also have a Windows Service App with all the same
| libraries
| | (including the one who use PBDll).
| | Finally in our config file for MyApp we have an option to decide if app
| will
| | be Local or Remoting, if remoting the application creates objects
through
| | tcp/http channel)
| |
| | Everything works fine here but the methods on PBdll class (not the
object
| | itself, It's create without error I guess)
| | I don't know if is more clear for you now...
| | Which code do you think could help you to understand more??
| |
| |
| | Anyway properties for the PBdll reference:
| | Copy Local true
| | Culture 0
| | Description A description
| | Identity {98989898...}\1.0\0\tlbimp  
| | Path C:\VSS\Work\Source\Varsling\obj\Interop.net_fravsjekk.dll
| | Runtime Version
| | Strong Name true
| | Type ActiveX
| | Version 1.0
| |
| |
| |
| | "Steven Cheng[MSFT]" wrote:
| |
| | > Hello Ferunic,
| | >
| | > Welcome to MSDN newsgroup.
| | > From your description, you're creating an .net class instance
remotely
| and
| | > when try accessing one of its method you encountred
| NullReferenceException
| | > ,yes?
| | >
| | > Based on the error message, the problem seems due to the object
| instance
| | > not created correctly. I'm wondering what's your actual remoting
| scenario,
| | > are you creating remote object through cross process remoting(through
| | > tcp/http channel....) or just creating remote object in other
appDomain
| | > within same process?  If convenient, I'd suggest you provide some
| further
| | > descrpition or code snippet on this.
| | >
| | > Regards,
| | >
| | > Steven Cheng
| | > Microsoft Online Support
| | >
| | > Get Secure! www.microsoft.com/security
| | > (This posting is provided "AS IS", with no warranties, and confers no
| | > rights.)
| | >
| | >
| | >
| | > --------------------
| | > | Thread-Topic: dll problem on Remoting app
| | > | thread-index: AcX7ae2pIdybQCa5S1SrJFoq7y2L9w==
| | > | X-WBNR-Posting-Host: 217.68.124.30
| | > | From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| | > | Subject: dll problem on Remoting app
| | > | Date: Wed, 7 Dec 2005 12:08:02 -0800
| | > | Lines: 10
| | > | Message-ID: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| | > | MIME-Version: 1.0
| | > | Content-Type: text/plain;
| | > |      charset="Utf-8"
| | > | Content-Transfer-Encoding: 7bit
| | > | X-Newsreader: Microsoft CDO for Windows 2000
| | > | Content-Class: urn:content-classes:message
| | > | Importance: normal
| | > | Priority: normal
| | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | > | Newsgroups: microsoft.public.dotnet.framework
| | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104936
| | > | X-Tomcat-NG: microsoft.public.dotnet.framework
| | > |
| | > | Hi,
| | > | We have an application which can both run as Local and with
remoting,
| | > this
| | > | app use an external dll (let us call it exapp.dll) and everything
is
| ok
| | > when
| | > | the app runs Local (not remoting) but in remoting mode I can
declare
| an
| | > exapp
| | > | object but whe I tried to call method exapp.mymethod() an
| | > | NullReferenceException is thrown.
| | > | Any clues?
| | > | Thank's
| | > |
| | > |  
| | > |
| | >
| | >
| |
|
|


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Moreno  
View profile   Translate to Translated (View Original)
 More options 14 Dec 2005, 15:26
Newsgroups: microsoft.public.dotnet.framework
From: Fernando Moreno <feru...@community.nospam>
Date: Wed, 14 Dec 2005 07:26:03 -0800
Local: Wed 14 Dec 2005 15:26
Subject: RE: dll problem on Remoting app
Hi Steven.
first at all thanks for your time :)
I'm it took so long but I was trying to find out what was wrong and it takes
a litle bit time to test everything.
My status is as follows:
We find out at when we register a PB.dll version 1.0  and uses this in our
app it fails.
When we register a PB.dll version 1.1  and uses this in our app it fails.
When we register a PB.dll version 1.0  and uses this in our app and then we
copy over the file the 1.1 Version It works.
When we register a PB.dll version 1.1  and uses this in our app and then we
copy over the file the 1.0 Version It fails.

Any clue??
I'm very lost here.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Cheng[MSFT]  
View profile   Translate to Translated (View Original)
 More options 19 Dec 2005, 14:05
Newsgroups: microsoft.public.dotnet.framework
From: stch...@online.microsoft.com (Steven Cheng[MSFT])
Date: Mon, 19 Dec 2005 14:05:39 GMT
Local: Mon 19 Dec 2005 14:05
Subject: RE: dll problem on Remoting app
Hi Ferunic,

Seems the symptom is a bit complex according to the test condition you
mentioned. I think we should first make sure the shared code which will be
used as remoting objects contains only managed code, no COM interop code...
 If there is COM interop code, we need to wrapper them with .net code and
make those .net code remotable...  
Also, you can use some simple remotable objects and  create them (like the
PBdll objects) in your application to see whether you can call them
correctly(both locally or remotely...). If that works correctly, the
problem should be component code specific....

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: dll problem on Remoting app
| thread-index: AcYAwrHWPKq0HlP7SputoYWXquHcAg==
| X-WBNR-Posting-Host: 217.68.124.30
| From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| References:  <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
<Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
<967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
<#uGFQ8H$FHA....@TK2MSFTNGXA02.phx.gbl>
<xjyZev#$FHA.1...@TK2MSFTNGXA02.phx.gbl>
| Subject: RE: dll problem on Remoting app
| Date: Wed, 14 Dec 2005 07:26:03 -0800
| Lines: 235
| Message-ID: <7E2A1AFB-742D-4E65-AEA6-DA21DBEC0...@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
|       charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:105276
| X-Tomcat-NG: microsoft.public.dotnet.framework
|
| Hi Steven.
| first at all thanks for your time :)
| I'm it took so long but I was trying to find out what was wrong and it
takes
| a litle bit time to test everything.
| My status is as follows:
| We find out at when we register a PB.dll version 1.0  and uses this in
our
| app it fails.
| When we register a PB.dll version 1.1  and uses this in our app it fails.
| When we register a PB.dll version 1.0  and uses this in our app and then
we
| copy over the file the 1.1 Version It works.
| When we register a PB.dll version 1.1  and uses this in our app and then
we
| copy over the file the 1.0 Version It fails.
|
| Any clue??
| I'm very lost here.
|
|
|
|
|

| "Steven Cheng[MSFT]" wrote:

|
| > Hi Ferunic,
| >
| > Any progress on this? If there're anything else we can help ,please
feel
| > free to post here.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | X-Tomcat-ID: 89970365
| > | References: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| > <Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
| > <967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: stch...@online.microsoft.com (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Fri, 09 Dec 2005 05:11:41 GMT
| > | Subject: RE: dll problem on Remoting app
| > | X-Tomcat-NG: microsoft.public.dotnet.framework
| > | Message-ID: <#uGFQ8H$FHA....@TK2MSFTNGXA02.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework
| > | Lines: 146      
| > | Path: TK2MSFTNGXA02.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:105024
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Thanks for your response ferunic,
| > |
| > | So I've got the further background of your application. I assume that
| > when
| > | the object is created as remote object (hosting application), it is
| > created
| > | as  SAO(server activated ..), and the consumer app use
| > Activator.GetObject
| > | to retrieve that proxy reference, yes?
| > |
| > | As for SAO, when we use GetObject or the class constructor to create
the
| > | object, the remote object is not actually created or referenced, in
other
| > | word, the client consumer has not communicated with the hosting
server
| > | object yet. The communiation to the remoting server won't happen
until
| > the
| > | first time we call a remote method of the remote object(through
client
| > | proxy...).  So you can check if the exception occurs everytime your
| > client
| > | application try invoking a remote method on a remote object's
proxy.....  
| >  
| > | If so, we need to recheck the remote object's registering and client
| > app's
| > | configuration.....
| > |
| > | Thanks,
| > |
| > | Steven Cheng
| > | Microsoft Online Support
| > |
| > | Get Secure! www.microsoft.com/security
| > | (This posting is provided "AS IS", with no warranties, and confers no
| > | rights.)
| > |
| > |
| > | --------------------
| > | | Thread-Topic: dll problem on Remoting app
| > | | thread-index: AcX72We3OR1jTEBORjuOYI7ced6+hA==
| > | | X-WBNR-Posting-Host: 217.68.124.30
| > | | From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?= <feru...@community.nospam>
| > | | References:  <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| > | <Cr4c9g6#FHA....@TK2MSFTNGXA02.phx.gbl>
| > | | Subject: RE: dll problem on Remoting app
| > | | Date: Thu, 8 Dec 2005 01:26:01 -0800
| > | | Lines: 97
| > | | Message-ID: <967062EC-D3C1-4CCC-BAEA-8997BDAE1...@microsoft.com>
| > | | MIME-Version: 1.0
| > | | Content-Type: text/plain;
| > | |      charset="Utf-8"
| > | | Content-Transfer-Encoding: 7bit
| > | | X-Newsreader: Microsoft CDO for Windows 2000
| > | | Content-Class: urn:content-classes:message
| > | | Importance: normal
| > | | Priority: normal
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | | Newsgroups: microsoft.public.dotnet.framework
| > | | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework:104975
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework
| > | |
| > | | Hi, and Thank's for your help.
| > | | I will try to explain me.
| > | | We have a Windows Application solution (MyApp from now) with many
class
| > | | libraries and one of them libraries reference to an external dll
| > (PBdll)
| > | | (developed on PowerBuilder) running this application as a Local
| > | application
| > | | works fine, we also have a Windows Service App with all the same
| > | libraries
| > | | (including the one who use PBDll).
| > | | Finally in our config file for MyApp we have an option to decide if
app
| > | will
| > | | be Local or Remoting, if remoting the application creates objects
| > through
| > | | tcp/http channel)
| > | |
| > | | Everything works fine here but the methods on PBdll class (not the
| > object
| > | | itself, It's create without error I guess)
| > | | I don't know if is more clear for you now...
| > | | Which code do you think could help you to understand more??
| > | |
| > | |
| > | | Anyway properties for the PBdll reference:
| > | | Copy Local true
| > | | Culture 0
| > | | Description A description
| > | | Identity {98989898...}\1.0\0\tlbimp  
| > | | Path C:\VSS\Work\Source\Varsling\obj\Interop.net_fravsjekk.dll
| > | | Runtime Version
| > | | Strong Name true
| > | | Type ActiveX
| > | | Version 1.0
| > | |
| > | |
| > | |
| > | | "Steven Cheng[MSFT]" wrote:
| > | |
| > | | > Hello Ferunic,
| > | | >
| > | | > Welcome to MSDN newsgroup.
| > | | > From your description, you're creating an .net class instance
| > remotely
| > | and
| > | | > when try accessing one of its method you encountred
| > | NullReferenceException
| > | | > ,yes?
| > | | >
| > | | > Based on the error message, the problem seems due to the object
| > | instance
| > | | > not created correctly. I'm wondering what's your actual remoting
| > | scenario,
| > | | > are you creating remote object through cross process
remoting(through
| > | | > tcp/http channel....) or just creating remote object in other
| > appDomain
| > | | > within same process?  If convenient, I'd suggest you provide some
| > | further
| > | | > descrpition or code snippet on this.
| > | | >
| > | | > Regards,
| > | | >
| > | | > Steven Cheng
| > | | > Microsoft Online Support
| > | | >
| > | | > Get Secure! www.microsoft.com/security
| > | | > (This posting is provided "AS IS", with no warranties, and
confers no
| > | | > rights.)
| > | | >
| > | | >
| > | | >
| > | | > --------------------
| > | | > | Thread-Topic: dll problem on Remoting app
| > | | > | thread-index: AcX7ae2pIdybQCa5S1SrJFoq7y2L9w==
| > | | > | X-WBNR-Posting-Host: 217.68.124.30
| > | | > | From: =?Utf-8?B?RmVybmFuZG8gTW9yZW5v?=
<feru...@community.nospam>
| > | | > | Subject: dll problem on Remoting app
| > | | > | Date: Wed, 7 Dec 2005 12:08:02 -0800
| > | | > | Lines: 10
| > | | > | Message-ID: <1715F53E-E072-42DF-B8CB-1E16ECF2F...@microsoft.com>
| > | | > | MIME-Version: 1.0
| > | | > | Content-Type: text/plain;
| > | | > |       charset="Utf-8"
| > | | > | Content-Transfer-Encoding: 7bit
| > | | > | X-Newsreader: Microsoft CDO for Windows 2000
| > | | > | Content-Class: urn:content-classes:message
| > | | > | Importance: normal
| > | | > | Priority: normal
| > | | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | | > | Newsgroups: microsoft.public.dotnet.framework
| > | | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | | > | Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework:104936
| > | | > | X-Tomcat-NG:
...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google