am developing a connectable webparts using visual webpart. but instead of loading the user control which comes with the visual webpart am trying to load a web user control which i have included under ControlTemplates folder in the project. whlie rendering it is giving the following error.
"Could not load file or assembly '$SharePoint.Project.AssemblyFullName$' or one of its dependencies. The system cannot find the file specified."
i need a sample project or steps in detail to load the simple user control in Visual webpart template or in a webpart template.
First of all, for SharePoint 2010 questions you should use this forum: http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010programming/threads.
When you are using Visual Studio 2010, it will add the $SharePoint.Project.AssemblyFullName$ token to your files. This token is replaced automatically by the real assembly reference when the project is compiled and packaged.
So if you find this token in the web part files, I guess you deployed it manually.
Please try to compile and package your sharepoint solution, then deploy the WSP package.
.NET/SharePoint Consultant for A3IS.