Security Error while Calling another Assembly



Hi,
I get a Security Error when my WebService makes a call a method in
another assembly.
The details of the exception as viewed in immediate window of Visual
Studio are pasted below.
I am able to debug my WebService method.
However, when it tries to call a method in another assembly, it fails.
What is the most likely reason of the error ?
Rajesh

?ex
{"Security error." }
[System.Security.SecurityException]: {"Security error."}
System.Object: {System.Security.SecurityException}
_className: null
_COMPlusExceptionCode: -532459699
_exceptionMethod: <undefined value>
_exceptionMethodString: null
_helpURL: null
_HResult: -2146233078
_innerException: { }
_message: "Security error."
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceString: null
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2146233078
InnerException: { }
Message: "Security error."
Source: "MyDLL"
StackTrace: " at MyDLL.MyClass.MyMethod()\r\n at
MyDll.MyClass.MyMethod2() in
D:\\Development\\WebServices\\MyDll\\MyClass.asmx.cs:line 89"
TargetSite: <error: an exception of type:
{System.Security.SecurityException} occurred>

.



Relevant Pages

  • Security problem in MS office Accelerator for Recruiting s/w
    ... In Interview Manager Module, ... then there is a Security Error ... Exception Details: System.Security.SecurityException: ... using the exception stack trace below. ...
    (microsoft.public.security)
  • System.Security.SecurityException: Security error
    ... Exception Details: System.Security.SecurityException: Security error. ... Source Error: ... Note that this second technique will cause all files within a given application to be compiled in debug mode. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Security Error while Calling another Assembly
    ... I get a Security Error when my WebService makes a call a method in ... The details of the exception as viewed in immediate window of Visual ... I am able to debug my WebService method. ... _stackTraceString: null ...
    (microsoft.public.dotnet.security)
  • Re: Sharepoint security error
    ... The exception occurs before ... Exception message text is "Security error." ... Prev by Date: ...
    (microsoft.public.sharepoint.portalserver.development)