Jump to content

Can't upload avatar


Recommended Posts

I've been trying to upload an avatar (and change a few settings in my user profile) for quite a while, but when I try to save the changes I get the following error page:

Server Error in '/cs' Application.

Cannot

insert the value NULL into column 'UserId', table

'LCommunityServer.dbo.aspnet_Profile'; column does not allow nulls.

INSERT fails. The statement has been terminated.

Description: An

unhandled exception occurred during the execution of the current web

request. Please review the stack trace for more information about the

error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:

Cannot insert the value NULL into column 'UserId', table

'LCommunityServer.dbo.aspnet_Profile'; column does not allow nulls.

INSERT fails. The statement has been terminated.

Source Error:

An unhandled exception was generated during the execution of the

current web request. Information regarding the origin and location of

the exception can be identified using the exception stack trace below.

At any rate, is it something I am doing wrong?  Although it seems pretty straightforward to me!

Thanks.

PG

Link to comment
Share on other sites

Just a thought PG, but has something happened to your private email address in the first input box in your user profile (perhaps you tried to remove it)?

I think that the UserId table uses your email address as the unique identifier, and the exception details look as if SQL is throwing a wobbly at having a NULL (missing) value.

 

 

Link to comment
Share on other sites

That may be it, Cathy.  I was using a different email address in the "private email address" box than the one with which I registered on the site. I tried to change it back so that the two are the same, but it won't let me do that either.  So, maybe I've really messed things up?

PG

Link to comment
Share on other sites

I'm having exactly the same problem when I try to change anything in my

profile - or even try to save my profile without any changes. 

Seems like it is trying to update a field in the database (UserID) that

is a probably an autoincrement primary key with a null value?  Probably needs the code changing.

Hastobe

Link to comment
Share on other sites

"..Seems like it is trying to update a field in the database (UserID) that

is a probably an autoincrement primary key with a null value?  Probably needs the code changing."

Hastobe

Blige me, "quelle coïncidence" I was only saying the same thing this morning to my farmer neighbour........[;-)]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...