Results 1 to 4 of 4

Thread: Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied

  1. #1

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied

    Hi All,

    I'm using http://aspalliance.com/articleViewer...aId=776&pId=-1 as guide to create a dynamic

    dataset bind with crystal report.

    It works fine in developing stage but when deploying to user. The report could not open and show the error message Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied..

    I had tried the solution given by author side but could not worked.

    Anyone has experience on this problem ? can give me some guide ?



    Thanks a billion :-)
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied

    The Thing is that you cannot access the Inetpub Folder of the deployment server. One thing you could is that you can create a local folder where your application is deployed.

    Use the Server.MapPath(".") to get the current working folder of your application and they you can create the xml file there, you can create another folder inside your working folder
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Re: Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied

    Can I remove writexml and directly bind with DS ?
    I did it by comment writexml method and uncomment
    myReportDocument.Database.Tables(TableName).SetDataSource(Ds)
    myReportDocument.Database.Tables(0).SetDataSource(Ds)
    it worked but I wondered will caused any error ?

    vb Code:
    1. Dim myReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument
    2.         myReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    3.  
    4.  
    5.         myReportDocument.Load(Server.MapPath(ReportName))
    6.  
    7.         --> myReportDocument.Database.Tables(TableName).SetDataSource(Ds)
    8.         --> myReportDocument.Database.Tables(0).SetDataSource(Ds)
    9.         myReportDocument.SetDataSource(Ds)
    10.         cryrptIssueID.SelectionFormula = Session("SelectionFormula")
    11.         cryrptIssueID.ReportSource = myReportDocument
    12.         cryrptIssueID.DataBind()
    13.  
    14.  
    15.         cryrptIssueID.HasCrystalLogo = False
    Last edited by nUflAvOrS; May 21st, 2009 at 12:11 AM.
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Access to the path 'C:\Inetpub\wwwroot\rptIssueTools.xml' is denied

    I don't think this will cause an Error. How do you populate the DS ?
    Please mark you thread resolved using the Thread Tools as shown

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width