Re: CompileAssemblyFromDom problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marina (someone_at_nospam.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 09:46:00 -0500

Turns out this was related to the account not having sufficient permissions
to access the VB compiler.

This sounds like something worthy of an exception? Not just failing silently
without producing the expected result.

"Marina" <someone@nospam.com> wrote in message
news:eORSzXOGFHA.3596@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I am hoping someone has a clue on this. I have code that uses
> CompileAssemblyFromDom to compile a DLL on the fly. Works fine here.
>
> On a client machine however, no DLL is produced, using identical input.
> There are no exceptions, no compile time errors coming back. And no file.
> The code checks for the file's existance immediately afterwards, and it is
> not there. Setting GenerateInMemory to false on the params object and
> setting the OutputAssembly correctly.
>
> Tried giving all sorts of permissions on the folder. Though usually this
> problem would result in an exception - not fail silently.
>
> Anyone have any ideas on why the method would execute with no errors or
> exceptions, but yet not produce a file on this one machine? It's a 2003
> server, if that matters. But like I said, works fine on other 2003 server
> machines as well as my XP development machine.
>



Relevant Pages

  • Re: MI is sloppy
    ... at compile time, for objects whose behavior is then known ... First of all, this is a contract ... it has it's own dedicated exception. ... fix some technically incorrect programs (in manpower, performance, ...
    (comp.lang.ada)
  • Re: capture error - the better way?
    ... This is Perl. ... Yes, runtime and compile ... Recall that the example here was a runtime error causing an exception ...
    (perl.beginners)
  • Re: HLA Stdlib v2.2 is now available.
    ... HLA code. ... Do you really think I post this code when it doesn't compile? ... The exception handling semantics are completely wrong. ...
    (alt.lang.asm)
  • Re: capture error - the better way?
    ... that runtime exception must happen at runtime, ... it is the duty of an optimizer never to change ... compile time only to find a divide by zero exception should write code ... If the optimizer changes program behaviour then you ...
    (perl.beginners)
  • Re: CLR Exceptions not getting handled in try/catch
    ... Have you tried to compile the code on your machine and run it on some other, or compiled it on some other and run it on your? ... Mike Treadway wrote: ... All of my customers and other developers see the typical Unhandled Exception dialog that gives them the option of continuing or exiting. ... When I run the application and perform the UI event that runs the above code, I get the Microsoft Error Reporting dialog that asks me if I want to send the information to microsoft. ...
    (microsoft.public.dotnet.framework)