473,394 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Enterprise Library error: Request for the permission of type System.Data.SqlClient.SqlClientPermission

I've written a Windows application using VB and Visual Studio 2005.
I've used the Data Application Block in the Microsoft Enterprise
Library 2.0 to make all of my SQL calls.

The application runs fine on my local machine but throws a CAS error
on client machines that says:

Request for the permission of type
System.Data.SqlClient.SqlClientPermission

I've read some posts that advise steps to take on the client machine
to overcome this such as granting more rights to different zones or
running caspol, but I have no control over settings on the client
machine. I can't make any changes whatsoever to the client machines
that run the code.

I can only make changes in my program. Is there a way to get around
this?

Jul 31 '07 #1
1 2806

<su*****@yahoo.comwrote in message
news:11*********************@b79g2000hse.googlegro ups.com...
I've written a Windows application using VB and Visual Studio 2005.
I've used the Data Application Block in the Microsoft Enterprise
Library 2.0 to make all of my SQL calls.

The application runs fine on my local machine but throws a CAS error
on client machines that says:

Request for the permission of type
System.Data.SqlClient.SqlClientPermission

I've read some posts that advise steps to take on the client machine
to overcome this such as granting more rights to different zones or
running caspol, but I have no control over settings on the client
machine. I can't make any changes whatsoever to the client machines
that run the code.

I can only make changes in my program. Is there a way to get around
this?
Well, you need to setup .Net rights for the application on the client
machine so that the application works. You're not coming around the issue
programming wise I think, where as, you can program your way out of it.

Maybe, you need a setup package that will run caspol for you during the
install. The link may help you to determine if that is the approach you need
to take.

http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

Aug 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: mmb | last post by:
hi all i used this below function to connect to sql server 2k private void button1_Click(object sender, System.EventArgs e) { try { SqlClientPermission myPerm = new...
1
by: Jay W NOjwalkerSPAM | last post by:
I have some class objects each in separate projects that belong to a solution. The projects reference one another within that solution. The 'main' function calls the other procedure/function...
1
by: Dave | last post by:
I have a ASP.net application that work fine with IIS 5.0. I'm trying to put it on IIS 6.0. And getting the following error. ASP is enable It is in a virtual directory - I also follow the...
0
by: apramodk | last post by:
environmnet : VB.NET (.Net 2.0) I am trying run a windows application from a Network. While connecting to SQL Server, I get the following error. Request for the permission of type...
1
by: Rafael Tejera | last post by:
I'm receiving this error message. An unhandled exception of type 'System.Security.SecurityException' occurred in system.data.dll Additional information: Request for the permission of type...
7
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my...
0
by: Chris Dunaway | last post by:
Enterprise Library January 2006 Visual Studio 2005 Lanugage: C# I am attempting to use the Enterprise Library to read data from an Excel spreadsheet file. I got the following connection...
1
by: goc | last post by:
I have a Web Farm, that fetches its database-data from a separate database-server. Today I was forced to go over to .NET 2.0 (since 1.1 can't be installed on Windows Vista x64), and it brought...
0
by: sumguyb | last post by:
I've written a Windows application using VB and Visual Studio 2005. I've used the Data Application Block in the Microsoft Enterprise Library 2.0 to make all of my SQL calls. The application runs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.