Q

Permissions error when connecting .NET

Greg Low helps troubleshoot an error message from trying to connect a project developed in .NET.

When I try to connect a project developed in .NET with SQL Server as back end in the client system, the following error is displayed.
"Request for the permission of type system.security.permissions.fileopermission, mscorlib, version = 1.0.3300.0, culture = neutral, public key = b77a5c561934e089 failed".
I'm presuming this error actually says system.security.permissions.fileiopermission. In that case, this won't be due to accessing SQL Server, at least the direct cause of the error. This error relates to your program not being able to perform I/O operations on a file on the disk. Check your CAS (code access security) settings for the program.
This was first published in January 2006

Dig deeper on .NET Development for SQL Server

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close