Compile proxy for 1.1

Discussion in 'ASP .Net Web Services' started by jlfraser@infotech.monash.edu.au, Sep 15, 2006.

  1. Guest

    I have both 1.1 and 2.0 Frameworks installed and would like to compile
    a web service proxy for use on a machine running 1.1 using a command
    line interface, ie not Visual Studio. I can create the .cs file with no
    problems, using the V1.1 wsdl.exe, but when I try to compile the .cs
    file to a .dll, the V1.1 compiler seems to automatically reference the
    mscorlib.dll file in the 2.0 Framework folder. Is there a way that I
    can specify that I want it to reference the mscorlib.dll in the 1.1
    Framework?

    The command I'm trying to run to create the proxy is this:

    csc.exe /out:ISBNProxy.dll /t:library
    /r:system.web.dll,system.dll,system.xml.dll,system.web.services.dll,system.data.dll
    ISBNProxy.cs

    and I get errors along the lines of

    v2.0.50727\mscorlib.dll: error CS0011:
    Reference class 'string' has a base class or interface defined in an
    assembly that is not reference. You must add a reference to assembly.

    This works fine when I run it on a machine with only 1.1 installed, but
    I'd like the flexibility to be able to compile for either version -
    without using VS.
    , Sep 15, 2006
    #1
    1. Advertising

  2. <> wrote in message
    news:...
    >I have both 1.1 and 2.0 Frameworks installed and would like to compile
    > a web service proxy for use on a machine running 1.1 using a command
    > line interface, ie not Visual Studio. I can create the .cs file with no
    > problems, using the V1.1 wsdl.exe, but when I try to compile the .cs
    > file to a .dll, the V1.1 compiler seems to automatically reference the
    > mscorlib.dll file in the 2.0 Framework folder. Is there a way that I
    > can specify that I want it to reference the mscorlib.dll in the 1.1
    > Framework?
    >
    > The command I'm trying to run to create the proxy is this:
    >
    > csc.exe /out:ISBNProxy.dll /t:library
    > /r:system.web.dll,system.dll,system.xml.dll,system.web.services.dll,system.data.dll
    > ISBNProxy.cs
    >
    > and I get errors along the lines of
    >
    > v2.0.50727\mscorlib.dll: error CS0011:
    > Reference class 'string' has a base class or interface defined in an
    > assembly that is not reference. You must add a reference to assembly.
    >
    > This works fine when I run it on a machine with only 1.1 installed, but
    > I'd like the flexibility to be able to compile for either version -
    > without using VS.


    Does this happen with an arbitrary .cs file, or only with a proxy?

    John
    John Saunders, Sep 15, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vidy5300
    Replies:
    0
    Views:
    812
    vidy5300
    Jun 7, 2004
  2. Nagaraj
    Replies:
    1
    Views:
    841
    Lionel B
    Mar 1, 2007
  3. Replies:
    0
    Views:
    1,634
  4. Karsten Wutzke
    Replies:
    1
    Views:
    871
    Steven Simpson
    Aug 20, 2007
  5. Klein Stéphane
    Replies:
    3
    Views:
    584
    Steve Holden
    Dec 20, 2009
Loading...

Share This Page