Fail to generate proxy .cs file using WSDL tool

V

Vladimir

I am hosting remoting object under IIS. When I try to
generate proxy *.cs using WSDL.exe tool it fails. (see
error message below).
I suspect this happens because my Remoting Object inherits
from an interface that is defined in different dll.
Here is the code:
Interface dll - TestInterfaces.dll
namespace TestInterfaces
{
public enum MyId
{
One,
Two
}
public interface MyInterface
{
MyId GetId();
}
}

My remote object - TestInterfaceRemObj.dll
using System;
using System.Runtime.Remoting;
using TestInterfaces;

namespace TestInterfaceRemObj
{
public class MyRemObj : System.MarshalByRefObject,
MyInterface
{
public MyRemObj(){}
public TestInterfaces.MyId GetId()
{
return TestInterfaces.MyId.One;
}

}
}

Part of web config:
<system.runtime.remoting>
<application>
<service>
<wellknown
type="TestInterfaceRemObj.MyRemObj,
TestInterfaceRemObj"
mode="Singleton"
objectUri="MyRemObj.rem"
/>
</service>
<channels>
<channel ref="http"/>
</channels>
</application>
</system.runtime.remoting>

WSDL Error message:
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.0.3705.0]
Copyright (C) Microsoft Corporation 1998-2001. All rights
reserved.

Error: Cannot find definition for
http://schemas.microsoft.com/clr/nsassem/TestI
nterfaces/TestInterfaces%2C%20Version%3D1.0.1354.23011%2C%
20Culture%3Dneutral%2C
%20PublicKeyToken%3Dnull:MyInterfacePortType. Service
Description with namespac
e
http://schemas.microsoft.com/clr/nsassem/TestInterfaces/Tes
tInterfaces%2C%20Ve
rsion%3D1.0.1354.23011%2C%20Culture%3Dneutral%2C%
20PublicKeyToken%3Dnull is miss
ing.
Parameter name: name

I would appreciate any help,
Vladimir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top