Here is what i have been struggling with.
I am replacing the OOTB SharePoint 2010 People Picker Control with a custom People Picker.
There are 2 projects in my Solution. One that adds an application page and another that actually replaces People Picker.
Everything compiles without an error. Also, i use the Solution1 reference in Solution2 as i have some common classes that im re-using from Sol1 in Sol2. The Error occurs even if i do not use a reference of Sol1 in Sol2.
When i deploy it in Debug mode through VS2010. I am ble to see the Custom Application Page(Uses SPPersisted Objects to store Custom Properties to Property Bag) and it works great.
But when i open the people picker from the site, it throws 'An error occurred during the compilation of the requested file, or one of its dependencies. The type or namespace name 'Custom_People_Picker_Control' could not be found in the global namespace (are you missing an assembly reference?).
I was expecting that it would hit my one of debug points in the People Picker Control Logic i have, but it doesn't and simply throws the error above.
I have cheked it in GAC and both the dlls are deployed and version number also matches. Both solutions are compiled against .Net 3.5.
I couldnt figure out what might be missing. Any help will be greatly appreciated.