i'm working with C# .In my prjt there is one class library added.My problem is how to get reference of objects tat of my project in my class library.

You need to "use" the reference, and then the classes within it can be instantiated.

i hav added reference of my project to Classlibrary by right clicking class library and addreference option it compiles successfully but i'm getting strange error ,something like :

System.ArgumentNullException was unhandled
Message="Value cannot be null.\r\nParameter name: activationContext"
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Sounds like a simple coding error

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.