Plz help me to solve this problem

hello dear,

i am learning component development in C#.i create my own class library with name HelloWorld.Dll.
in this, i create a class MyComponet. i am using it in window based application in C#.
by including all rererences System.EnterpriseServices and Dll file. but when i create new object of that component it will

give Exception
Acess is Denied on this line
HelloWorld.MyComponent obj = new HelloWorld.MyComponent();

And in stack trace. it give the information.

Acess is Denied
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

at HelloClient.Form1.cmdWakeUp_Click(Object sender, EventArgs e) in d:\ankush\books\course cds\bulding com+

application\practices\cs\mod02\solution\helloclient\form1.cs:line 104

So plz help me how i can use my Dll file and remove this Exception.

waiting for ur reply…