|
-
Feb 12th, 2010, 06:00 AM
#1
[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
-
Feb 12th, 2010, 06:02 AM
#2
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
-
Feb 12th, 2010, 06:13 AM
#3
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
-
Feb 12th, 2010, 06:19 AM
#4
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
-
Feb 12th, 2010, 06:22 AM
#5
Re: Load Report Failed
Yes . Currently for this we have got special permission
Please mark you thread resolved using the Thread Tools as shown
-
Feb 12th, 2010, 06:23 AM
#6
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
-
Feb 12th, 2010, 06:28 AM
#7
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
-
Feb 12th, 2010, 06:31 AM
#8
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
-
Feb 12th, 2010, 06:35 AM
#9
Re: Load Report Failed
 Originally Posted by gep13
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
-
Feb 12th, 2010, 06:37 AM
#10
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
-
Feb 12th, 2010, 06:45 AM
#11
Please mark you thread resolved using the Thread Tools as shown
-
Feb 15th, 2010, 06:32 AM
#12
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
-
Feb 15th, 2010, 08:31 AM
#13
Re: [RESOLVED] Load Report Failed
Hey,
Glad to here that you got it working Dana.
Gary
-
Feb 15th, 2010, 08:37 AM
#14
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
-
Feb 15th, 2010, 08:38 AM
#15
Re: [RESOLVED] Load Report Failed
Hey,
I wouldn't give write permissions to the whole windows folder, just the the relevant folder.
Gary
-
Feb 15th, 2010, 08:50 AM
#16
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
-
Feb 15th, 2010, 09:00 AM
#17
Re: [RESOLVED] Load Report Failed
Hey,
You are only granting write access to one folder, so you should be fine.
Gary
-
Feb 15th, 2010, 09:04 AM
#18
Re: [RESOLVED] Load Report Failed
Please mark you thread resolved using the Thread Tools as shown
-
Feb 15th, 2010, 04:43 PM
#19
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.
-
Feb 16th, 2010, 01:15 AM
#20
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|