on 07-10-2009 6:33 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.