When trying out RC3 I had no problem registering a new page type directly from Visual Studio. Now I am looking at the 5.1.422.4 release and suddenly it doesn't work. I have a nice, clean project. The only thing out of the ordinary was that I needed to manually change all the EPiServer references so that they pointed to the right versions of the binaries.
The error I am getting now after the new aspx has been created is:
Error when creating the EPiServer.Configuration.Settings.All list: The configuration section could not be found in the configuration file
This section does exist as it should in web.config.
If I immediately try a second time I get this error message instead:
Visual Studio cannot establish a connection to the configured EPiServer database. An EPiServer PageType was not registered for MyFileName.aspx.
Yes, try to create a new project and see if the problem still exists. If this works as expected, there is probably version issues with the assemblies in the "old" project. I would suggest copying your work to the new project. Also export any data (pages and associated pagetypes) that you want to import to the new project.
I've got the same problem when upgrading from an rc4 to release but after uninstall and cleaning the GAC it works just fine! :)
If not try to clear the Temporary ASP.NET Files -folder.
To get the site up and running i changed the
to the right version.
Best Regards
Eric Pettersson(EPiServer)