Monday, February 20, 2012

Public key Token = b77a5c561934e089

Hi Ppl,

I have installed my program and SQL server 2K5 on the server.

But when I try to run it (from he client machine)I get the following error :

It works fine on the SERVER

The appication attempted to perform an operation not allowed by the security policy.

The operation required the security Exception. To grant this application the required permission

please contact your systems Administrator or use the Microsoft .NET security policy administration tool.

If you click Bla,bla,bla

Request for the permision of type System.Data.SqlClient.SqlClient

Permission, System.Data Version - 1.0.5000.0. Cultre = neutral.

Public key Token = b77a5c561934e089

did you ever solve this as I now have the same issue|||

I've done some checking and this seems to be related to the fact that you're apparently running your application from a network share. When you run a managed application from the network, you need to either trust the network or trust the assembly by adjusting the security policy on the local computer. Check out the Code Access Security information for more details.

The alternative to adjusting the security policy is to install the application onto the local computer via either ClickOnce or MSI. More details on the these tools can be found at:

For .NET 1.1 see

Smart Client Architecture and Design Guide

Chapter 7 — Deploying and Updating Smart Client Applications

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scag-ch07.asp

For .NET 2.0 see

ClickOnce

http://msdn.microsoft.com/clickonce

Regards,

Mike Wachal
SQL Express team

No comments:

Post a Comment