Posted by: brigzy - Tuesday, 10 July 2012 00:44:58
Trying login with Twitter, but receive error when returning to forum.
(the email ' A new user has registered on the forum' is generated ok).
Server Error in '/Forum' Application.
--------------------------------------------------------------------------------
The remote server returned an error: (401) Unauthorized.
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.Net.WebException: The remote server returned an error: (401) Unauthorized.
Source Error:
Line 370: finally
Line 371: {
Line 372: webRequest.GetResponse().GetResponseStream().Close();
Line 373:
Line 374: if (responseReader != null)
Source File: D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YAF.Core\Services\Twitter\OAuthTwitter.cs Line: 372
Posted by: tha_watcha - Tuesday, 10 July 2012 00:59:44
Take a look at the application settings of your twitter app under Application type, it needs to be set to "Read and Write"
I updated the documentation to include this important information
Posted by: brigzy - Tuesday, 10 July 2012 09:38:47
Thanks I will give that a try.
Posted by: Zero2Cool - Wednesday, 20 February 2013 02:11:55
Server Error in '/' Application.
The remote server returned an error: (401) Unauthorized.
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.Net.WebException: The remote server returned an error: (401) Unauthorized.
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.
Stack Trace:
[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +6117395
YAF.Core.Services.Twitter.OAuthTwitter.WebResponseGet(HttpWebRequest webRequest) +191
YAF.Core.Services.Twitter.OAuthTwitter.WebRequest(Method method, String url, String postData) +336
YAF.Core.Services.Twitter.OAuthTwitter.OAuthWebRequest(Method method, String url, String postData) +1357
YAF.Core.Services.Twitter.OAuthTwitter.AuthorizationLinkGet() +78
YAF.Core.Services.YafSingleSignOnUser.GenerateTwitterLoginUrl(Boolean generatePopUpUrl) +323
YAF.Pages.login.Page_Load(Object sender, EventArgs e) +1064
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Posted by: tha_watcha - Sunday, 10 March 2013 09:55:29
Server Error in '/' Application.
The remote server returned an error: (401) Unauthorized.
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.Net.WebException: The remote server returned an error: (401) Unauthorized.
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.
Stack Trace:
[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +6117395
YAF.Core.Services.Twitter.OAuthTwitter.WebResponseGet(HttpWebRequest webRequest) +191
YAF.Core.Services.Twitter.OAuthTwitter.WebRequest(Method method, String url, String postData) +336
YAF.Core.Services.Twitter.OAuthTwitter.OAuthWebRequest(Method method, String url, String postData) +1357
YAF.Core.Services.Twitter.OAuthTwitter.AuthorizationLinkGet() +78
YAF.Core.Services.YafSingleSignOnUser.GenerateTwitterLoginUrl(Boolean generatePopUpUrl) +323
YAF.Pages.login.Page_Load(Object sender, EventArgs e) +1064
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Posted by: Trickstar - Friday, 14 June 2013 00:33:26
Server Error in '/' Application.
The remote server returned an error: (401) Unauthorized.
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.Net.WebException: The remote server returned an error: (401) Unauthorized.
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.
Stack Trace:
[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +6117395
YAF.Core.Services.Twitter.OAuthTwitter.WebResponseGet(HttpWebRequest webRequest) +191
YAF.Core.Services.Twitter.OAuthTwitter.WebRequest(Method method, String url, String postData) +336
YAF.Core.Services.Twitter.OAuthTwitter.OAuthWebRequest(Method method, String url, String postData) +1357
YAF.Core.Services.Twitter.OAuthTwitter.AuthorizationLinkGet() +78
YAF.Core.Services.YafSingleSignOnUser.GenerateTwitterLoginUrl(Boolean generatePopUpUrl) +323
YAF.Pages.login.Page_Load(Object sender, EventArgs e) +1064
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Posted by: metta123 - Wednesday, 19 June 2013 11:50:50
Have you resolved this? In fact does anyone have a YAF forum that currently has the log in with twitter feature which is fully working? If so I would love to hear from you. I have the dlls if you still need them as I have changed the urls and compiled the project.
Posted by: brigzy - Wednesday, 19 June 2013 12:01:56
[quote=metta123;59860]Have you resolved this? In fact does anyone have a YAF forum that currently has the log in with twitter feature which is fully working? If so I would love to hear from you. I have the dlls if you still need them as I have changed the urls and compiled the project.[/quote]
I think now I am using the DNN version this does not apply to me - but having said that I would love to know if the DNN 'Register with Twitter' actually works ..! Please feel free to try it out - I will remove any account after test if you wish..
Register option - top left
[url=http://leansoftware.net/]http://leansoftware.net/[/url]
Cheers
Posted by: metta123 - Wednesday, 19 June 2013 12:20:34
I have just tried to login with my twitter credentials and it raises a critical error. Your Facebook is fine. I'm now registered. They recently made changes to their .api and replaced the old version. This might be where the issue is. You should maybe switch on errors to get the right error code. Mine just doesn't register the user at all. Its probably just a setting in Twitter dev.
Don't you still need to change the URLS and compile the DNN version of YAF? Where can you download the DNN version of YAF with the full source. I could download it all and have a look. Though Im no expert with YAF, and never looked at the DNN version or any other CMS YAF software.
I like your site. Its very good. I like the YAF integration.
Posted by: tha_watcha - Wednesday, 19 June 2013 13:32:02
Currently no Twitter Login via YAF should work because the 1.0 Twitter API no longer works. It will take some time until i can resolve this problem and migrate to 1.1
Posted by: metta123 - Wednesday, 19 June 2013 13:41:56
Thanks for the response. That is exactly what I needed to know.
Posted by: brigzy - Wednesday, 19 June 2013 13:43:41
[quote=metta123;59862]I have just tried to login with my twitter credentials and it raises a critical error. Your Facebook is fine. I'm now registered. They recently made changes to their .api and replaced the old version. This might be where the issue is. You should maybe switch on errors to get the right error code. Mine just doesn't register the user at all. Its probably just a setting in Twitter dev.[/quote]
Thanks, I have posted the problem on the DNN community forum, maybe they can help, I will post any discovery back here.
[quote=metta123;59862]Don't you still need to change the URLS and compile the DNN version of YAF? Where can you download the DNN version of YAF with the full source. I could download it all and have a look. Though Im no expert with YAF, and never looked at the DNN version or any other CMS YAF software.[/quote]
I don't recall rebuilding YAF - but I might have - the DLL dates are 14/7/2012 .
[quote=metta123;59862]I like your site. Its very good. I like the YAF integration.[/quote]
Thanks - hats off to the YAF guys really.
Currenty working on the online help for EDT so you should see lots of new pages and and examples appearing ...
F.Y.I The help desk is a modified version of [url=http://adefhelpdesk.com/]ADefHelpDesk[/url], supplied with source code so was easy enough for me to adapt. Primarily I wanted Public and Private help tickets.