Re: Re: System.IO.FileNotFoundException error after splitting one dll into two

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Elena Kharitidi (elenak_at_online.microsoft.com)
Date: 09/01/04


Date: Wed, 01 Sep 2004 19:25:41 GMT

there are a couple of reasons for the exception

1. the account that user code runs under does not have enough permissions
to read and write to the process temp directory: The XmlSerializer
generates and compiles code on the fly to do serialization and
deserialization. It uses CodeDom to do the compilation and a side effect
of code dom compilation is the use of temporary files on disk (at least for
c#). Whatever user the process is running as must have full access to
that dir. On the server-side this means that the asp.net worker process
account must have access (unless you’re doing impersonation, in which case
the impersonated user must have access).

2. there are compile errors in the XmlSerializer generated code

to see tht detail output (errors generated by the compiler) you need to add
a switch to the machine.config to keep compiler generated files:

    <system.diagnostics>
         <switches>
            <add name="XmlSerialization.Compilation" value="4"/>
         </switches>
    </system.diagnostics>

now take a look at the %temp% (%windows%\temp on the server side) dir it
should have the _tmpname.00.cs, _tmpname.out and _tmpname.err files, the
cs file is the generated source, the *.out and the *.err files will have
details.

 



Relevant Pages

  • Re: Ultimate compilation
    ... Rick ... >> There is a 4-CD compilation, with the promise of a fifth, already posted ... You do have an account there, ... Prev by Date: ...
    (rec.music.artists.springsteen)
  • Re: Tombstone Bluegrass-Dylan covers
    ... This looks like a great compilation. ... Dime website that they cant get me an account due to too many current ...
    (rec.music.gdead)
  • Re: C: esycledoot.com is not a valid Win32 application
    ... *negims82*: Thank you. ... I created an account to tell you that. ... compilation of 15 steps that were dead on to correct the problem. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Ultimate compilation
    ... You do have an account there, ... >> compilation cd from this tour, including all the one-offs and rarities. ... Prev by Date: ...
    (rec.music.artists.springsteen)