-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Vinu
Message 1 in Discussion

Hi,   Its me again with yet another problem during my stint/stunt with MTS.   Problem 
: When I implement my COM component as server application and try to instantiate the 
component in the same machine I get the following exception   
{System.UnauthorizedAccessException}
    [System.UnauthorizedAccessException]: {System.UnauthorizedAccessException}
    HelpLink: Nothing
    InnerException: Nothing
    Message: "Access is denied."
    Source: "mscorlib"
    StackTrace: "   at 
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr 
errorInfo)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean 
bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
   at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type 
serverType)
   at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type 
serverType, Object[] props, Boolean bNewObj)
   at LateBindSample.Form1.Button1_Click(Object sender, EventArgs e) in 
D:\Projects\DotNetSamples\LateBindSample\LateBindSample\Form1.vb:line 84"
    TargetSite: {System.Reflection.RuntimeMethodInfo}   Any ideas on what could be the 
problem The same works if I give the package settings as Library   I have tried going 
to the .Net configuration and in the Runtime Security policy increased assembly trust 
to full. I have also followed the same for the instantiating application   Please also 
tell me which link could serve me better to understand the security policy in details 
and how it works.   MTS Package Settings done :  Authorisation : Enforce authorisation 
checks for this application --> tried by removing this Authentication level for  calls 
:Packet IMpersonation level : Impersonate Identity : Interactive user --> I am in 
admisitrator account and also its in local machine Advanced tab : all left as per 
default   Please let me know if you need any more information. Appreciate all help I 
can get   Thanks and Regards, Vinod    

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to