cancel
Showing results for 
Search instead for 
Did you mean: 

Blank report (CR - VS2005)

Former Member
0 Kudos

Hi.

I'm currently developing a web site under an Windows 2003 server. The server uses a SQL SERVER 2000 standard database with mixed security settings. The web site uses Windows authentication and the anonymous access is disabled. I created and tested a CR in a VS 2005 Windows Forms in the same server and renders correctly. But when I tried to implement in a web site, I did the following actions:

1.- Created a web page

2.- Dropped a crystalreportviewer and a crystalreport source control

3.- Assigned the path to the report as the filename property to the crystalreport source control

4.- Assigned the crystalreport source control ID as the reportsourceid property for the crystalreportviewer

So far so good. The data in the report is completely visible

However, when I compile the web site the report appears blank.

The SQL SERVER resides in the same server than the web site. The server is part of a local domain. The server is not an Active Directory Server. The active directory server is another computer in the LAN.

Can you help me ??

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Adam_Stone
Active Contributor
0 Kudos

I expect it is because by default web applications will be running under the aspnet account, not the actual users account. You will need to setup impersonation in order for this to work within your application. You will want to be careful about double hops, as this requires an additional step of setup to get working.

You can use System.Security.Principal.WindowsIdentity.GetCurrent().ToString() to printout which user the application is currently running under.

Answers (0)