Object type or assembly could not be loaded

Object type or assembly could not be loaded

Old forum URL: forums.lhotka.net/forums/t/11871.aspx


mayurimalgave posted on Thursday, March 07, 2013

I have created ProjectManagement.Library,ProjectManagement.Dal, ProjectManagement.DalEf, ProjectManagement.Library.Sl, ProjectManagement.Test.Library, WcfAppServer projects successfully. All the tests gives correct output. I have created a ProjectManagementUI by using silverlight. But when i run the application,it gives an error as " Object type or assembly could not be loaded(ProjectManagement.Library.DesignationList,ProjectManagement.Library, Version=1.0.0.0, Culture= neutral,PublicKeyToken = null) ". I dont understand that why UI project is giving htis error,while all the tests gives correct output. Please suggest any solution.

RockfordLhotka replied on Thursday, March 07, 2013

Your ProjectManagement.Library.Sl is a Silverlight project, not a .NET project right?

And you have made sure that your ProjectManagement.Library and ProjectManagement.Library.Sl project properties both have the same assembly name and root namespace?

And your ProjectManagementUI project references ProjectManagement.Library.Sl?

mayurimalgave replied on Thursday, March 07, 2013

Yes,I had already done it..

mayurimalgave replied on Tuesday, March 12, 2013

Hi Rocky...

I solved my problem by re-adding project refferences & assemblies into the each project in the solution...

Thanks..

Copyright (c) Marimer LLC