YAFLogo

MartinRJ
  • MartinRJ
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
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):

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)

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.

http://vwboard.de/default.aspx?g=admin_version 

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
  • MartinRJ
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
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):

http://api.ipinfodb.com/v3/ip-city/?key=630PARTLY0HIDDEN0084c0&format=xml&ip= {0}

IP Information Geolocation Web Service Params= StatusCode,StatusMessage,IpAddress,CountryCode,CountryName,RegionName,CityName,ZipCode,Latitude,Longitude,TimeZone

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:

OK31.18.126.144DEGERMANYBERLINBERLIN1017852.524413.4105+02:00

for my IP:

http://api.ipinfodb.com/v3/ip-city/?key=630PARTLY0HIDDEN0084c0&format=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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

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

https://github.com/YAFNET/YAFNET/issues/161 , fixed in 2.2.0

MartinRJ
  • MartinRJ
  • 55.4% (Neutral)
  • YAF Forumling Topic Starter
10 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
10 years ago

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.