Dear sir, We have developed new vb.net 2005 program with crystal report. This crystal report having only formulas and not connected with SQL / ACCESS database. While running the program in local machine (ie. Vb2005 installed machine) it is working fine.
In another XP machine, I have installed dotnetfix software for dot net framework and CRRedist2005_x86 software for crystal report . While running this xp m/c, forms are loaded correctly. But when trying to generate Crystal report the following error message is appearing in the system.
”Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft.NET framework configuration tool.
If you click continue, the application will ignore this error and attempt to continue. If you click quit, the application will be closed immediately.
Request for the permission of type ‘System.Security.Permission of type ‘System.Security.Permission,msccorlib version=2.0.0.0 culture=neutral,publickeytoken=b77a5c561934e089”
Kindly check and do the needful.
Thanks in advance
v.annadurai
|
| Author: ani 04 Jul 2009 | Member Level: Gold | Rating:  Points: 2 |
hi
try like this
On the Web server, open Administrative Tools, and then double-click Microsoft .NET Framework Configuration. Expand Runtime Security Policy, expand Machine, and then expand Code Groups. Right-click All_Code, and then click New. Select Create a new code group. Give your code group a relevant name, such as the name of the applications share. Click Next. In the Choose the condition type for this code group list, select URL. In the URL box, type the path of the share in the following format: file:////\\computername\sharename\* Note Replace computername with the name of the computer that is hosting the remote share. Replace sharename with the name of the share. Click Next. On the next page, select Use an existing permission set, and then select FullTrust. Click Next, and then click Finish. Restart Microsoft Internet Information Services (IIS) to restart the ASP.NET worker process. If Microsoft .NET Framework Configuration is not displayed under Administrative Tools, you can install the .NET Framework SDK to add Microsoft .NET Framework Configuration. Alternatively, you can run the following command to make the change: Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\\computername\sharename\*" FullTrust -exclusive on
|