PC Review


Reply
Thread Tools Rate Thread

CompileAssemblyFromDom problem

 
 
Marina
Guest
Posts: n/a
 
      22nd Feb 2005
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.


 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      22nd Feb 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      22nd Feb 2005
I'm a bit surprised that no exception was generated. Perhaps there's a
try catch somewhere that swallows the error up!

 
Reply With Quote
 
Marina
Guest
Posts: n/a
 
      24th Feb 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm a bit surprised that no exception was generated. Perhaps there's a
> try catch somewhere that swallows the error up!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem after problem after problem - winXP wont start! =?Utf-8?B?TWF2aXJpY2s=?= Windows XP Help 2 23rd Apr 2006 02:55 PM
CompileAssemblyFromDom creates referenced dlls =?Utf-8?B?U2ltb24=?= Microsoft Dot NET Framework 0 16th Jun 2004 05:55 AM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Hardware 2 5th Feb 2004 10:22 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Advanced Server 2 5th Feb 2004 10:22 PM
Outlook 2002 connector: problem connecting with Domino server because of NAMELookup2 problem Jean-Paul Smeets Microsoft Outlook 2 26th Sep 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.