'Access denied' when using interop assembly under SharePoint
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
'Access denied' when using interop assembly under SharePoint

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
zhangrusi
Guest





Posted: Wed Jan 19, 2005 10:57 pm    Post subject: 'Access denied' when using interop assembly under SharePoint Reply with quote

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...
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB