Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to add SQLCLIENT PERMISSION in security policy admin tool?

Posted on 2004-11-30
Medium Priority
Last Modified: 2008-01-09
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.
Question by:zipzip
  • 2
LVL 41

Expert Comment

ID: 12719123
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).  

Author Comment

ID: 12722705

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.
LVL 41

Accepted Solution

graye earned 500 total points
ID: 12725145
The fact that your program connects to a database server really isn't relevent to the error you're getting.   It is all about running the EXE file from a network share.   (If you don't believe me, just copy the file from the network share onto the client's hard drive and it will run without error).

All .Net applications require the client PCs to have the .Net Framework installed... there is no work-around.   There are ways to install the Framework bundled with your application's setup (but it's a bit clumbsy).  Instead, I'd suggest that make the .Net Framework available on your network somewhere and instruct you users to install it prior to running your application.

The prerequistits (sp?) for the .Net framework are:

Win98 +
IE 5.01 +
MDAC 2.6 +

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question