I tried to activate the twiter link

Topics: Developer Forum, Localization Forum, Project Management Forum, User Forum
Oct 9, 2010 at 10:05 PM

I tried to activate the twiter link but I am getting this errors to turn off customerror, I did but still I am getting this error.

Anyhelp

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 75: 				using (XmlTextReader reader = new XmlTextReader(xmlUrl))
Line 76: 				{
Line 77: 					document.Load(reader);
Line 78: 					navigator = document.CreateNavigator();
Line 79: 					formatXmlDocument(navigator);


Source File: c:\inetpub\wwwroot\ActionToEmpower\App_Code\Sections\TwitterStatusFeed.cs    Line: 77

Stack Trace:

[WebException: The remote server returned an error: (401) Unauthorized.]
   System.Net.HttpWebRequest.GetResponse() +1126
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +86
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +65
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +76
   System.Threading.CompressedStack.runTryCode(Object userData) +118
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +122
   System.Xml.XmlTextReaderImpl.OpenUrl() +5027836
   System.Xml.XmlTextReaderImpl.Read() +152
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   MyWebPagesStarterKit.TwitterStatusFeed.GetTwitterXml(Boolean invalidateCache) in c:\inetpub\wwwroot\ActionToEmpower\App_Code\Sections\TwitterStatusFeed.cs:77
   MyWebPagesStarterKit.TwitterStatusFeed.GetSidebarRss(String PageId) in c:\inetpub\wwwroot\ActionToEmpower\App_Code\Sections\TwitterStatusFeed.cs:164
   MyWebPagesStarterKit.Sidebar.GetSectionRss(XmlWriter rss, ISection section, String pageId, String titlePrefix) in c:\inetpub\wwwroot\ActionToEmpower\App_Code\Sidebar.cs:255
   MyWebPagesStarterKit.Sidebar.GetRSSFeed(IIdentity Webuser) in c:\inetpub\wwwroot\ActionToEmpower\App_Code\Sidebar.cs:223
   MyWebPagesStarterKit.Controls.SidebarControl.CreateChildControls() in c:\inetpub\wwwroot\ActionToEmpower\App_Code\Controls\SidebarControl.cs:43
   System.Web.UI.Control.EnsureChildControls() +146
   System.Web.UI.Control.PreRenderRecursiveInternal() +61
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
Oct 11, 2010 at 4:24 PM

is this forum dead

Oct 27, 2010 at 8:07 PM

Hello giss68,

Check out the comment I made at http://mywebpagesstarterkit.codeplex.com/workitem/28358 

I think it might answer/address your question.

Best wishes,

Dan