Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design Question Pin
Colin Angus Mackay16-Jun-04 5:42
Colin Angus Mackay16-Jun-04 5:42 
GeneralRe: Design Question Pin
matthias s.16-Jun-04 5:49
matthias s.16-Jun-04 5:49 
GeneralRe: Design Question Pin
Colin Angus Mackay16-Jun-04 6:07
Colin Angus Mackay16-Jun-04 6:07 
GeneralRe: Design Question Pin
matthias s.16-Jun-04 6:22
matthias s.16-Jun-04 6:22 
GeneralRe: Design Question Pin
Steven Campbell16-Jun-04 6:18
Steven Campbell16-Jun-04 6:18 
GeneralRe: Design Question Pin
Serge Lobko-Lobanovsky16-Jun-04 6:26
Serge Lobko-Lobanovsky16-Jun-04 6:26 
GeneralRe: Design Question Pin
Colin Angus Mackay16-Jun-04 6:31
Colin Angus Mackay16-Jun-04 6:31 
Generalpreserving same type information Pin
avneeshb16-Jun-04 5:19
avneeshb16-Jun-04 5:19 
Hi!

I am having an interesting problem while compiling code across different projects in the same VS.NET solution. Here is the scenario:

1. I have a project (called DataTypes) which defines common classes that I want to use throughout.
2. There is a webservice (WSA) which has a method which accepts two objects:
MethodA(DataTypes.Type1 objType1, DataTypes.Type2 objType2)
3. This webservice also calls another webservice (WSB) from MethodA. The method in WSB has the following signature: MethodB(DataTypes.Type1 objType1, DataTypes.Type2 objType2). In the WSA project there is a web reference to WSB (lets call it refB).
So this looks like:

MethodA(DataTypes.Type1 objType1, DataTypes.Type2 objType2){

objType1.somefield=new_value;
refB.MethodB(objType1, objType2);
}

When the client invokes WSA it passes the objects. MethodA modifies one of the parameters and passes these to WSB.

4. This code gives me a compilation error. The error message is "Cannot convert DataTypes.Type1 to refb.Type1". Understandably, the type information in the generated proxy for WSB refers to its interpretation of what Type1 is. Even though its the same as that in WSA.

Any suggestions on how I can solve this problem?

Thanks!
GeneralRe: preserving same type information Pin
Serge Lobko-Lobanovsky16-Jun-04 6:54
Serge Lobko-Lobanovsky16-Jun-04 6:54 
GeneralRe: preserving same type information Pin
avneeshb16-Jun-04 8:50
avneeshb16-Jun-04 8:50 
GeneralProject references! Pin
goldoche16-Jun-04 5:15
goldoche16-Jun-04 5:15 
GeneralRe: Project references! Pin
goldoche16-Jun-04 5:37
goldoche16-Jun-04 5:37 
GeneralCustom control Pin
liko16-Jun-04 5:15
liko16-Jun-04 5:15 
GeneralRe: Custom control Pin
Stefan Troschuetz16-Jun-04 5:24
Stefan Troschuetz16-Jun-04 5:24 
GeneralRe: Custom control Pin
liko16-Jun-04 23:24
liko16-Jun-04 23:24 
GeneralRe: Custom control Pin
Stefan Troschuetz16-Jun-04 23:42
Stefan Troschuetz16-Jun-04 23:42 
GeneralRe: Custom control Pin
liko17-Jun-04 4:55
liko17-Jun-04 4:55 
GeneralRe: Design Question Pin
Colin Angus Mackay16-Jun-04 5:15
Colin Angus Mackay16-Jun-04 5:15 
GeneralRe: Design Question Pin
Dave Kreskowiak16-Jun-04 5:27
mveDave Kreskowiak16-Jun-04 5:27 
GeneralFlicker Free RichTextBox Pin
Peter Vertes16-Jun-04 4:32
Peter Vertes16-Jun-04 4:32 
GeneralRe: Flicker Free RichTextBox Pin
Stefan Troschuetz16-Jun-04 5:04
Stefan Troschuetz16-Jun-04 5:04 
GeneralRe: Flicker Free RichTextBox Pin
leppie16-Jun-04 7:06
leppie16-Jun-04 7:06 
GeneralGetting Icon Name from notifyIcon1 Pin
cbmdk16-Jun-04 3:31
cbmdk16-Jun-04 3:31 
GeneralRe: Getting Icon Name from notifyIcon1 Pin
Dave Kreskowiak16-Jun-04 4:21
mveDave Kreskowiak16-Jun-04 4:21 
GeneralRe: Getting Icon Name from notifyIcon1 Pin
Mike Dimmick16-Jun-04 4:25
Mike Dimmick16-Jun-04 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.