Last post Jun 08, 2010 01:04 PM by sjnaughton
Jun 07, 2010 04:53 PM|Gentletouch|LINK
I am trying to convert an existing ASP.NET website to use dynamic data. I have created a generic dynamic data site using my existing database file which works fine. I have imported the Global.aspx, site.master, site.css, default.aspx and dynamicdata folders
into my existing site, I have set up the global page to use my Linq to SQL datacontext and set global to use scaffold but now encounter an odd error.
When I run the default page I get the list of my DB tables as expected and am able to click on them to display the List.aspx table. At this point if I click on details or edit I get the following error:
ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
I have compared all the files in my functioning basic dynamic data site with my modified site and they all seem the same!
Can anyone tell me what this means?
Jun 08, 2010 12:04 PM|sjnaughton|LINK
Hi Gentletouch, it sounds like a namespace issue to me, I assume this is a Web Application Project not a file based Website?
Jun 08, 2010 12:53 PM|Gentletouch|LINK
Yes you are right. I added:
Added to all the code behind files for all the items in the filters and field templates folders under dynamic data. Not sure why I have to do that or whether there is an easier way of adding these namespaces just the once. It is a file based site in development
Anyway it now works perfectly.
Jun 08, 2010 01:04 PM|sjnaughton|LINK