Data Connectivity
 Crystal Reports Forum : Crystal Reports .NET 2003 : Data Connectivity
Message Icon Topic: Security Problem after deployment Post Reply Post New Topic
Author Message
bramon
Newbie
Newbie
Avatar

Joined: 29 May 2007
Location: United States
Online Status: Offline
Posts: 1
Quote bramon Replybullet Topic: Security Problem after deployment
    Posted: 29 May 2007 at 5:54am

We're running Visual Studio .NET 2003 and using the bundled Crystal Report.

The application is installed on a server.The application works fine on PCs with Visual Studio installed. Other PC's can run the application except when the embedded Crystal Reports are accessed. The Error we get is:

************** Exception Text **************
System.Security.Policy.PolicyException: Required permissions cannot be acquired.
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at Training_Tracking.MonthRept.InitializeComponent()
at Training_Tracking.MonthRept..ctor(String type)
at Training_Tracking.Main.mmuMthReports_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&a mp; m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& ; m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Any ideas on how to fix this?

Thanks.

Ben

Ben
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 May 2007 at 1:48pm

How did you install the software?  Did you set the Key Code on the Crystal merge module before compiling the install?

-Dell

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 29 May 2007 at 2:53pm
I wouldn't think this is a KeyCode error b/c that error is usually more explicit. I'm thinking that when you installed VS.NET that behind the scenes the program set certain permissions on the folders that the user can't get access to. Did you install the program under Admin and now the actual user sitting at the computer has lower access rights? Check the credentials of all folders that have CR DLLs installed and make sure the current user has rights to them. You also need write access for the temp files that CR always creates prior to viewing a report.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.