Problem solve Get help with specific problems with your technologies, process and projects.

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 last published in January 2006

Dig Deeper on .NET Development for SQL Server

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.