DLL file not found in on fly compilation - (help please)

P

pamela fluente

It's 2 days I am struggling on a problem and I can't see the solution.
Please someone help me.

I am doing some on-fly compilation by using:
CompileAssemblyFromSource(CompilerParameters, Code)

This happens within an asp.net 2 application and the code being
compiled
uses functions store into a DLL.

/Bin/MyDLLFIle.dll

The above DLL is normally referenced and always used in the
application and works perfectly fine.

However I have the problem that when I invoke the above on-fly
compilation
I receive an error saying that the MyDLLFIle.dll cannot be found:

Line:0 could not find library MyDLLFIle.dll'
Line:0 compiler initialization failed unexpectedly: Impossibile
trovare il file specificato.

The Code being compiled has the appropriate include directive and as
parameter
of the compiler I add the reference to MyDLLFIle.

Still the on-fly compilation cannot find the MyDLLFIle.dll file.

What I am missing ? Do I have to declare it somewhere else ?

Thanks for any help. I am really stuck.

-Pam
 
V

Victor Rosenberg

Got no idea, really, but maybe you should provide the whole path
instead of a relative "/Bin/MyDLLFIle.dll".
Hope this helps
 
P

pamela fluente

Thanks for the attempt Victor,

Actually right now I am using no path, just the file name, as in the
past I have noted
that it is sufficient.

But now that you mention it, I may try some path (altought I can see
at load time that temporary
folder are used)

Will do some more attempts... If you have more ideas just let me know.

-Pam
 
P

pamela fluente

hmmm, still no luck. I am really struggling with this one.
Is is possible that the the new compiler instance runs will less
privileges,
so it cannot access the /BIN folder? In such a case how can I specify
that
the BIN folder must be accessible?

-P
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top