cancel
Showing results for 
Search instead for 
Did you mean: 

Problem passing in parameters - (more complex then seems)

Former Member
0 Kudos

Ok passing parameters may look easy.. But there is more to it. I built 50 reports had all working with parameters. Then one day everything else runs fine in the project except for the parameters being passed to Crystal.. They still work in alot of places just not on my pc, when the project is on a specific server.

The deployed Intra-net works fine from my computer & everywhere else, even if I re-deploy it with the problem on my computer.

If I move the project to a different server the project works fine.

My co-worker can run the project on the server I am having problems with on her computer.

The error I get is :

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken= (numbers here..) failed.

Then it displays it's own prompts for Crystal.. And if I enter there the report runs. (my prompts are passed thru fields on my form. with the following command)

crSet.SetParameter("BeginDateRange", CDate(pbl.DateDflt(1)), "C")

I tried moving the forms & reports into a whole new Project. It did not work.

I thought it might be a strongname issue from reading. I created an Strong name with the sn.exe utility, and (I think) I got it attached to the program correctly... It did not help.

I tried uninstalling and reinstalling my VS.. I don't think much references where reset though as when I returned it still knew all the last projects I had opened.. And It did not work.

Help... Help.. Please..

Edited by: Wenda Stephens on Dec 10, 2008 4:24 PM

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Wenda,

This is likely a permission issue. Our Parameter prompts and dll's have dependencies on Java. Assuming this is a WEB app it's possible your browser is not allowing scripts to run or your local firewall of MS firewall, anti-virus etc. may be blocking your code from passing the values. Check the browser settings and try lowering the security to see if that works.

Thank you

Don

Answers (0)