471,344 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 software developers and data experts.

CompileAssemblyFromDom problem

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.
Jul 21 '05 #1
3 2265
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" <so*****@nospam.com> wrote in message
news:eO**************@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.

Jul 21 '05 #2
I'm a bit surprised that no exception was generated. Perhaps there's a
try catch somewhere that swallows the error up!

Jul 21 '05 #3
No, there was not. I am 100% sure. In fact, there was code immediately after
the call to this method that checked for the existance of the file (which
returned False in this scenario). The method executed completely and with no
error.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I'm a bit surprised that no exception was generated. Perhaps there's a
try catch somewhere that swallows the error up!

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bruce Davis | last post: by
11 posts views Thread by Kostatus | last post: by
117 posts views Thread by Peter Olcott | last post: by
28 posts views Thread by Jon Davis | last post: by
6 posts views Thread by Ammar | last post: by
3 posts views Thread by Marina | last post: by
2 posts views Thread by Mike Collins | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.