-
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 ?
-
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).
-
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 ?
-
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