I'm pretty new to SharePoint but am trying to get the hang of it. What I have been doing is creating ASP.NET web application pages and then deploying those to the SharePoint site. This works and is quick/easy to develop. However what I want to start doing is creating user controls in ASP.NET and wrapping those up in SharePoint web parts so that users can customize the pages themselves. I created the user control in ASP, and tested it in a web application page - it worked. However now I am trying to move it into the web part and it's not working.
What I did was create a new Visual Web Part project, then just copy and paste the markup and code behind (but not the namespace or register portions of those) to the default user control Visual Studio creates with the web part. I did not rename the default user control, or change its location, as I was hoping one of those things was causing the problem. But they were not. The problem I'm still getting is that it does not seem to find the user control. It gives me: "The file '/_CONTROLTEMPLATES/...' does not exist". But it does! What am I doing wrong? Maybe the user control is not being deployed to the right location (although that was checked, and it seems to be)? I am not sure what code you need to help answer this question, so just ask and I will be happy to supply it.
Thanks for reading,