I have just set up a new DNN site, & whenever someone tries to add a new post, the following error is raised:
|
An error has occurred. Error: Add/Edit Post is currently unavailable. |
I expect it would do it when trying to edit a post too, but as it's a brand new site, there are no posts to edit.
The only thing I can think of that might contribute to this problem is as follows. The site is to be used in conjunction with a non-DNN site I am developing, which also uses ASP.Net 2.0, & the built-in Membership functionality, using the usual SQLServer provider. In order that users have the same username & password, I have configured the two websites to share the same SQL database. I did this by extracting the Installation ZIP file, then altering some Membership settings in the DNN web.config file (Clear passwords, no Q&A required, use a specific database on my SQL Server etc.), then running the DNN installation, which then populated my database with its data. Then I configured my other website to use the same database. I also set DNN registration to None, to ensure that all users register through the other site (the main site), as anyone can register there, whereas only certain users will be permitted to use the DNN site.
In my other website, I have created a View that shows users from ASP.Net's aspnet_users who do not appear in DNN's Users, with a button that calls the AddUser Stored Procedure to add them to the DNN Users table, followed by the AddUserRole Stored Procedure to add them to the Registered Users role. All by trial & error, but as far as I can tell, the users get set up correctlty.
One other thing - the DNN site actually resides in a subfolder of the main website, which has a Virtual Directory pointing at the folder. That shouldn't matter, should it?
And finally, I noticed on the forums that others have recieved this message in a hosted environment, where the various database objects are not prefixed with dbo. - I can confirm that this is not the case here, as we run our own SQL Server, & all database objects have the dbo. prefix.
So why can't any of them create a new post? I don't think it's got anything to do with the way they were created, as even the Host & Admin accounts cannot create new threads, & of course they were not created by my code.
Any thoughts, questions & suggestions welcomed.
Thanks.