Server Error in '/' Application.

The remote server returned an error: (403) Forbidden.

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: (403) Forbidden.

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: (403) Forbidden.]
   System.Net.HttpWebRequest.GetResponse() +1463
   AlphaPublishing.Core.SocialMedia.YoutubeAPI.WebResponseGet(HttpWebRequest webRequest) +132

[Exception: Error in YouTube video: https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=SeawardElectronic&maxResults=50&fields=items&key=AIzaSyA87jx0rNFQHdScws21y4uKRdVMSQomt3o]
   AlphaPublishing.Core.SocialMedia.YoutubeAPI.WebResponseGet(HttpWebRequest webRequest) +545
   AlphaPublishing.Core.SocialMedia.YoutubeAPI.YoutubeRequest(String url) +149
   AlphaPublishing.Core.SocialMedia.YoutubeAPI.GetVideosForChannel(String userName) +335
   Arena.UI.Common.CacheHelper.GetYouTubeFeed(Int32 companyId, Int32 videosFromyouTube) in C:\Users\paul\Git\Alpha\Arena\Electronics Arena (Redesign)\Common\RecreateCacheInitialPage.cs:890
   Arena.UI.Common.CacheHelper.GetListVideos(Int32 siteId, Int32 companyId, Int32 videosFromyouTube) in C:\Users\paul\Git\Alpha\Arena\Electronics Arena (Redesign)\Common\RecreateCacheInitialPage.cs:866
   AlphaPublishing.ElectronicsArena.Common.VideosPanelList.Bind() in C:\Users\paul\Git\Alpha\Arena\Electronics Arena (Redesign)\Common\VideosPanelList.ascx.cs:85
   Arena.UI.CompanyPages.Videos.SetupMetaData(CompanyLite company) in C:\Users\paul\Git\Alpha\Arena\Electronics Arena (Redesign)\CompanyPages\Videos.aspx.cs:29
   Arena.UI.CompanyPages.Videos.Page_Load(Object sender, EventArgs e) in C:\Users\paul\Git\Alpha\Arena\Electronics Arena (Redesign)\CompanyPages\Videos.aspx.cs:23
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0