locked
The remote server returned an error: (403) Forbidden !!! RRS feed

  • Question

  • User284253655 posted
    Hello . <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p><o:p> </o:p>I have  windows 2003 ( sp1 ) server with  sql 2005 , installed report services and asp.net ver. 1 & 2 . <o:p></o:p>I choose to the IIS 6.0 web site the asp.net 2.0 version and when I run a report from  a computer <o:p></o:p>

    in the LAN an error occurred .

    Can anybody helps ????

    Thank you..

     

    <o:p>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.]
       Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +495
       Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +958
       Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +84
       Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +143
       Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +110
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    

    </o:p>
    <o:p>

    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832  </o:p>

     

    Friday, September 14, 2007 4:01 AM

All replies

  • User576414087 posted

         You have to grant permission on the foll:

    1. write permission to the virtual directory in IIS (i.e. the permission for HTTP PUT). Without, you'll get a  HTTP 403 error.
    2. write permission for the IIS process identity (e.g. IUSR_<MACHINENAME>) on the actual directory on the file system. Without, you'll get a HTTP 401 error.

    __________________________________________________________________

    Don't forget to "Mark as Answer" if the post helped you 

     

    Friday, September 14, 2007 6:13 AM
  • User284253655 posted
    I have gave full permissions to everyone!!!
    Friday, September 14, 2007 6:58 AM
  • User-2009597737 posted

    Check your IIS security settings for the web site:

    Directory Security

    IP address and domain name restrictions 

     

    Friday, September 14, 2007 12:11 PM
  • User284253655 posted

    Is checked the '' enable anonymous access with intergrated windows authentication '' and the IP restrictions by default is granted access .

    Something else to check ??

    Monday, September 17, 2007 2:23 AM
  • User-2009597737 posted

    There could be several reasons: On IIS there is no execute permissions to run scripts etc.

    check the 403.???

    The sub codes for 403 are from 1 thru 10 or 12

    Check the IIS logs for the 403 ?? You may not see 403.?? but another number from 0-12 that is the sub status for 403.

    Try a simple html to make sure that the htm is served  from your server from the directory. Also the security can be set at the directory level and not the root level.

     

    Monday, September 17, 2007 11:05 AM
  • User284253655 posted

    Event Type: Warning

    Event Source: ASP.NET 2.0.50727.0

    Event Category: Web Event

    Event ID: 1309

    Date: 17/9/2007

    Time: 11:10:22
    πμ

    User: N/A

    Computer: ***

    Description:

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 9/17/2007 11:10:22 AM

    Event time (UTC): 9/17/2007 8:10:22 AM

    Event ID: cc67356a83c04dd589d601f3d65f5951

    Event sequence: 148

    Event occurrence: 11

    Event detail code: 0

     

    Application information:

    Application domain: /LM/W3SVC/1/root/Reports-5-128344895202451396

    Trust level: RosettaMgr

    Application Virtual Path: /Reports

    Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportManager\

    Machine name: **

     

    Process information:

    Process ID: 3048

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

     

    Exception information:

    Exception type: WebException

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

     

    Request information:

    Request URL: http://**/Reports/Reserved.ReportViewerWebControl.axd?OpType=StyleSheet&Version=2005.090.3042.00

    Request path: /Reports/Reserved.ReportViewerWebControl.axd

    User host address: 192.170.0.230

    User:

    Is authenticated: False

    Authentication Type:

    Thread account name: NT AUTHORITY\NETWORK SERVICE

     

    Thread information:

    Thread ID: 1

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: True

    Stack trace: at Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)

    at Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(String styleSheetName)

    at Microsoft.Reporting.WebForms.ReportServerStyleSheetOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)

    at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)

    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

     

    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Tuesday, September 18, 2007 4:41 AM
  • User-410114128 posted

    The problem is in how the /Reports application references the services in the /ReportServer application, and I fixed it by going to IIS and modifying the /ReportServer application configuration to add "ReportService2005.asmx" as a possible default content page under the "Documents" tab of the application's property page. That fixed it for me ! :)

    Wednesday, April 24, 2013 6:19 AM
  • User1815411410 posted

    hi yasser,

    Thanks for providing this valuable response. Appreciate it!

    Tuesday, April 30, 2013 2:17 AM