Results 1 to 4 of 4

Thread: vbc compiler

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    2

    vbc compiler

    I am invoking vbc compiler via my code.

    However I am getting this error :- vbc : error BC31011: Unable to load referenced library X: Access is denied. C:\Core\FinalCode\X.dll : error BC31011: Unable to load referenced library 'C:\Core\FinalCode\X.dll': Access is denied. vbc : Command line error BC2010 : compilation failed : '0xC0000005'

    The same code works when I call the vbc compiler from command-line.

    This problem is only occuring with one dll. All permissions are there on the dlls. Also all dlls are strong-named.

    Can somebody help me ?

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    If you run it from a command line, you say it works ?
    And running from a program fails ?

    That kinda points out that you havent set the path in your program, to be the same place as the command line.
    OR
    The command line you are using (mayb the VS.Net command line?) has paths/variables set automatically (which is the case with the vs.net comand line shortcut).

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2004
    Posts
    2

    re:vbc compiler

    Thanks,

    I have a list of dlls.
    vbc compiler is working well for all of them excepting one. All permissions are set on the dlls. All the dlls are in the same folder.

    Regarding the Path that you are mentioning, I am picking up vbc path from my web.config. The path of the dlls are hard-coded.


    Can you please help ?

  4. #4
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    I only have a vague idea of what your actually doing, but as you can see that if it works from a command line, you need to ensure your program has setup the same environment that the command line uses.
    I dont know what that would be though, nor at a place where I can even look, mayb some1 else can help. Sorry.

    Heres a link I found when searching tho:
    http://www.dotnetboards.com/viewtopic.php?t=5742

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width