com >> Add a new function in server side,then the old client can not work?

by Huangzd » Thu, 20 Oct 2005 18:04:05 GMT

In the Server side code,there has 2 classes, A and B. and B implements
A.After compile the project,VB generates 2 interfaces _A and _B, 2 classes A
and B,and the A class supports the _A interface,and B class supports _A and
_B interface.
Now i add a new function in class A. And recompile it use binary
compatibility property,then the interface _A has changed it's GUID,and the
compiler generates a more interface _A___V0 which GUID equals the origin
interface _A,so now the compiler generates 3 interfaces _A,_A___V0 and _B,2
classes A and B,and A supports _A and _A___V0 interfaces,and B supports _A
and _B interfaces.

The client side code is below
Dim o as A
Set o=new B
compile the client side code and generate client.exe.

Before change the server side code,the client.exe work correctly,but after
add the new function, the client.exe can not work because of the class B
don't support the _A___V0 interface.

My question:
After recompile the server side code, Why does the class B not support the
_A___V0 interface?





com >> Add a new function in server side,then the old client can not work?

by Huangzd » Thu, 20 Oct 2005 18:04:05 GMT


In the Server side code,there has 2 classes, A and B. and B implements
A.After compile the project,VB generates 2 interfaces _A and _B, 2 classes A
and B,and the A class supports the _A interface,and B class supports _A and
_B interface.
Now i add a new function in class A. And recompile it use binary
compatibility property,then the interface _A has changed it's GUID,and the
compiler generates a more interface _A___V0 which GUID equals the origin
interface _A,so now the compiler generates 3 interfaces _A,_A___V0 and _B,2
classes A and B,and A supports _A and _A___V0 interfaces,and B supports _A
and _B interfaces.

The client side code is below
Dim o as A
Set o=new B
compile the client side code and generate client.exe.

Before change the server side code,the client.exe work correctly,but after
add the new function, the client.exe can not work because of the class B
don't support the _A___V0 interface.

My question:
After recompile the server side code, Why does the class B not support the
_A___V0 interface?






Similar Threads

1. Add a new function in server side,the the old client can not work?

In the Server side code,there has 2 classes, A and B. and B implements
A.After compile the project,VB generates 2 interfaces _A and _B, 2 classes A
and B,and the A class supports the _A interface,and B class supports _A and
_B interface.
Now i add a new function in class A. And recompile it use binary
compatibility property,then the interface _A has changed it's GUID,and the
compiler generates a more interface _A___V0 which GUID equals the origin
interface _A,so now the compiler generates 3 interfaces _A,_A___V0 and _B,2
classes A and B,and A supports _A and _A___V0 interfaces,and B supports _A
and _B interfaces.

The client side code is below
Dim o as A
Set o=new B
compile the client side code and generate client.exe.

Before change the server side code,the client.exe work correctly,but after
add the new function, the client.exe can not work because of the class B
don't support the _A___V0 interface.

My question:
After recompile the server side code, Why does the class B not support the
_A___V0 interface?


2. calling a server-side jscript function from a client side jscript function

3. I want to call a function in server side from the client side

Hi,
Am having 2 dropdowns in a grid. Based on the value selected in one grid the 
value in the other grid will get populated. Each and every selected index 
change event of the first grid the page gets submitted and populates the 
second grid. Can I do it by calling  the same function written in the server 
side from the client side, but without submitting the page. If possible can 
anyone help me in this regards.
Thanks in advance,
N.Ramakrishnan

4. How to call server-side function from client-side

5. Adding new methods and properties in my class, what about old client

Hi everyone,

I add some new functionality in one of my component like new methods and
properties.

If I install it in the GAC without changing my version number in my
assemblyinfo, does my old client will
continue to work with it without problem?


6. How to call a client-side vbscript from server-side button - Asp.Net

7. Read client side value from server side in VB.NEt

I have a vb.net application where I have a client side html input:
<td><input name="CurrentUserStatus" type="text" id="UserStatus" /></
td>

Is there anyway I can acces the value of this control from server side
inside my vb.net code? (please note I don't want to have runat=server
for the input control)

8. server-side vbscript call with javascript client-side - ASP