Hope this is in the right place. Was a little confusing but I feel like I'm quite a novice at this so:
I was trying to add the google analytics to my company website (which was not built by me). Followed the steps and put the appropriate line of code into the Template file (templateinclude.xlst). It didn't work and I got the error on that file naturally.
So, I copied back the original file. All seemed fine.
Restarted IIS checked the site and got the error below
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:
Line 24: ((HSPage)oPage).HandlePostback();
Line 25:
Line 26: ((HSPage)oPage).WritePage();
Line 27: }
Line 28: }
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
The file I modified and the file showing the error there both have last modified date as 2007 so fairly sure they are the originals. I guess it has to be a permissions problem as the error is on the "Write Page" bit of code there. Not sure how to tackle the problem
Any help will be much appreciated.
Guess to be thorough I'll post the last error log:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 20/01/2010
Time: 13:47:05
User: N/A
Computer: GAMMA
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 20/01/2010 13:47:05
Event time (UTC): 20/01/2010 13:47:05
Event ID: a60622a88e0946ae9d606e83569173b7
Event sequence: 529
Event occurrence: 176
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/201094099/Root-1-129084356628268241
Trust level: Full
Application Virtual Path: /
Application Path: F:\website\
Machine name: GAMMA
Process information:
Process ID: 1828
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: XsltCompileException
Exception message: XSLT compile error at http://www.mywebsite.com/xslt/Default.xslt(4,3). See InnerException for details.
Request information:
Request URL: http://www.mywebsite.com/Default.aspx?Page=One
Request path: /Default.aspx
User host address: 65.55.106.209
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Xml.Xsl.XsltOld.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence)
at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence)
at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)
at System.Xml.Xsl.XslTransform.Load(String url)
at EcomUtils.XMLHelper.Transform(String xml, String xsltPath, XsltArgumentList xsltParams, TextWriter output)
at Harvington.XsltPage.WritePage() in E:\Sandbox\Harvington\pages\XsltPage.cs:line 141
at Harvington._Default.Page_Load(Object sender, EventArgs e) in f:\website\Default.aspx.cs:line 26
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
furby
0 Points
1 Post
How to go about solving: The remote server returned an error: (403) Forbidden.
Jan 20, 2010 01:47 PM|LINK
Hope this is in the right place. Was a little confusing but I feel like I'm quite a novice at this so:
I was trying to add the google analytics to my company website (which was not built by me). Followed the steps and put the appropriate line of code into the Template file (templateinclude.xlst). It didn't work and I got the error on that file naturally. So, I copied back the original file. All seemed fine.
Restarted IIS checked the site and got the error below
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:
Source File: f:\website\Default.aspx.cs Line: 26
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
The file I modified and the file showing the error there both have last modified date as 2007 so fairly sure they are the originals. I guess it has to be a permissions problem as the error is on the "Write Page" bit of code there. Not sure how to tackle the problem
Any help will be much appreciated.
Guess to be thorough I'll post the last error log:
Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 20/01/2010 Time: 13:47:05 User: N/A Computer: GAMMA Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 20/01/2010 13:47:05 Event time (UTC): 20/01/2010 13:47:05 Event ID: a60622a88e0946ae9d606e83569173b7 Event sequence: 529 Event occurrence: 176 Event detail code: 0 Application information: Application domain: /LM/W3SVC/201094099/Root-1-129084356628268241 Trust level: Full Application Virtual Path: / Application Path: F:\website\ Machine name: GAMMA Process information: Process ID: 1828 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: XsltCompileException Exception message: XSLT compile error at http://www.mywebsite.com/xslt/Default.xslt(4,3). See InnerException for details. Request information: Request URL: http://www.mywebsite.com/Default.aspx?Page=One Request path: /Default.aspx User host address: 65.55.106.209 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 7 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Xml.Xsl.XsltOld.Compiler.Compile(NavigatorInput input, XmlResolver xmlResolver, Evidence evidence) at System.Xml.Xsl.XslTransform.Compile(XPathNavigator stylesheet, XmlResolver resolver, Evidence evidence) at System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver) at System.Xml.Xsl.XslTransform.Load(String url) at EcomUtils.XMLHelper.Transform(String xml, String xsltPath, XsltArgumentList xsltParams, TextWriter output) at Harvington.XsltPage.WritePage() in E:\Sandbox\Harvington\pages\XsltPage.cs:line 141 at Harvington._Default.Page_Load(Object sender, EventArgs e) in f:\website\Default.aspx.cs:line 26 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)NC01
All-Star
82577 Points
15430 Posts
MVP
Re: How to go about solving: The remote server returned an error: (403) Forbidden.
Jan 20, 2010 05:01 PM|LINK
See:
http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/ef0f1c39-fc92-4cde-9920-597a8d6981f9/
http://www.eggheadcafe.com/community/aspnet/7/10109231/the-remote-server-returne.aspx
See here for more:
http://www.google.com/search?hl=en&source=hp&q=The+remote+server+returned+an+error%3A+%28403%29+Forbidden&btnG=Google+Search&aq=f&aql=&aqi=&oq=
NC...
kevorkian
Member
432 Points
379 Posts
Re: How to go about solving: The remote server returned an error: (403) Forbidden.
Jan 20, 2010 08:48 PM|LINK
Either you didn't upload the web.config file, or you forgot to give the appropriate folder read/write permissions...?
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: How to go about solving: The remote server returned an error: (403) Forbidden.
Jan 20, 2010 11:29 PM|LINK
From scan reading the links that I posted, it sounds more like his application does not have access to a remote server.
NC...