Unable to generate a temporary class (result=1). error CS2001

Traitée Unable to generate a temporary class (result=1). error CS2001

  • vendredi 27 juillet 2012 04:28
     
     

    Dear friends,

    I've a wcf service that has been hosted on IIS and provides wshttpbinding for its only endpoint. The service has been consumed by sharing the interface with the client web application and initiating communication with the service by use of ChannelFactory<TChannel>, therefore creating a channel.

    It was working fine, however recently I added a Boolean parameter to the service's method and the interface and shared the interface. The client application now invokes this method multiple time in asynchronous calls using delegates. However it started throwing the following exception

    "Unable to generate a temporary class (result=1).
    error CS2001: Source file 'C:\Windows\TEMP\4lsigfga.0.cs' could not be found
    error CS2008: No inputs specified"

    I'd be grateful if any of you can point me to the exact cause of this and any remedies (which as per my understanding is that since it generates a proxy class for consuming the service at run time but fails to do so)


    Best Regards
    solidroots

Toutes les réponses

  • mardi 31 juillet 2012 09:38
    Modérateur
     
     

    Hi,

    Have you tried clear the temporary file, re-complie the client application to fix this issue?

    Also, can you upload a sample project to SkyDrive, it will be convenient for us to reproduce this issue. Thanks.


    Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • mardi 31 juillet 2012 10:02
     
     Traitée
    You need to give write permission to TEMP dir. dont remember the exact cause though but yeah have seen such a problem.