zhangrusi
Guest
|
Posted:
Wed Jan 19, 2005 10:57 pm Post subject:
'Access denied' when using interop assembly under SharePoint |
|
|
I have a COM interop assembly (generated using tlbimp) that I'm calling from
a WebPart assembly deployed under SharePoint Portal Server on Win2K3. If I
do not sign this interop assembly with a strong name, and simply place it in
my application's bin directory, I get the following error when I instantiate
one of its objects:
[FileLoadException: Access is denied: 'MBBRIBASLib'.]
where MBBRIBASLib is the name of my interop assembly. I am able to use the
unsigned assembly just fine outside of SharePoint. The only way I can get it
to work under SharePoint is to sign it and put it in the GAC.
I don't think this is a file permissions problem, or any other problem
loading MBBRIBASLib.dll itself, because at the time that the exception
occurs, I can see that MBBRIBASLib.dll has been loaded into the w3wp.exe
process. I'm thinking that it must be a problem with a resource that
MBBRIBASLib is trying to access. I did notice that the COM library itself
(MBBRIBAS.dll) had not been loaded yet at the time of the exception. Could
there be some security or configuration setting in SharePoint that I need to
update to accommodate the use of this library?
If anyone has seen this before or has a way to get more info on the
underlying cause, please drop me a line. I can provide the full error
message up on request... |
|