Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get Controll Names used in Form? Pin
J4amieC21-Nov-05 23:17
J4amieC21-Nov-05 23:17 
QuestionRun a program Pin
Sina_Ad21-Nov-05 19:51
Sina_Ad21-Nov-05 19:51 
Questionar!How to get Controll Names used in Form? Pin
majidbhutta21-Nov-05 19:46
majidbhutta21-Nov-05 19:46 
AnswerRe: ar!How to get Controll Names used in Form? Pin
MoustafaS22-Nov-05 0:22
MoustafaS22-Nov-05 0:22 
QuestionDataTable.Select() error Pin
CandyMe21-Nov-05 19:43
CandyMe21-Nov-05 19:43 
AnswerRe: DataTable.Select() error Pin
Stanciu Vlad22-Nov-05 4:08
Stanciu Vlad22-Nov-05 4:08 
GeneralRe: DataTable.Select() error Pin
CandyMe22-Nov-05 13:12
CandyMe22-Nov-05 13:12 
Questionplz help me to solve this problem Pin
Ankush Bindra21-Nov-05 19:13
Ankush Bindra21-Nov-05 19:13 
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

bNewObj)
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.......

Ankush


Ankush Bindra
Sr. Software Engineer
Schenker India Pvt. Ltd.
New Delhi, India
AnswerRe: plz help me to solve this problem Pin
cshaaaa21-Nov-05 19:26
cshaaaa21-Nov-05 19:26 
QuestionApp.config - Can you contribute? Pin
SheenSylesh21-Nov-05 19:00
SheenSylesh21-Nov-05 19:00 
AnswerRe: App.config - Can you contribute? Pin
cshaaaa21-Nov-05 19:16
cshaaaa21-Nov-05 19:16 
AnswerRe: App.config - Can you contribute? Pin
Asad Mahmood21-Nov-05 19:50
Asad Mahmood21-Nov-05 19:50 
QuestionHow to get the code(["SerialNumber"]) of harddisk of local area network Pin
koenemy21-Nov-05 18:53
koenemy21-Nov-05 18:53 
AnswerRe: How to get the code(["SerialNumber"]) of harddisk of local area network Pin
MoustafaS22-Nov-05 0:27
MoustafaS22-Nov-05 0:27 
Questionhow to get XML tag of different sites for use in our sites for news reading Pin
v.k.s21-Nov-05 18:30
v.k.s21-Nov-05 18:30 
QuestionReading Active Directory user password? Pin
devvvy21-Nov-05 16:01
devvvy21-Nov-05 16:01 
AnswerRe: Reading Active Directory user password? Pin
mav.northwind21-Nov-05 20:29
mav.northwind21-Nov-05 20:29 
GeneralRe: Reading Active Directory user password? Pin
devvvy21-Nov-05 20:35
devvvy21-Nov-05 20:35 
GeneralRe: Reading Active Directory user password? Pin
mav.northwind21-Nov-05 21:32
mav.northwind21-Nov-05 21:32 
GeneralRe: Reading Active Directory user password? Pin
devvvy21-Nov-05 21:43
devvvy21-Nov-05 21:43 
QuestionConfused about shallow and deep copy in C# Pin
Johny Ng21-Nov-05 13:00
Johny Ng21-Nov-05 13:00 
AnswerRe: Confused about shallow and deep copy in C# Pin
Joshua Quick21-Nov-05 14:14
Joshua Quick21-Nov-05 14:14 
AnswerRe: Confused about shallow and deep copy in C# Pin
ABC_Developer21-Nov-05 18:26
ABC_Developer21-Nov-05 18:26 
Question[very urgent]!! combobox question Pin
Sam 200621-Nov-05 12:26
Sam 200621-Nov-05 12:26 
AnswerRe: [very urgent]!! combobox question Pin
enjoycrack21-Nov-05 12:48
enjoycrack21-Nov-05 12:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.