471,330 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Security violations when running on a network drive

Dom
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.

Sometimes seems to be happening in CSharp. Now I get the error:

"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."

Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.

Dom

Jun 27 '08 #1
6 1042
On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.

Sometimes seems to be happening in CSharp. Now I get the error:

"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."

Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.

Dom
SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..
Jun 27 '08 #2
On Apr 22, 3:50 pm, parez <psaw...@gmail.comwrote:
On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. Some are not
comfortable with this.
Dom

SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..
if thats not the probem, that this could fx it..

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\casp ol -q -machine -
addgroup 1 -url file://s:/Applicatoin/Some.exe FullTrust -name "My
App"

Jun 27 '08 #3
Dom
On Apr 22, 3:57*pm, parez <psaw...@gmail.comwrote:
On Apr 22, 3:50 pm, parez <psaw...@gmail.comwrote:


On Apr 22, 3:31 pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
SqlClientPermission probably means that your program doesnt have the
right credentials to access the DB.
Check the connection string..

if thats not the probem, that this could fx it..

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\casp ol -q -machine -
addgroup 1 -url file://s:/Applicatoin/Some.exe *FullTrust -name "My
App"- Hide quoted text -

- Show quoted text -
Thanks for the two suggestions. I'd like to see if I can fix it in
the connection string. Here is the one I am using:

"Data Source=<Server>; Initial Catalog=<Database>; User ID=sa;
Password=; Connection Timeout=60"

Am I leaving something important out? The "sa" and no password is
done on my "test server".

Dom

Jun 27 '08 #4
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.

Sometimes seems to be happening in CSharp. *Now I get the error:

"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."

Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.

Dom
Hi,

If you give full trust to the local network your problems might be
solved.

One question though, does this error happen always or just some times?
Jun 27 '08 #5
Dom
On Apr 22, 4:15*pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:


In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom

Hi,

If you give full trust to the local network your problems might be
solved.

One question though, does this error happen always or just some times?- Hide quoted text -

- Show quoted text -
Always, at least for the program in question. Of course, if I write a
program that does not access the server, this error won't occur, and I
assume no other error will either.

Dom
Jun 27 '08 #6
On Apr 22, 4:36*pm, Dom <dolivas...@gmail.comwrote:
On Apr 22, 4:15*pm, "Ignacio Machin ( .NET/ C# MVP )"

<ignacio.mac...@gmail.comwrote:
On Apr 22, 3:31*pm, Dom <dolivas...@gmail.comwrote:
In my C++ and VB days, it was easy to put a program on a network
drive, and allow each user to shortcut to it. *Then, when needed, I
could just update the program on the network drive, and each user
automatically had it the next time they ran it.
Sometimes seems to be happening in CSharp. *Now I get the error:
"Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=<...>' failed."
Is there a work around here, or is this really a question for an XP
group? *I'm reduced to emailing programs to users, but I need to munge
the ".exe" to ".exe_X", and let the users rename it. *Some are not
comfortable with this.
Dom
Hi,
If you give full trust to the local network your problems might be
solved.
One question though, does this error happen always or just some times?- Hide quoted text -
- Show quoted text -

Always, at least for the program in question. *Of course, if I write a
program that does not access the server, this error won't occur, and I
assume no other error will either.

Dom- Hide quoted text -

- Show quoted text -
Give the local network full trust and see what happen
Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Kristian | last post: by
3 posts views Thread by CsharpGuy | last post: by
10 posts views Thread by Richard MSL | last post: by
7 posts views Thread by GMiller | last post: by
reply views Thread by rosydwin | last post: by

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.