MartinRJ
  • Posts: 9
  • Joined: 06/09/2014
Registration does not work at all after successful installation (I already filled my board with forums and topics).

I find the following exception in my error log, every time I attempt a registration (I deleted all my cookies, and tried with several webbrowsers):

Quote:


Error System 9/6/2014 9:01:36 AM mscorlib

Exception
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at YAF.Pages.register.FillLocationData(DropDownList country, DropDownList timeZones)
at YAF.Pages.register.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)




YAF Version: v2.1.2.0

.NET Version: 4.0.30319.18063

Hoster: "1&1 Unlimited Windows Plus" (http://www.1und1.de)

The forum itself is: http://www.vwboard.de 


Everything else works like a charm, I've been using the forum for 30 hours without any issues, and I must say that I find it really impressive. It's fast, and setup was very easy and straight-forward. And also the administrative interface is quite good, and every option is easy to find. YAF has many options I didn't expect from a free forum software at all.



Also I get the following error, when I try to view the version-information page http://vwboard.de/default.aspx?g=admin_version 
Quote:


Exception
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 144.76.237.251:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at YAF.RegisterV2.RegisterV2.LatestVersion()
at YAF.Pages.Admin.version.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Sponsor
MartinRJ
  • Posts: 9
  • Joined: 06/09/2014
I did some debugging, and found that it's an issue with the Geolocation IP-service.

When I turn off the IP-Info-Service in the host-settings (http://vwboard.de/default.aspx?g=admin_hostsettings#View2), then registration works.

I had these settings (part of my api-key is hidden):

IP Information XML Web-Service= http://api.ipinfodb.com/...0&format=xml&ip= {0}
IP Information Geolocation Web Service Params= StatusCode,StatusMessage,IpAddress,CountryCode,CountryName,RegionName,CityName,ZipCode,Latitude,Longitude,TimeZone
IP-Information-webpage URL= http://www.ip2location.com/ {0}

I also tried the original value for the web-service params which contained a typo (there's an additional space-char next to 'IpAddress' ):
StatusCode,StatusMessage, IpAddress,CountryCode,CountryName,RegionName,CityName,ZipCode,Latitude,Longitude,TimeZone

That also failed.

Then I took a look at the response from api.ipinfodb.com which looks like:

<Response><statusCode>OK</statusCode><statusMessage/><ipAddress>31.18.126.144</ipAddress><countryCode>DE</countryCode><countryName>GERMANY</countryName><regionName>BERLIN</regionName><cityName>BERLIN</cityName><zipCode>10178</zipCode><latitude>52.5244</latitude><longitude>13.4105</longitude><timeZone>+02:00</timeZone></Response>

for my IP:

http://api.ipinfodb.com/...xml&ip=31.18.126.144 

So I remembered that XML-tags are case-sensitive, and tried with the following setting:
statusCode,statusMessage,ipAddress,countryCode,countryName,regionName,cityName,zipCode,latitude,longitude,timeZone

But still registration doesn't work.

FillLocationData-function surely needs some love (and a check against invalid input).

Could somebody help me please? (I also tried all of the above strings with semicolon instead of comma, but that still didn't work)

For now I turned that module off, and can run my forum. But I would surely like to use that function.

Thanks!
tha_watcha
  • Posts: 4061
  • Joined: 06/03/2010
Quote:

Could somebody help me please? (I also tried all of the above strings with semicolon instead of comma, but that still didn't work)



This is a known issue https://github.com/YAFNET/YAFNET/issues/161 , fixed in 2.2.0
UserPostedImage
MartinRJ
  • Posts: 9
  • Joined: 06/09/2014
Thanks.

Do you have any idea though, what the second error means?
(it happens when I attempt to load the version-information page)

Exception
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 144.76.237.251:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at YAF.RegisterV2.RegisterV2.LatestVersion()
at YAF.Pages.Admin.version.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
tha_watcha
  • Posts: 4061
  • Joined: 06/03/2010
Quote:

Do you have any idea though, what the second error means?



Yes it means that the connection to the YAF Server to retrieve the version info could not be connect. But i don't have an idea at the moment why this is happening, for most users this works without any problems.
UserPostedImage
Forum Jump  
  • 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.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved