Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

web.config line 70 Error
Larry-E-Taylor
#1 Posted : Sunday, 13 June 2010 10:13:51 AM(UTC)
Rank: Newbie

Joined: 6/06/2010(UTC)
Posts: 3
Location: Roseville, CA

Hi Guys...

I recently donated $150 for Gallery Server Pro. I consider it money well-spent because it looks like a fantastically well-designed piece of software and I intend on using it on a few websites. I am a programmer and support my fellow programmers when I see some polished work by providing donations whenever I can.

I installed Gallery Server Pro and set it up for using MS-SQL Server 2008. The installation went smoothly. I am now starting to modify the enviroment and keep encountering a 'web.config line 70' error.

Here is the total error statement and the code follows, with Line 70 being BOLDED:
Unable to create user.
The configuration section cannot contain a CDATA or text element. (E:\web\taylorsyste\htdocs\web.config line 70)


As you can see, I am trying to create some users so they can have albums created and assigned to them.

I copied the portion of the 'Web.config' file in the 'Gallery' folder that the above error is referencing.
Here it is (normal indentation does not show in this posting):
<membership defaultProvider="SqlMembershipProvider">
<providers>
<clear />
<add applicationName="Gallery Server Pro" passwordFormat="Clear" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="2" maxInvalidPasswordAttempts="50" enablePasswordReset="true" enablePasswordRetrieval="true" passwordAttemptWindow="10" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" connectionStringName="SqlServerDbConnection" name="SqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>


Does anyone have any ideas or encountered this error and found the solution???

Thanks Much!!!

-Larry-



Roger Martin
#2 Posted : Wednesday, 16 June 2010 1:20:21 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

That is kind of odd. I did an internet search and found two possible causes:

1. A closing comment tag (-->) not accompanied by an opening tag. Check your web.config for any issues with comments.

2. Some kind of encoding issue. One person reported that he fixed the problem by opening web.config and saving it in Notepad.

If you continue to have the problem, I would replace your web.config file with the one that ships with GSP. You'll have to manually update the connection string and tell the membership, profile, and role provider sections to use SQL Server instead of SQLite.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Larry-E-Taylor
#3 Posted : Thursday, 17 June 2010 9:36:29 AM(UTC)
Rank: Newbie

Joined: 6/06/2010(UTC)
Posts: 3
Location: Roseville, CA

Roger... something that I forgot to mention was that I do NOT have the 'Membership' tables set up within my SQL Server database.

Considering that I don't use SqlMembershipProvider... then are there Web.Config lines that I should delete or comment out concerning the SqlMembershipProvider settings?

Roger Martin
#4 Posted : Saturday, 19 June 2010 2:06:06 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

GSP requires the membership, roles, and profile providers in order to work. You can use any provider you want, but you must have something set up.

If you are using something other than the SQL Server providers, you can safely delete all references to them.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.