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

Notification

Icon
Error

User Validation error.
bluisana
#1 Posted : Tuesday, 11 May 2010 12:15:09 PM(UTC)
Rank: Member

Joined: 15/04/2010(UTC)
Posts: 26
Location: Raleigh

Man I am good at getting errors,

When ever a newly registered user tries to validate their account they get a validation failed error.

The error from the logs says:

Error: Object reference not set to an instance of an object.

Url


http://www.mywebsite.net...verify=f2Jjo%2B4SjLM%3D

Timestamp


5/11/2010 5:32:17 PM

Exception Type


System.NullReferenceException

Message


Object reference not set to an instance of an object.

Source


GalleryServerPro.Web

Target Site


Void NotifyAdminsOfNewlyCreatedAccount(GalleryServerPro.Web.Entity.UserEntity, Boolean, Boolean)

Stack Trace


at GalleryServerPro.Web.Controller.UserController.NotifyAdminsOfNewlyCreatedAccount(UserEntity user, Boolean isSelfRegistration, Boolean isEmailVerified) in C:\Users\Bryan\Documents\Visual Studio 2008\Projects\GalleryServerPro\Website\CodeFiles\Controller\UserController.cs:line 668
at GalleryServerPro.Web.Controller.UserController.UserEmailValidatedAfterCreation(String userName) in C:\Users\Bryan\Documents\Visual Studio 2008\Projects\GalleryServerPro\Website\CodeFiles\Controller\UserController.cs:line 560
at GalleryServerPro.Web.gs.pages.createaccount.ValidateUser() in C:\Users\Bryan\Documents\Visual Studio 2008\Projects\GalleryServerPro\Website\gs\pages\createaccount.ascx.cs:line 329

App Error ID


-2147483648

Gallery ID


1

HTTP User Agent


Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

Form Variables

<none>

Cookies

ASP.NET_SessionId


aidwfyb341zfxj453fjpkaih

Session Variables

1


1

ReferringUrl


http://www.mywebsite.net/gs/default.aspx?moid=5

HostUrl


http://www.mywebsite.net

PageUrl


http://www.mywebsite.net/gs/default.aspx

Server Variables

ALL_HTTP


HTTP_CONNECTION:keep-alive
HTTP_KEEP_ALIVE:115
HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= 0.8
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip,deflate
HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5
HTTP_COOKIE:ASP.NET_SessionId=aidwfyb341zfxj453fjpkaih
HTTP_HOST:www.mywebsite.net
HTTP_REFERER:http://us.mc527.mail.yahoo.com/mc/welcome?action=&YY=139009 5735&.rand=2ad34834vsrq8&noFlush&mcrumb=12SZrYOSuK0
HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

ALL_RAW


Connection: keep-alive
Keep-Alive: 115
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: en-us,en;q=0.5
Cookie: ASP.NET_SessionId=aidwfyb341zfxj453fjpkaih
Host: www.mywebsite.net
Referer: http://us.mc527.mail.yah...1390095735&.rand=2a d34834vsrq8&noFlush&mcrumb=12SZrYOSuK0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

APPL_MD_PATH


/LM/W3SVC/6640/ROOT

APPL_PHYSICAL_PATH


E:\web\mycrossr\

AUTH_TYPE


AUTH_USER


AUTH_PASSWORD


LOGON_USER


REMOTE_USER


CERT_COOKIE


CERT_FLAGS


CERT_ISSUER


CERT_KEYSIZE


CERT_SECRETKEYSIZE


CERT_SERIALNUMBER


CERT_SERVER_ISSUER


CERT_SERVER_SUBJECT


CERT_SUBJECT


CONTENT_LENGTH


0

CONTENT_TYPE


GATEWAY_INTERFACE


CGI/1.1

HTTPS


off

HTTPS_KEYSIZE


HTTPS_SECRETKEYSIZE


HTTPS_SERVER_ISSUER


HTTPS_SERVER_SUBJECT


INSTANCE_ID


6640

INSTANCE_META_PATH


/LM/W3SVC/6640

LOCAL_ADDR


96.31.35.30

PATH_INFO


/gs/default.aspx

PATH_TRANSLATED


E:\web\mycrossr\gs\default.aspx

QUERY_STRING


g=createaccount&verify=f2Jjo%2B4SjLM%3D

REMOTE_ADDR


98.26.31.188

REMOTE_HOST


98.26.31.188

REMOTE_PORT


8408

REQUEST_METHOD


GET

SCRIPT_NAME


/gs/default.aspx

SERVER_NAME


www.mywebsite.net

SERVER_PORT


80

SERVER_PORT_SECURE


0

SERVER_PROTOCOL


HTTP/1.1

SERVER_SOFTWARE


Microsoft-IIS/7.0

URL


/gs/default.aspx

HTTP_CONNECTION


keep-alive

HTTP_KEEP_ALIVE


115

HTTP_ACCEPT


text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

HTTP_ACCEPT_CHARSET


ISO-8859-1,utf-8;q=0.7,*;q=0.7

HTTP_ACCEPT_ENCODING


gzip,deflate

HTTP_ACCEPT_LANGUAGE


en-us,en;q=0.5

HTTP_COOKIE


ASP.NET_SessionId=aidwfyb341zfxj453fjpkaih

HTTP_HOST


www.mywebsite.net

HTTP_REFERER


http://us.mc527.mail.yah...1390095735&.rand=2a d34834vsrq8&noFlush&mcrumb=12SZrYOSuK0

HTTP_USER_AGENT


Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
Roger Martin
#2 Posted : Tuesday, 11 May 2010 12:43:37 PM(UTC)
Roger Martin

Rank: Administration

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

Crap, you found a bug where I parse the list of users to notify. When you have just one name it works but it fails when there is more than one.

The workaround is to open galleryserverpro.config and look for the setting usersToNotifyWhenAccountIsCreated. Get rid of any spaces in the value. For example, it will look something like this:

"Admin, Bob, Joe"

Change it to:

"Admin,Bob,Joe"

I will have this fixed in the next release. Those of you who want to fix it in source code can do so with a small change. Open Website\CodeFiles\Controller\UserController.cs and look for this line in the function NotifyAdminsOfNewlyCreatedAccount:

Code:
UserEntity account = GetUser(accountName, true);


Change it to this:

Code:
UserEntity account = GetUser(accountName.Trim(), true);

Roger Martin
Creator and Lead Developer of Gallery Server Pro
bluisana
#3 Posted : Wednesday, 12 May 2010 6:37:04 AM(UTC)
Rank: Member

Joined: 15/04/2010(UTC)
Posts: 26
Location: Raleigh

Thanks Roger,

Got it all working.
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.