Link to home
Start Free TrialLog in
Avatar of zipzip
zipzip

asked on

How to add SQLCLIENT PERMISSION in security policy admin tool?

Dear All,

When I share the compiled file and try to access from network it gives me error and warning for Microsoft.NET security information.

I am new to this area so pls help.
Avatar of graye
graye
Flag of United States of America image

This error has nothing to do with SQL Server...   this is normal behavior for any .Net framework application.

By default, the client PCs have their .Net Framework permissions set to "Medium Trust" for the "Local Intranet".  That means that when they try to run your program from a network share, that get a rather unintelligble error message from the CLR.

That means you must either adjust the .Net Security settings for your application or for the entire "zone".  If you're really paranoid, you can set permissions for each application, but if you plan to deploy future applications from a network share, I'd recommend you adjust the "Local Intranet" security to "Full Trust" instead.  

You will have to visit each client PC and go to the Control Panel, Administrative Tools, .Net Wizards.  From there you either choose "Adjust .Net Security" (for the zone) or "Trust and Assembly" (for just that one application).  
Avatar of zipzip
zipzip

ASKER

@graye

My system is actually connecting to a database server, what should I do in order to build an exe file that can run independant in all pcs include windows 98, which do not have .net framework.
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial