Re: FileNotFoundException and Proxy constructor
From: Graham Allwood (NoToSpam-graham.allwood_at_eborsolutions.com)
Date: 04/14/04
- Next message: Erik Cruz: "Protocols"
- Previous message: Farm: "Web services access problem"
- In reply to: Graham Allwood: "FileNotFoundException and Proxy constructor"
- Next in thread: Jan Tielens: "Re: FileNotFoundException and Proxy constructor"
- Reply: Jan Tielens: "Re: FileNotFoundException and Proxy constructor"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Apr 2004 13:40:50 +0100
Ok, so I should learn not to post things too early, right? The problem
wasn't the new operator on the property, it was because this property was
read only.
I'am wondering if I should implement ISerializable in order for me to stick
with read only properties. Any comments?
Graham
"Graham Allwood" <NoToSpam-graham.allwood@eborsolutions.com> wrote in
message news:%2311EvpfIEHA.3276@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have been reading several posts where people are getting a
> FileNotFoundException when trying to construct a web service proxy. The
file
> that is reported missing changes everytime.
>
> There has been several different reasons for this in the past including
> permissions to the c:\winnt\temp folder, missing default constructor and
> duplicate enum definitions in the schema. Well, I have another reason for
> this to happen:
>
> I have an assembly that contains all the custom types my services use.
When
> I reference my service in my WinForms app I have to modify the proxy that
is
> generated for me; specifically I have to remove the generated definition
for
> my types and add a USING statement so that it picks up my own type
> definitions. Everything was working fine until I started using a type when
> one of the properties was using the new (C#) operator to hide a property
> definition in a base class. This caused the proxy constructor to fail with
> the about error. Commenting out the property made everything work again.
>
> Can anyone explain this to me? Is it something to do with the
XmlSerializer,
> if so what?
>
> Thanks for any help
>
> Graham Allwood
>
>
- Next message: Erik Cruz: "Protocols"
- Previous message: Farm: "Web services access problem"
- In reply to: Graham Allwood: "FileNotFoundException and Proxy constructor"
- Next in thread: Jan Tielens: "Re: FileNotFoundException and Proxy constructor"
- Reply: Jan Tielens: "Re: FileNotFoundException and Proxy constructor"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|