C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Vb.net - crystal report error


Posted Date: 04 Jul 2009      Posted By: Annadurai V.      Member Level: Bronze     Points: 1   Responses: 1



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





Responses

Author: ani    04 Jul 2009Member Level: GoldRating: 2 out of 52 out of 5     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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Addiing row from two collection in one table in ascending order
Previous : Crystal
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use