Results 1 to 20 of 20

Thread: [RESOLVED] Load Report Failed

  1. #1

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

    Resolved [RESOLVED] Load Report Failed

    Hi all,
    I have developed reports using crystal report which work well in Win XP(Dev & Server) but when we started to deploy it in Windows 2003 server , we are getting the Result as "Load report failed ".

    Have any one experienced this one ?


    Thanks
    Dana
    Please mark you thread resolved using the Thread Tools as shown

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Load Report Failed

    Hey,

    Are there any log files that you can look at? It is likely that you will find more helpful information in there.

    Gary

  3. #3

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

    Re: Load Report Failed

    I am writing it to EventViewer and gettting the result as LoadReport Failed.

    One Impartant thing I forgot to mention is if I don't use the
    Code:
    <identity impersonate="true" >
    Its working Well. If add this I get this Error only in Windows 2003 Server. Works well in XP (Local/Server)
    Please mark you thread resolved using the Thread Tools as shown

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Load Report Failed

    Hey,

    This immediately points at a difference in the way the servers are configured, i.e. differences in permissions.

    Are you in charge of configuring permissions on the server?

    Gary

  5. #5

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

    Re: Load Report Failed

    Yes . Currently for this we have got special permission
    Please mark you thread resolved using the Thread Tools as shown

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Load Report Failed

    Hey,

    So I take it that you want the report to run using:

    Code:
    <identity impersonate="true" >
    In which case, you need to get someone to give each user the necessary permission to access the datasource that the reports are hitting.

    Gary

  7. #7

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

    Re: Load Report Failed

    Now I will give the username and password there itself.

    Code:
    <identity impersonate="true" userName="DomainName\UserName" password="Password"/>
    Please mark you thread resolved using the Thread Tools as shown

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Load Report Failed

    Hey,

    When you use:

    Code:
    <identity impersonate="true" >
    You are basically telling ASP.Net to use the Identity of the current user to run the application. As a result, when you query databases, load reports etc, you will be doing so as the current user. As a result, the permissions for that user might not be sufficient to execute the report.

    When you take out the above from the web.config file, you are running the application as the ASP.Net Identity, configured in IIS, which obviously does have the necessary permissions, as the report loads.

    Gary

  9. #9

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

    Re: Load Report Failed

    Quote Originally Posted by gep13 View Post
    Hey,

    When you use:

    Code:
    <identity impersonate="true" >
    You are basically telling ASP.Net to use the Identity of the current user to run the application. As a result, when you query databases, load reports etc, you will be doing so as the current user. As a result, the permissions for that user might not be sufficient to execute the report.

    When you take out the above from the web.config file, you are running the application as the ASP.Net Identity, configured in IIS, which obviously does have the necessary permissions, as the report loads.

    Gary

    Previously it was running under Asp.Net identity and we introduced Excel Automation to generate the reports. As the Asp.net identity won't have rights to access the server application , we have to opt for the impersonate
    Please mark you thread resolved using the Thread Tools as shown

  10. #10
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Load Report Failed

    Hey,

    Okay, so can you try altering the user's permissions, i.e. increasing them, to allow them to access the reports?

    Gary

  11. #11

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

    Re: Load Report Failed

    yes I can
    Please mark you thread resolved using the Thread Tools as shown

  12. #12

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

    Re: Load Report Failed

    Never Mind . I figured out My self. The w3pwp.exe was running under "NETWORK SERVICE" account. During the Crystal Report Load method , it create a tempory file in Windows temp directory. The "NETWORK SERVICE " doesn't had the access to that folder. I gave the read/write permission , which solved the issue
    Please mark you thread resolved using the Thread Tools as shown

  13. #13
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Load Report Failed

    Hey,

    Glad to here that you got it working Dana.

    Gary

  14. #14

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

    Re: [RESOLVED] Load Report Failed

    Thanks Gary.

    After Lot of search only I was able to rectify that one. I have one doubt. Does granting write permission to windows folder will cause any damage ?
    Please mark you thread resolved using the Thread Tools as shown

  15. #15
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Load Report Failed

    Hey,

    I wouldn't give write permissions to the whole windows folder, just the the relevant folder.

    Gary

  16. #16

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

    Re: [RESOLVED] Load Report Failed

    Now I am granting to Temp folder only. Will it cause any security flaw ?
    Please mark you thread resolved using the Thread Tools as shown

  17. #17
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Load Report Failed

    Hey,

    You are only granting write access to one folder, so you should be fine.

    Gary

  18. #18

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

    Re: [RESOLVED] Load Report Failed

    Ok..
    Please mark you thread resolved using the Thread Tools as shown

  19. #19
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Load Report Failed

    The NETWORK SERVICE account is pretty low privilege anyways. That's why it's given permissions on temporary folders in a few places on your machine so that it's out of way's harm/harm's way.

  20. #20

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

    Re: [RESOLVED] Load Report Failed

    Thanks for the advice mendhak
    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