How to create object of class from client project

When we create a Silverlight application, which includes two projects. The Silverlight project and the web project. I have a class in my SilverlightApplication1.Web namespace and I am trying to create an object of that class in my MainPage.xaml.cs class which is present in SilverlightApplication1 namespace. But seems like I can't create an object of the web project from the Silverlight project. How can I do this? What's the concept?

When I create object I get error:

The type or namespace could not be found

Jon Skeet
people
quotationmark

It sounds like your Silverlight project doesn't have a reference to the web project. That's probably a good thing, mind you - I would suggest you set up a third project (as a Silverlight class library) called "Common" or something similar, and make both the web project and the Silverlight project refer to that. Put types which aren't web-specific or Silverlight-specific in that project, and then you can use them from both the web and Silverlight projects.

people

See more on this question at Stackoverflow